Silent Setup Command Line Parameters
In diesem Artikel finden Sie Beispiele für die wichtigsten Silent-Aufrufe der am häufigsten anzutreffenden Installer.
Inno Setup
# Installation
SF-Run "%_PkgSource%\Setup\installer.exe" "/ALLUSERS /CLOSEAPPLICATIONS /FORCECLOSEAPPLICATIONS /NORESTART /SUPPRESSMSGBOXES /VERYSILENT" -Wait
# Uninstallation
SF-Run "%_ProgramFiles64%\Example\unins000.exe" "/CLOSEAPPLICATION /FORCECLOSEAPPLICATIONS /NORESTART /SUPRESSMSGBOXES /VERYSILENT" -SkipIfNotExist -Wait
InstallShield (MSI)
# Installation
SF-Run "%_PkgSource%\Setup\setup.exe" "/s /v""ALLUSERS=1 /qn /l*v ""%_LogPath%\Software\%_PkgIdentifier%.log"""" -SMS" -Wait
NSIS
# Installation
SF-Run "%_PkgSource%\Setup\installer.exe" "/S"
# Uninstallation
SF-Run "%_ProgramFiles64%\Example\uninstall.exe" "/S" -SkipIfNotExist -Wait
MSI (Windows Installer)
# Installation
SF-MSIInstall "%_PkgSource%\Setup\installer.msi" "ALLUSERS='1' /qn /norestart"
# Uninstallation - Example 1
SF-MSIUninstall "{23170F69-40C1-2702-2200-000001000000}" "/qn /norestart"
# Uninstallation - Example 2
SF-MSIUninstallByDisplayName "DisplayName" "/qn /norestart"