cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
SomaDas
Level 3

Problem launching a program (highestAvailable privileges) on Vista with UAC enabled

Hi,

We are having BASIC MSI project for our application installer.

At the end of the installation, we would like to "Launch" our program/application. This program/application requires "highestAvailable" privileges for execution.

On Vista with UAC on, the program does not get launched as the prompt for the elevation is not prompted to user and the UAC prompt times out intenally resulting in the application to exit.

Is there are way to handle this in InstallShield 2009?

Regards,
Soma
Labels (1)
0 Kudos
(4) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Windows Installer EXE custom actions use CreateProcess rather than ShellExecute to launch exes, so cannot elevate. Your options include: not doing this, removing the privilege requirement, writing a custom action (say in C++ or InstallScript) or install and launch a wrapper exe which uses ShellExecute or ShellExecuteEx to launch the real exe.
0 Kudos
SomaDas
Level 3

Hi Michael,

Thank you so much!!

But i would like to know whether there is any other way to fix this issue?

regards
Soma
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

There's nothing built into MSI at this time. There's rumors of better support for this in future versions of Windows Installer, but I doubt that's a dependency you'd want at this point. 🙂
0 Kudos
SomaDas
Level 3

Thank you so much Michael.
I have implemented the ShellExecute method and it is working!!!
0 Kudos