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
- :
- "Run as Administrator"
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 29, 2010
12:14 PM
"Run as Administrator"
Greetings,
We are moving about 40 installs from Wise to IS. Looking forward to it. In the mean time we have to maintain the old Wise installs. We have encountered a problem whereby the install (an .MSI) will install when run “as an administrator” but not when double clicked. I start a CMD box with “run as Admin…” and run “msiexec /i install.msi” and it works great. I double click install.msi as a user in the local admin group and it fails. It fails on some bs legacy vbscript writing to a local file.
The platform is 2008 Server RC2. What I would like to do is convert the msi to exe’s so the user can “run as administrator”. What I need to do in the install is identify that I am not in “run as admin..” mode. I have read and tested with various of MSIUSEREALADMINDETECTION/Privileged/AdminUser and MsiRunningElevated testing so far has not delivered the above scenario. Any love would be appreciated.
We are moving about 40 installs from Wise to IS. Looking forward to it. In the mean time we have to maintain the old Wise installs. We have encountered a problem whereby the install (an .MSI) will install when run “as an administrator” but not when double clicked. I start a CMD box with “run as Admin…” and run “msiexec /i install.msi” and it works great. I double click install.msi as a user in the local admin group and it fails. It fails on some bs legacy vbscript writing to a local file.
The platform is 2008 Server RC2. What I would like to do is convert the msi to exe’s so the user can “run as administrator”. What I need to do in the install is identify that I am not in “run as admin..” mode. I have read and tested with various of MSIUSEREALADMINDETECTION/Privileged/AdminUser and MsiRunningElevated testing so far has not delivered the above scenario. Any love would be appreciated.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 02, 2010
01:57 PM
Bueller? Bueller? Bueller? Anyone?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 03, 2010
03:00 AM
Hi,
In the releases view you can set the setup.exe to request/require administrative privileges.
If your VB script is set to immediate running, the custom action will fail it it tries to edit the opertating system because the immediate actions don't have elevated permissions unless you are a builtin administrator or run with elevated privelages.
All change custom actions to the Operating System should be made deferred in system context.
Vijay.
In the releases view you can set the setup.exe to request/require administrative privileges.
If your VB script is set to immediate running, the custom action will fail it it tries to edit the opertating system because the immediate actions don't have elevated permissions unless you are a builtin administrator or run with elevated privelages.
All change custom actions to the Operating System should be made deferred in system context.
Vijay.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 03, 2010
07:43 AM
Thanks for your reply. These scripts are in Wise. We have purchased IS just not moved the scripts over just yet. Anyway to accompish this in pure MSI code? What table/values do I have to set? The user running the MSI is part of the local admin group and still fails. Only when we "Run As" Admin do we get any love.
The actions that are causing the problems are custom scripts that are in "Execute Immediate". I will move them and test.
I inherited about 40 scripts that are a mess. I would rather just be able to "Run As" Admin until I can get them into IS and thoroughly review them.
Thanks for your reply.....
The actions that are causing the problems are custom scripts that are in "Execute Immediate". I will move them and test.
I inherited about 40 scripts that are a mess. I would rather just be able to "Run As" Admin until I can get them into IS and thoroughly review them.
Thanks for your reply.....