We're actually writing PowerShell cmdlets to create a snapshot of installed (custom) MSIs. The cmdlets walk through a list of servers, check if MSIs of a given publisher are installed. If so, the MSI is copied from the remote machine to host executing the PowerShell cmdlet. So far so good. In the next stage we're planning to restore a system with the beforehand fetched MSI packages.
Our actual problem: Some of the MSIs need command line parameters for installation via msiexec. We searched the Windows registry if the arguments are stored somewhere, but we were not able to find them. We checked following paths:
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\*\InstallProperties
HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*
HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*
Does anybody knows if the install arguments, when installing an MSI via msiexec, are persisted on Windows?
The MSI packages get installed via:
msiexec /i somePackage.msi /qn /norestart Arg1=1 Arg2=someTest Arg3=true
Thx