Destination folder permissions - Advanced Installer Community

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!

andris
Posts: 3
Joined: Thu Apr 15, 2010 11:16 am
Contact: Website

Destination folder permissions

Hi,

we use the free version of AI and have a Simple project kind. On Vista and above, our application can't write files to its installation directory because that is created with insufficient access rights by AI.

Please, is there a way to specify the permissions of the target folder in the AI project?

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Destination folder permissions

Hello,

Should you need to write data to locations on which elevation is required, please make sure your package type is set as "per user/per machine" from the Install Parameters page.
If this is already so, please send your .aip project file and an install log to support at advancedinstaller dot com so I can further investigate. Also, please link to this thread in your email.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
andris
Posts: 3
Joined: Thu Apr 15, 2010 11:16 am
Contact: Website

Re: Destination folder permissions

GabrielBarbu wrote:Should you need to write data to locations on which elevation is required, please make sure your package type is set as "per user/per machine" from the Install Parameters page.
Thanks, what I have there is "Per-user only (with administrator rights required)" so should that be "Per-machine if user is administrator, per user otherwise" ? . Unfortunately I need to avoid any per-machine installs, because the application being installed cannot handle individual settings. Also if the issue happens because of a per-user install, I think that scenario is not gone with the "per-machine/per-user" setup (I'll have the opportunity to try it on Vista a bit later, but probably just to see how it behaved)

I believe that the "Per-user only (with administrator rights required)" would just suit at best

Regards
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Destination folder permissions

Hello,

Your current "Per-user only (with admin rights required)" setting is correct. Does your installer elevate when pressing the Install button?
If so, please send your .aip project file and an install log to support at advancedinstaller dot com so we can investigate. Link to this thread in your email.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
andris
Posts: 3
Joined: Thu Apr 15, 2010 11:16 am
Contact: Website

Re: Destination folder permissions

GabrielBarbu wrote:Does your installer elevate when pressing the Install button?
Yes
Your current "Per-user only (with admin rights required)" setting is correct.
Ok, and I see my mistake, bad settings of Application Folder, every per-user instance would be installing into the same subfolders of ProgramFiles. But it was set automatically by a previous version of AI as far as I can tell ;) (sorry if I'm wrong) Now the Application Folder is based off of AppDataFolder for this installation type, I tried it on Vista, the destination folder allows writing and things are ok

I have yet created log for the per-machine installation type out of curious, installing into ProgramFiles on Vista. In this case the destination folder again doesn't allow writing for the Users group, but that actually makes some sense, I assume it's the expected behavior and sending you the log is pointless (otherwise leave a note please)

Thanks for your help
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Destination folder permissions

Hello,

Indeed on a per-user installation the Application Folder should be a subpath of AppData. Not being so explains your permissions issue.
I'm glad you got this sorted out.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”