Possible bug with per user install? - 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!

morello
Posts: 1
Joined: Mon Oct 10, 2011 12:16 pm

Possible bug with per user install?

I had an installer which worked fine on one machine. Testing on a second machine it failed to install files in the APPDATA area.

I found that the difference was that the on the first machine the user was admin, so it did a per machine install. On the second machine, the user wasn't admin so it did a per user install and failed to write the APPDATA.

The problem seems to be that the installer was putting the executable in Program Files, which isn't a per user location and therefore isn't allowed. But this seems very odd, the Per User install manages to install the exe in a non-per user area, but failed to install the other data in an area it was allowed to.

Is that expected behaviour, because I want to be sure I have really fixed the problem.

I seem to have fixed things by turning on Per User for all users, which automatically warned me about the exe file and moved the Application Folder to a per user location.

If this is really the case, I think it would be helpful if AI detected this situation and warned about it, because it had me scratching my head for a while!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Possible bug with per user install?

Hi,

The default installation path for Application Folder is set in "Install Parameters" page. So if the default is using Program Files, both per-user and per-machine installations will use Program Files. The exceptions are:
- you use the default for each installation type (selecting a per-user installation type automatically sets a per-user Application Folder)
- you add InstallTypeDlg dialog in Dialogs page (it automatically changes the default installation path based on the selected installation type)

The above applies only to Application Folder from "Files and Folders" page. If you add files in other per-machine folders from "Files and Folders" page (for example "Program Files"), these files will never be redirected.

This also applies to registry entries. Entries which are added under HKEY_LOCAL_MACHINE won't work in a per-user installation.

We will try to include a validation mechanism for per-user installation type in a future version. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”