Jump to content

Recommended Posts

Posted (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 by BITS_Mark
Posted

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.

Posted

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.

  • Thanks 1
Posted
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?

Posted

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

Posted
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'?
  • Thanks 1
Posted
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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...