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: have to provide admin rights for some of my exe's during installation
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
‎Jun 19, 2013
05:14 AM
have to provide admin rights for some of my exe's during installation
Hi,
In my case, there are some application that needs admin rights to execute, for that i just click and use RUN as administrator option. Instead of doing like that ,there is another option .i.e) application->properties->compatibility->Check the Run this program as an administrator option. if we do like this then no need to run that specific application as Administrator.if we double click the application , by default it will run as admin. it is working fine in my windows 7 64bit PC.
The problem is i m setting the above properties in one of my application and i included that application in my setup.exe. Once i installed the setup.exe , the properties for the application is not selected. what i want is , i just want to provide the admin rights for some my exe's while installing my setup.exe.
Please help me to resolve this issue.
Thanks in Advance.
In my case, there are some application that needs admin rights to execute, for that i just click and use RUN as administrator option. Instead of doing like that ,there is another option .i.e) application->properties->compatibility->Check the Run this program as an administrator option. if we do like this then no need to run that specific application as Administrator.if we double click the application , by default it will run as admin. it is working fine in my windows 7 64bit PC.
The problem is i m setting the above properties in one of my application and i included that application in my setup.exe. Once i installed the setup.exe , the properties for the application is not selected. what i want is , i just want to provide the admin rights for some my exe's while installing my setup.exe.
Please help me to resolve this issue.
Thanks in Advance.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2013
06:57 AM
Could you please let me know on which operating system is this exe run on?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2013
08:02 AM
Windows (vista or later) does not support programmatically creating a shortcut with the 'run as admin' checkbox checked. Microsoft does not want anyone to do that. An application should be designed so that elevated privileges are not needed, however if they are needed then the application should have an embedded manifest which includes:
An external manifest file will be ignored.
Here is info on how to embed a manifest file:
http://msdn.microsoft.com/en-us/library/ms235591(v=vs.80).aspx
Here is info on how to embed a manifest file:
http://msdn.microsoft.com/en-us/library/ms235591(v=vs.80).aspx