I'm trying to configure an installer for some software we use within the company.
The installer is pushed out to target machines via SMS, and it performs the following steps:
- Terminate any currently running instances of the app (the app is a utility, so this isn't an impact on the user).
- Remove the previous version.
- Install the updated version.
What we want it to do is launch the installed executable (as the currently logged in user, not the system account which the SMS job runs as) once step 3 is completed.
I've tried adding a custom action as follows:
<CustomAction Id="Relaunch" Impersonate="yes" Return="asyncNoWait" FileKey="AppExeFile" Execute="commit" ExeCommand="acm" />
And in the InstallExecuteSequence
element I have the following:
<Custom Action="Relaunch" OnExit="success" />
However when we try this, either as a SMS job or executing as an administrator nothing happens (e.g. the app isn't relaunched).
Any suggestions?