This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Problem launching a program (highestAvailable privileges) on Vista with UAC enabled
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2008
06:00 AM
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
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
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2008
11:19 AM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2008
12:01 AM
Hi Michael,
Thank you so much!!
But i would like to know whether there is any other way to fix this issue?
regards
Soma
Thank you so much!!
But i would like to know whether there is any other way to fix this issue?
regards
Soma
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2008
04:31 PM
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. 🙂
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 24, 2008
02:32 AM
Thank you so much Michael.
I have implemented the ShellExecute method and it is working!!!
I have implemented the ShellExecute method and it is working!!!