Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Windows MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 05-27-2010, 11:01 PM   #1 (permalink)
mariadesouza
Guest
 
Posts: n/a
Default How to write a custom action to launch an exe when UAC is cancelledor timed-out during uninstall?

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 at startup. For several reasons, it needs to be
stopped before the files and 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?
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:36 AM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com