Insufficient Privileges to Access Directory - Advanced Installer Community
aweiss
Posts: 2
Joined: Tue Sep 10, 2019 3:09 pm

Insufficient Privileges to Access Directory

I'm getting this error during install:
"The installer has insufficient privileges to access this directory: C:\Program Files\MyCompany\MyProduct. The installation cannot continue. Log on as administrator or contact your system administrator".
I know I am logged in as administrator, because I have never had any problem installing any other tools, or making system changes. When I go to User Accounts (Windows 7) and select my user properties, it shows that I am in the Administrators group.

In the AIP, under Install Parameters, I have the "Run as administrator" checkbox checked. The execution level is "Require Administrator".

In the AIP, under Installation type, I have "Per-machine only".

I am attaching the installation log file, and the AIP file.
NOTE: I have changed the company name and product name in the log file and AIP file, because the product is proprietary.

I've spent the last day Googling and looking through the forums, I cannot find anything that helps this situation.
Attachments
install log2.txt
(133.92 KiB) Downloaded 343 times
MyCompany MyProduct.aip
(43.15 KiB) Downloaded 364 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Insufficient Privileges to Access Directory

Hi and welcome to our forums,

Please note that this happens because the install type of your "ExRelExternalRelease" build is set to per-user only option.
Capture.JPG
Capture.JPG (205.49 KiB) Viewed 4671 times
Can you please change it to per-machine only for all of your project builds, rebuild the steup project and test again the installation scenario?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”