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 make Application launch as Standard User on VISTA?
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
‎Jul 07, 2008
10:16 AM
How to make Application launch as Standard User on VISTA?
Hi,
We are using IS 2008 premier installer to build .msi for client's installer.
App gets installed fine on Windows XP and VISTA (UAC enabled/disabled).
we are able to launch application through desktop shortcut through right click -> select "Run as admin" option. However, if standard user tries to launch application, admin login and password is prompt to user on VISTA when UAC is enabled.
If the installer settings are as follows:
Required Execution Level: asInvoker
Administrator Priviledges Required: Yes
1) How can I make standard user access/launch our application through double click or same as administrator accesses the same??
2) To launch an application through double click, embedding manifest in VS2005 works great wheres requiredExecutionLevel is set to requireAdministrator. However, build server generates the executables through command lines so if I use mt.exe to embed manifest in app.exe, R6034 error is seen at runtime when I double click on shortcut.
CAn anyone help me on any of these issues?
Regards,
Payal
We are using IS 2008 premier installer to build .msi for client's installer.
App gets installed fine on Windows XP and VISTA (UAC enabled/disabled).
we are able to launch application through desktop shortcut through right click -> select "Run as admin" option. However, if standard user tries to launch application, admin login and password is prompt to user on VISTA when UAC is enabled.
If the installer settings are as follows:
Required Execution Level: asInvoker
Administrator Priviledges Required: Yes
1) How can I make standard user access/launch our application through double click or same as administrator accesses the same??
2) To launch an application through double click, embedding manifest in VS2005 works great wheres requiredExecutionLevel is set to requireAdministrator. However, build server generates the executables through command lines so if I use mt.exe to embed manifest in app.exe, R6034 error is seen at runtime when I double click on shortcut.
CAn anyone help me on any of these issues?
Regards,
Payal
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 08, 2008
08:54 AM
If requiredExecutionLevel is set to requireAdministrator in embedded manifest, then the standard user cannot launch the application without password.
the requiredExecutionLevel must be set to highestAvailable for use by standard user.
the requiredExecutionLevel must be set to highestAvailable for use by standard user.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 08, 2008
11:00 AM
The R6034 is probably due to overwriting the exe's manifest with one that lacks clauses required to locate SxS installs of the CRT. Please try extracting the manifest the exe is built with and then adding the requiredExecutionLevel information to it, rather than overwriting the manifest completely.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2008
04:43 AM
Thanks Michael for your reply.
The requirement is after an application gets installed by admin, it should get launched without any admin rights. For example, standard user or administrator is able to launch adobe acrobat through double click on desktop icon.
Even if I give asInvoker / highestAvailable to manifest which I am embedding into launch app.exe, it does not work 😞 As an admin, it would prompt for permission but as a standard user again it is asking for admin login!!!
Can you / anyone else here help me to resolve this issue please?
would like to mention that launch app.exe is just user level app and runs in session 1 under VISTA.
The requirement is after an application gets installed by admin, it should get launched without any admin rights. For example, standard user or administrator is able to launch adobe acrobat through double click on desktop icon.
Even if I give asInvoker / highestAvailable to manifest which I am embedding into launch app.exe, it does not work 😞 As an admin, it would prompt for permission but as a standard user again it is asking for admin login!!!
Can you / anyone else here help me to resolve this issue please?
would like to mention that launch app.exe is just user level app and runs in session 1 under VISTA.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
08:10 AM
payaldesai wrote:
Even if I give asInvoker / highestAvailable to manifest which I am embedding into launch app.exe, it does not work 😞 As an admin, it would prompt for permission but as a standard user again it is asking for admin login!!!
Hi Payal,
If you set it as asInvoker for the LauchApp.exe , then the exe should not show a "Vista shield icon" in the exe icon. Any exe without the shield icon must not prompt a standard user for admin prompt. If you see the shield icon even when the exe is set to asInvoker then it means the manifest is not embedded in the EXE.
hope this helps.
Manju
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2008
12:47 AM
Hi Manju,
Thanks for your reply and yes you are right. If i give asInvoker execution level to my launch.exe through manifest, it will not show shield icon and both administrator / standard user will be able to launch it by double click.
My existing problem is after installation is done, when first time I double click on shortcut to launch this exe, it gives the message saying "Stops working"
If i right click and select Run as Admin button and do product registration (this involves user account setup with client server and register two system services), everything works fine. After registration process is over, everytime I get success to launch app directly by double click on desktop icon. No Run as admin is required at all. I am giving "asInvoker" option only to the .exe which is doing this registration process work.
Any idea?
Best Regards,
Payal
Thanks for your reply and yes you are right. If i give asInvoker execution level to my launch.exe through manifest, it will not show shield icon and both administrator / standard user will be able to launch it by double click.
My existing problem is after installation is done, when first time I double click on shortcut to launch this exe, it gives the message saying "Stops working"
If i right click and select Run as Admin button and do product registration (this involves user account setup with client server and register two system services), everything works fine. After registration process is over, everytime I get success to launch app directly by double click on desktop icon. No Run as admin is required at all. I am giving "asInvoker" option only to the .exe which is doing this registration process work.
Any idea?
Best Regards,
Payal
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2008
10:43 AM
payaldesai, I have to say that your mistake is in the way you designed the product. You need to carefully read this document: "Windows Vista Application Development Requirements for User Account Control Compatibility" You can download it from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=BA73B169-A648-49AF-BC5E-A2EEBB74C16B&displaylang=en
You should avoid any configurations of the product during it's first run.
Regards, Peter.
You should avoid any configurations of the product during it's first run.
Regards, Peter.