Install app using PowerShell - 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?

Related

powershell msi : the installation package could not be opened

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"

How to uninstall an exe generated using electron-builder

I am using electron-builder to generate an exe (NSIS) file for my electron application. I am using the below commands in command prompt for installing and uninstalling.
myapplicaton.exe /install /noreboot /silent
myapplicaton.exe /uninstall /noreboot /silent
The install command is working, but the uninstall command does not work. There is no error shown as well. I did not find any leads in the web for uninstalling an exe generate using electron builder. Could you please let me know the correct way to uninstall the exe?

Having issues scripting .msi custom setup

I'm currently trying to install an .msi silently, but can't get past the custom setup part.
I've tried the code below, but it keeps popping up with the Windows Installer help guide.
$AppSetup = msiexec --% /i '\deploy\PostImageInstall\Logger Pro 3.msi' INSTALLDATASHARE="INSTALL" /qn /L*v %TEMP%\LoggerPro3_msilog.txt
The code is supposed to silently install the .msi with the custom setup option.

Silent Installation of FortiClient.msi VPN Only

I am trying to do a silent installation of FortiClient.msi, and here is what I have so far:
Start-Process "[Insert MSI Path]" /qn -Wait
I would like to make sure that the VPN is the only part that is installed. Is there a parameter that tells the msi to only install VPN, or will the installer automatically install VPN only?
You can open the msi file with ORCA and check the possible Properties. For example there is a property DISABLEFEATURE which could do your wanted stuff.

Running MSI installers silently

I am having 3 files -
Alky for Applications.msi ( which make Vista Apps work on XP)
Windows VIsta sidebar.exe ( Which make that VIsta sidebar work on XP)
3.Gadget Extractor.msi ( A part of number 2)
I just want to have all the setups installed by just instlaling one. One of my freind told me that the MSI packages may be silently installed using /qb switch
the .exe I got there is NSIS setup which may be silently installed using /S switch.
SO I am a total n00b in software developing ,so pls suggest me what to do
The simplest solution is to create a batch file and put these commands in it to launch the installers:
msiexec /i "C:\Users\ZippyV\Desktop\Alky for Applications.msi" /quiet
"C:\Users\ZippyV\Desktop\Windows VIsta sidebar.exe" /s
msiexec /i "C:\Users\ZippyV\Desktop\Gadget Extractor.msi" /quiet
Change the extension of the batch file to .cmd and put all the files in the same directory.
EDIT: make sure to specify the full path to your installers and use quotes around them. To run the file, just click it.