powershell msi : the installation package could not be opened - powershell

I can install node manually but using this Powershell command line within download directory (Windows Sandbox)
msiexec /i "node-v16.16.0-x64.msi"
I get error "the installation package could not be opened"

Related

command line silent installation for .exe

I used advanced installer for my project and I can install my .exe using wizard,
but I want to perform it using command line so something which can help silent installation with advanced installer ?
just use /exenoui /qn command line arguments for a silent install

Netbeans 8.2 installer fails on Windows 7

Getting
java.io.IOException: Cannot run program "C:\Program Files\NetBeans
8.2\bin\netbeans.exe" (in directory "C:\Program Files\NetBeans 8.2"):
CreateProcess error=2, The system cannot find the file specifiedat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
I tried downloading and installing netbeans and the JDK bundle and still getting this. Might be netbeans independent but my system that's causing it.
Note the location of the installer.
Open a Command Prompt running as administrator:
2.1. Go to Start button > All Programs > Accessories
2.2. Right click Command Prompt
2.3. Select Run as administrator
In the Command Prompt use the cd command to change to the directory containing the installer.
Execute the following command to extract the contents of the installer: [Note: You might need to change the name of the installer to match the one you have.]
netbeans-8.2-ml-java-windows.exe --extract
Execute the following command to manually execute the installer:
java -jar bundle.jar
You will see rapid scrolling output in the Command Prompt window for a few moments, then the installer window will appear to begin the installation process.
Once Netbeans is installed on Windows 7, you may also need to run Netbeans as an Administrator--especially for database, web application and web services development, which each require server resources.
Source

Install app using PowerShell

I must install .air file using PowerShell script. Because of that, I converted to .exe, and tried running installation with PowerShell, but this not work.
Also I converted to .msi and that installation too has error.
This is my error :
"This is a problem with the windows installer package.
A program run as part of the setup did not finish as expected."
This is my script for msi:
Msiexec /a C:\Users\PC-MS\Downloads\vmaxstudios.msi
This is my script for exe:
Start-Process -FilePath 'C:\Users\smilos\Downloads\Firefox Installer (1).exe -ArgumentList '/silent', '/install' -Wait
1) I convert .air file to .exe,
2) I convert the .exe file to .msi.
3) Trying to install the .msi does not work.
Does anyone have an idea of how to install using .air file? Or solution for .msi installation?

powershell install Add-AppDevPackage.ps1 package fail "can not find any package"

I create UWS simple package in the visual studio 2015. Then install the package to my windows 10 virtual machine via powershell is work. I can see the app in my start menu and run it is OK.
I want to install the package to my PAD windows 10(10586.29). Copy the package folder "UWSHellowWord_1.0.1.0_Test" to the document folder. Long click the file "UWSHellowWord_1.0.1.0_Test\Add-AppDevPackage.ps1" shows a menu then choose the "use powershell execute" to install this package.
The powershell shows me an error message "Error: can not find any package or resource in the command directory. Please make sure The packages you want to install packages or resource are placed in the same directory". I don't know how to fix it. Any suggestion will be appreciated.
Run powershell (as administrator)
navigate to directory ""UWSHellowWord_1.0.1.0_Test"
Type - powershell Set-Executionpolicy RemoteSigned
Type .\Add-AppDevPackage.ps1
and check

How do I run PowerShell 4.0 after upgrading from PowerShell 2.0?

I have installed DotNet 4.5.2 and PowerShell 4 on my Windows 7 SP 1 workstation using chocolatey:
choco install dotnet4.5.2 -y
choco install powershell -y
They installed without errors and appear in the choco list:
choco list --local-only
DotNet4.5.2 4.5.2.20140902
PowerShell 4.0.20141001
I previously had PowerShell 2.0 installed, and when restarting PowerShell, the $host.version still shows Major: 2. In addition, it appears that PowerShell 4.0 only exists in the \Program Files (x86) not in \Windows, and when I list the contents of the 3.0 directory, only assemblies (no executables) are listed.
> dir 'C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell'
3.0
v1.0
> dir 'C:\Windows\System32\WindowsPowerShell'
v1.0
> dir 'C:\Windows\SysWOW64\WindowsPowerShell'
v1.0
Where does the PowerShell 4.0 executable live? How can I run PowerShell 4.0 instead of 2.0?
I needed to restart my computer for windows update to install Microsoft Windows Management Framework 4.0