We are building an installer for our product using the WIX technology. We
set InstallPrivileges to ‘elevated’ as we need to write to the HKLM hive
etc.

The application has an exe that is launched after installation and runs on
the system. For several reasons, it needs to be stopped before the
‘InstallInitialize’ begins (i.e. before the files and the executables are
removed).

On Vista and Windows 7, we need to recover and launch the exe again if the
user cancels the UAC prompt or it times-out and the application is not
uninstalled.

In the wxs file, we define a rollback action:

<CustomAction Id="RestartApp" Execute="rollback" FileKey="myapp.exe"
ExeCommand="" Return="ignore" />
<InstallExecuteSequence>
…
<Custom Action='RestartApp' After='InstallInitialize' >(REMOVE~="ALL" OR
MaintenanceMode="Remove")

AND Installed</Custom>
</InstallExecuteSequence>

However, this never gets called!

How can I detect the UAC is cancelled and recover and launch the exe?
------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to