Hi, This question is from a maintenance perspective where currently I am duplicating the same command in a Rollback custom action and a Uninstall custom action.
If you notice from the following example, I am duplicating the command for the rollback action "SetBtsAddAppRollback" in the uninstall action "SetBtsRmvApp" also. I would like to avoid this duplication...Can you please suggest how could I make these 2 custom actions reference a single declaration of a command (I mean, let's say you declare this command somewhere and both these custom actions reference it)? Example: <CustomAction Id="SetBtsAddAppRollback" Property="RunBtsAddAppRollback" Execute="immediate" Value=""[BTS09TSK]" removeApp /applicationName:"!(loc.BiztalkApplicationName)"" /> <CustomAction Id="RunBtsAddAppRollback" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="rollback" Return="ignore" /> <CustomAction Id="SetBtsAddApp" Property="RunBtsAddApp" Value=""[BTS09TSK]" addApp /applicationName:"!(loc.BiztalkApplicationName)" /description:"!(loc.BiztalkApplicationName)"" /> <CustomAction Id="RunBtsAddApp" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" /> <CustomAction Id="SetBtsRmvApp" Property="RunBtsRmvApp" Value=""[BTS09TSK]" removeApp /applicationName:"!(loc.BiztalkApplicationName)"" /> <CustomAction Id="RunBtsRmvApp" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="ignore" /> Thanks, Kiran Challa ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users