How can I use powershell to run through the installer?

I am trying to install a piece of software that, when executed manually, has configuration options that you can select when going through the process. I am trying to find a way to automate this using powershell, but I am sticking to how I can set these configuration options. I believe that I need to run the start-process command in the .exe installer, but I do not know where to go from there. Can I use the start-process command options to pass in the configurations I want?

0
source share
1 answer

UPDATE : A few links below with information on how to install , configure, and extract files for files setup.exe.

UPDATE : See the PowerShell module for the Windows installer on github.com (scroll down for a description, use the releases tab to download ). I didn’t really check it out, but this is from Heath Stewart , Microsoft's senior software engineer ( github ).


, . , - Windows (MSI), - - setup.exe. MSI setup.exe.

, , MSI ( MSI). ). , Windows . . , , , , , . , . MSI, .


EXE. setup.exe/a , " " ( ). MSI , setup.exe. , setup.exe/x setup.exe/extract.

Windows , PUBLIC ( ), ( Windows, - , ).

, MSI, , , , , , . , , . , , EXE, , .

, , . setup.exe/a a ( - ).


PowerShell. PowerShell , . , PowerShell: https://kevinmarquette.imtqy.com/2016-10-21-powershell-install-msi-files/

MSI PowerShell, , , , : http://www.itninja.com/question/ps- MST .

MSI - Windows msiexec.exe. msiexec.exe :

msiexec.exe /I "C:\Your.msi" /QN /L*V "C:\msilog.log" TRANSFORMS="C:\1031.mst;C:\My.mst"

:

/I = run install sequence
/QN = run completely silently
/L*V "C:\msilog.log" = verbose logging
TRANSFORMS="C:\1031.mst;C:\My.mst" = Apply transforms 1031.mst and My.mst (see below).

? : MSI.

msiexec.exe. Microsoft msiexec.exe MSDN.


:

+6

Source: https://habr.com/ru/post/1719707/


All Articles