[wix-users] property not updated during maintenance

Rob Mensching rob at firegiant.com
Fri Jan 29 08:56:02 PST 2021


I think you want this: https://robmensching.com/blog/posts/2010/5/2/the-wix-toolsets-remember-property-pattern


Short replies here. Complete answers here: https://www.firegiant.com/services/

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Hagen Kant via wix-users
Sent: Friday, January 29, 2021 8:51 AM
To: wix-users at lists.wixtoolset.org
Cc: Hagen Kant <hagen.kant at gmail.com>
Subject: [wix-users] property not updated during maintenance

Hi,

first of all, thanks for the great tool set! 
While the wix toolset xml format itself is quite well documented, its a bit strange that - given the complexity of the concept - it lacks a comprehensive conceptual documentation, including lists of valid attributes values, when and how to schedule actions, etc., which probably causes the following question:

My WixUI_FeatureTree based installer has a custom dialog mounted between CustomizeDlg and VerifyReadyDlg which sets a property via ComboBox/ComboList. 

			<Control Id="Instances" Type="ComboBox" X="45" Y="135" Width="40" Height="18" Integer="yes" ComboList="yes" Sorted="yes" Property="INSTANCES">
				<ComboBox Property="INSTANCES">
					<ListItem Value="2"/>
					[...]
					<ListItem Value="12"/>
				</ComboBox>
			</Control>

The value is used in a deferred (elevated) custom .dll action:

			<CustomAction Id="UpdateInstances.SetProperty" Property="UpdateInstances" Value="[INSTANCES]"/>
			<CustomAction Id="UpdateInstances" Execute="deferred" Impersonate="no" BinaryKey="$(var.dll)" DllEntry="UpdateInstances"/>

scheduled via InstallExecuteSequence:

			<Custom Action="UpdateInstances.SetProperty" Before="UpdateInstances">NOT REMOVE</Custom>
			<Custom Action="UpdateInstances" Before="InstallFinalize">NOT REMOVE</Custom>
	
This works well for the install case, but for the maintenance ("modify") action it does not update the property. (it keeps its default.)

	<Property Id="INSTANCES" Value="2"/>

Any hint what could cause such a behaviour, or idea what to try is highly appreciated.

Thanks and best regards,
Hagen.


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list