mandarj123
Posts: 18
Joined: Tue Nov 18, 2014 2:38 pm

Administrative permissions msi setup

Hello,
I have created a MSI setup of my application. the install parameter of "Per machine only (Fails if not administrator)"
Despite that, when I install application and run from a desktop shortcut (having logged in as administrator account), my app has a functionality which moves a file and deletes from installation folder.This fails,telling me , access denied to the folder.this works when I do "run as administrator" on the shortcut.

If I am logged in as administrator, it should not be saying access denied right?

Os is windows 7

What could be the reason.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Administrative permissions msi setup

Hi,

Please keep in mind that most of the configurations that you make in your project (i.e. "Per machine only (Fails if not administrator)" option) are applied to the MSI package that is created, not to the files and applications that it contains.

If you want your installed application to run with administrator privileges, you create a manifest for it or go in the "Registry" page of your project and create the registry entries described in the first answer of the "How to set “Run this program as an administrator” programatically" thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”