BITS_Mark Posted January 26, 2016 Posted January 26, 2016 (edited) Hi, I have an .msi installer for my application. When i double click this file and install it, it does not work properly due to admin permissions. When i right click the CMD, click Run As Administrator, find this .msi file, run it through this and install, it works perfectly and has full admin permissions. My question is, is there a way for me to double click my .msi file and install it, and it have the same admin permissions as if I was to install via the CMD as Admin. I just want to know so I can get the developers to add this in as going through CMD is a bit of a pain. Hope this makes sense. Many thanks Edited January 26, 2016 by BITS_Mark
Michael Posted January 26, 2016 Posted January 26, 2016 What about if you deploy it via Group Policy? This is fairly typical of a lot of manually installed MSIs requiring elevated install rights. 1
BITS_Mark Posted January 26, 2016 Author Posted January 26, 2016 Thanks for your reply. The .msi file only needs to be run on one machine per site, so deploying via Group Policy would probably lengthen the process.
mrwoberts Posted January 26, 2016 Posted January 26, 2016 (edited) I believe you should have the option of holding down the SHIFT key when you right click on a file to 'run as different user' However, here's a link to a .REG import file that I know works for MSI files MSI "Run as administrator" Context Menu for Vista | Symantec Connect EDIT: Ignore the Vista reference, it works for Windows 7 too Edited January 26, 2016 by mrwoberts 1
themightymrp Posted January 26, 2016 Posted January 26, 2016 A quick group policy to install it, with a changed scope so that it only applies to the machine you want. You say it would take longer but if it only applies to one machine per site it's just as good as doing the 'Run as administrator' from CMD. 1
koryo Posted January 26, 2016 Posted January 26, 2016 A quick group policy to install it, with a changed scope so that it only applies to the machine you want. You say it would take longer but if it only applies to one machine per site it's just as good as doing the 'Run as administrator' from CMD. Also, if you ever wipe the computer and re-install the OS, the software automatically installs over group policy. Setup once, saves fuss in the future?
BITS_Mark Posted January 26, 2016 Author Posted January 26, 2016 Thanks for the replies. Think you may have misunderstood, my question is, is there anything I can change to our .msi file, from a coding point of view, that will automatically give it full admin permissions when its run/installed, without the need of making changes to the site machine itself, and without the need to deploy via group policy or run as admin via the CMD. Hope this makes sense
themightymrp Posted January 26, 2016 Posted January 26, 2016 I don't think you can. With the introduction of User Account Control, MSI's just don't run that way anymore. Maybe you could get your developer(s) to package it in an .EXE wrapper which you could then right click and choose 'Run as administrator'? 1
BITS_Mark Posted January 26, 2016 Author Posted January 26, 2016 I don't think you can. With the introduction of User Account Control, MSI's just don't run that way anymore. Maybe you could get your developer(s) to package it in an .EXE wrapper which you could then right click and choose 'Run as administrator'? Yep i think this is the best way to go, many thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now