Setting MSI as default with defaults

I am writing a powershell script to uninstall and install a product. The uninstallation and installation process simply clicks on the next few buttons with default values.

Could you suggest how to install the MSI file without prompting the user to click the next few buttons and complete the installation process very quietly.

If I wanted to provide personalized values ​​during installation, what could be the process of finding property names and how to run it silently. Please refer to any links for further study.

I am using powershell 2.0 and please let me know if more information is needed. Thanks in advance.

Regards, Kumar

+4
source share
3 answers

To install the MSI file, you can use the switch /quietwith msiexec. If you need to configure something, you can set property values ​​as follows:PROPERTY=Value

Total: msiexec /i C:\Path\To\File.msi /quiet PROPERTY=Value

To view all options, just run msiexecwithout any options. This question is also very similar to yours.

+3
source

, MSI :). , , SERVERNAME, FRED , SERVERNAME = FRED . , InstallExecuteSequence, , FRED. , , , . SERVERNAME (), \ \MyShare , \FRED\MyShare , , SERVERNAME = "\ FRED\MyShare", . , . .

, , ADDLOCAL = , .

0

( ):

msiexec.exe /I "C:\WiX.msi" /QN /L*V "C:\msilog.log" MYPROPERTY=1

(. ):

msiexec.exe /I "C:\WiX.msi" /QN /L*V "C:\msilog.log" TRANSFORMS="C:\Wix.mst"
  • /QN: , GUI
  • /L * V:
  • MYPROPERTY: . .

  • , MSI , (*.mst).

    • " ", MSI ( ) .
    • - MSI, , , ..
    • MSI msiexec.exe TRANSFORMS, *.mst.

MSI ( msiexec.exe). MSI. , PowerShell, WMI, VBScript Automation .. serverfault.com msiexec.exe .

0
source

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


All Articles