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
- :
- Re: how to launch an application with admin privilages?
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
‎Mar 02, 2009
10:10 AM
how to launch an application with admin privilages?
Hi,
Project Type: Installshield 2009 msi
Issue:
I am able to launch my application with the shortcut created at
start -> program files-> -> application.exe in 2003/XP
but in windows 2008 i am getting error as "Access Denined"
So, for 2008 I have to select "Run as Admininstrator"(which is available by right click on application.exe) to launch my application....
Is it possible to launch directly as in 2003/XP?
Project Type: Installshield 2009 msi
Issue:
I am able to launch my application with the shortcut created at
start -> program files->
but in windows 2008 i am getting error as "Access Denined"
So, for 2008 I have to select "Run as Admininstrator"(which is available by right click on application.exe) to launch my application....
Is it possible to launch directly as in 2003/XP?
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 03, 2009
05:36 AM
Click on Release in installation designer tab. Go to setup.exe tab and chage the required execution level to 'Administrator'. build the project. The setup.exe will build with a shield icon.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 03, 2009
05:56 AM
Hi ChandanOmkar,
Thanks for your replay and thanks for your information.... but my requirement is:-
"I want to open a application.exe which is available as shortcut and which is created by my installer project with "Administrative privilages"
Thanks for your replay and thanks for your information.... but my requirement is:-
"I want to open a application.exe which is available as shortcut and which is created by my installer project with "Administrative privilages"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 04, 2009
12:51 AM
Hi ,
I was faced this same problem on vista .
but i solved this problem using UAC manifasto file adding in test.exe code itself.
after that if the user installs the applicaiton in the administrator mode..again if he tryes open with another user also he can able run the application with out going to right click option on the test.exe open as a administrator.
I was faced this same problem on vista .
but i solved this problem using UAC manifasto file adding in test.exe code itself.
after that if the user installs the applicaiton in the administrator mode..again if he tryes open with another user also he can able run the application with out going to right click option on the test.exe open as a administrator.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 04, 2009
08:01 AM
Hi Reddy611,
Thanks for your replay, is it possible to solve my issue without changing any code or settings except in installshield?
Thanks for your replay, is it possible to solve my issue without changing any code or settings except in installshield?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 08, 2009
10:22 AM
Hi,
Can anyone give me a solution for this 😞
Can anyone give me a solution for this 😞
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 09, 2009
03:58 PM
anilkumar_mca wrote:
Hi,
Can anyone give me a solution for this 😞
There isn't a "solution" for this as you have defined it.
Things you could possibly do include adding an application compatibility db entry that will allow your application to think it is running underneath a previous verison of the operating system (assuming that it worked correctly there). See the app compatibility articles on MSDN for more information.
Otherwise, your best bet is to determine which privileges your application is requesting and why it needs them and *fix* your application to not need them.
If your application is one of those few that does indeed require elevation, your should imbed a manifest within it using the appropriate privilege request. This resource can be linked into your executable after development (if necessary), though it will change the PE header so that if you have hidden bugs within your application they may suddenly show themselves!
-Pete
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 10, 2009
07:01 PM
To further answer your question:
You will have to create a manifest and associate it with you application as an embedded ressource.
How are you compiling your executable with C++, VB, .NET?
You will have to create a manifest and associate it with you application as an embedded ressource.
How are you compiling your executable with C++, VB, .NET?
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)