cancel
Showing results for 
Search instead for 
Did you mean: 
SomaDas
Pilgrim

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
Flexera MichaelU
Flexera

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

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
Pilgrim

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

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
Flexera MichaelU
Flexera

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

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. Smiley Happy
0 Kudos
SomaDas
Pilgrim

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

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