We are having issues with sending values for properties in silent installation on update. We would like to change value of property which has enabled "Set persistent property". This work as expected when executing normal install, but when executing silent install, values passed with command are overridden by values in Registry.
Reproduction:
1. First installation of package with property which is marked as persistent on Test machine.(Doesn't matter, works with normal as well as silent installation)
Value used in setup is correctly set (e.g.: set of configuration file with certificate Thumbprint) and we can see value in Registry which matches this.
2. Prepare installation package for upgrade of version.
3. Install new version using silent install. In silent install we would also like to modify previously set persistent value.
Code: Select all
$args= "/i TestApp.msi /quiet /qn /norestart /l*v setup-TestApp.log MY_PROP=`"ThisDoesNotWork`""
start-Process -FilePath msiexec.exe -ArgumentList $args -Wait
Code: Select all
$args= "/i TestApp.msi /qf /norestart /l*v setup-TestApp-UI.log MY_PROP=`"ThisDoesNotWork`""
start-Process -FilePath msiexec.exe -ArgumentList $args -Wait
Code: Select all
...
MSI (s) (58:0C) [14:50:01:312]: PROPERTY CHANGE: Modifying MY_PROP property. Its current value is 'value'. Its new value: 'ThisDoesNotWork'.
...
Action start 14:50:01: AppSearch.
MSI (s) (58:0C) [14:50:01:359]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (s) (58:0C) [14:50:01:359]: PROPERTY CHANGE: Modifying MY_PROP property. Its current value is 'ThisDoesNotWork'. Its new value: 'Wazzapa'.
MSI (s) (58:0C) [14:50:01:359]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (s) (58:0C) [14:50:01:359]: Note: 1: 1402 2: HKEY_CURRENT_USER32\Software\Adacta d.o.o.\{01BC57D4-7622-45A9-B55C-5CF8F79D2166} 3: 2
...
Action ended 14:50:01: INSTALL. Return value 1.
Property(N): AppsShutdownOption = All
Property(N): APPDIR = C:\Program Files (x86)\Adacta d.o.o\TestAPP\
Property(N): DiskPrompt = [1]
Property(N): MY_PROP = Wazzapa
Property(N): PROMPTROLLBACKCOST = P
...
- Advanced Installer 12.8
- OS of machine generating package: Windows Server 2012 R2
- OS of machine testing package: Windows Server 2012 R2
Attaching log and sample project file.
Any help would be greatly appreciated!