We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

nbates
Posts: 10
Joined: Wed Dec 06, 2006 9:50 pm

Insufficient privileges to create program folder

I've created a basic (Professional) installation using AI V4.5 and selected "Per machine if administrator, otherwise per-user", but for non-administrative installations it fails at the "Creating Folders" stage with the message;

"The installer has insufficient privileges to access this directory: C:\Program Files\MyProgramFolder The installation cannot continue. Log on as administrator or contact your system administrator."

I also tried setting privileges via Properties' in Files and Folders for the "Application Folder" and the two sub-folders it contains, but it made no difference.

Thanks In Advance!
nbates
nbates
Posts: 10
Joined: Wed Dec 06, 2006 9:50 pm

Well after reading thru all relevent messages here, experimenting and Googling around the universe I'm still a bit confused...

Clearly, it seems that C:\Program Files denies folder creation and DOS Prompt "md tests" fail in that folder if/when not logged in as Administrator and I'm wondering if/how or whether there are any other forms of installation which succeed in creating a [ProductName] folder in the [ProgramFilesFolder] without the need of switching to Administrator and applying some of the arcane and stated to be risky msiexec boosting proceedures.

As an alternative for the case of "Per-machine if user is Administrator, per-user otherwise"; it would seem simple, even though sub-optimal for the Installer to be able to present administrative users with a default for [ProgramFilesFolder][ProductName] and non-admin users with a default of [WindowsVolume][ProductName] which does appear to work, however the solution for that is not automatic or clearly described here in the forum (maybe it's me, because I haven't found it yet).

So for the moment my only option is a hack which will install, but can't go to market until a clean solution is discovered.

+++

Strangely I was able to run as user "test", where my AI 4.5 and 4.2 installations failed, and perform a seamless and successful install into C:\Program Files\Vendor\FLC of the FuzzyLogic.msi kit.

Additionally, I tried the tip mentioned in a few posts here in an attempt to "EnableUserControl" by setting the property to '1'...V4.2 allowed this but there was no affect and V4.5 would not allow the property to be specified or accessed it seems (I couldn't locate it in the UI or .aip) and errored with 'duplicate property of that name aready esists'.

:roll:

Please let me know if you have any tips of a solution, because other than this particular problem I am impressed with the product and would like to use it very much!

Thanks in Advance,
nbates
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can make a custom action that sets the APPDIR depending on the user. The property that tells what is the user type is ALLUSERS. For more details about this property please see:
http://msdn.microsoft.com/library/defau ... lusers.asp
I also tried setting privileges via Properties' in Files and Folders for the "Application Folder" and the two sub-folders it contains, but it made no difference.
The "Application Folder" inherits the permissions of the parent folder (in this case "Program Files").
Additionally, I tried the tip mentioned in a few posts here in an attempt to "EnableUserControl" by setting the property to '1'
To set the EnableUserControl property to 1 is not enough, a non-administrator use need to have privileges to write in a folder.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Last edited by gigi on Mon Dec 11, 2006 3:40 pm, edited 3 times in total.
nbates
Posts: 10
Joined: Wed Dec 06, 2006 9:50 pm

Hi Gigi,

Thanks for the information! I understand the purpose of increased protection with regard to program installation on the PC, but it does not please me that older installations for many other products I use (both setup.exe and appinst.msi based) have no trouble what so ever installing themselves into the C:\Program Files folder even when the user is running in an account with non-administrative privileges.

For my part it's not such a big deal but my customer(s) believe otherwise, so we'll need to come-up with a professional solution to keep them happy.

What do you think of adding and displaying a dialog (optionally selected in AI) for non-administrative installations, where the application should or must be made available system-wide and/or in the instance where the program has need of access to HKLM Registry keys, that would prompt for Administrative credentials and "runas /user:Administrator"?

Best Regards,
Norman
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Norman,
have no trouble what so ever installing themselves into the C:\Program Files folder even when the user is running in an account with non-administrative privileges.
Can you provide an example of application that does that?

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
nbates
Posts: 10
Joined: Wed Dec 06, 2006 9:50 pm

Gigi, please let me know what you discover...tia!

http://www.bates-consulting.com/flc_v22.msi
nbates
Posts: 10
Joined: Wed Dec 06, 2006 9:50 pm

oops, I may be sending you on a wild-goose chase with that as I just discovered the folder may have already been there with those installs that worked and had been previously installed at an earlier time when logged-in as Administrator, if so sorry for the confusion.

Return to “Common Problems”