/build/static/layout/Breadcrumb_cap_w.png

Admin rights switch for an MSI package

Trying to install an MSI package from within a standard user account, but unable to because access is denied (only user rights). Any ideas about what switch to use to give the MSI administrator rights?

Trying to install the JAVA SDK package via an MSI.

0 Comments   [ + ] Show comments

Answers (6)

Posted by: brenthunter2005 15 years ago
Fifth Degree Brown Belt
0
Try logging onto the computer with admin rights. [;)]

If you don't want to do it that way, you could run the MSI install using the 'runas' command.
Posted by: WiseUser 15 years ago
Fourth Degree Brown Belt
0
There's a policy which enables all MSI installs to run "elevated", but it's not a recommended one.
Posted by: murphy1 15 years ago
Senior Yellow Belt
0
The application is to be deployed to numerous Win2k machines remotely. The problem is that the PC's have been set up over the years with varying admin passwords - the runas command may prove difficult. The elevated rights for the MSI install through a policy sounds good - are the any more details regarding this please?
Posted by: WiseUser 15 years ago
Fourth Degree Brown Belt
0
Search the SDK or the web for "AlwaysInstallElevated".
Posted by: ds0934 15 years ago
Orange Senior Belt
0
You can hack the registry to add "MSI" file types to respect the RUN AS option on right-click popups. By default, Windows XP only recognizes EXE files for RUN AS, not MSI files. There's an interesting BLog thread on this at http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx

The registry hack is to add a "runas/command" entry under HKCR as follows...

[HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command]
(Default REG_SZ value) ="\"%1\" %*"

Take a look at the entry for HKEY_CLASSES_ROOT\exefile\shell\runas\command. It uses the same value entry.
Posted by: ds0934 15 years ago
Orange Senior Belt
0
I should have mentioned that you can add this same key/value set for other filetypes such as VBS, JS and PL script files. It can come in handy to be able to right-click and Run-As other file types.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ