Installation type dialog overwrites installation folder path - Advanced Installer Community
naniew
Posts: 12
Joined: Fri Apr 24, 2015 10:31 am

Installation type dialog overwrites installation folder path

In the User Interface -> Dialogs, if the InstallTypeDlg is placed after the FolderDlg, the user defined installation folder path is overwritten and the application installs to the default application folder.

Steps to reproduce
1. Add InstallTypeDlg
2. Add FolderDlg, so it is inserted before the InstallTypeDlg
3. Build and run the installer
4. In FolderDlg enter different installation folder e.g. 'C:\Program Files\Your Company\Your Application Test'
5. Finish installation
6. Application installs to the default folder: 'C:\Program Files\Your Company\Your Application'

Expected result
Application should install to the folder defined in FolderDlg.

Workaround
If the FolderDlg is placed after the InstallTypeDlg, the application is installed in the right folder.

Environment
Advanced Installer 12.0 build 63246
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Installation type dialog overwrites installation folder

Hello,

Yes, the behaviors you presented are correct.

The InstallTypeDlg is overwriting the folder path selected in FolderDlg.
This happens because the user selection made in the InstallTypeDlg is also setting the path for the installation as one of the following:
- ProgramFilesFolder for "Everybody" -> Per-machine installation
- LocalAppDataFolder for "Only for me" -> Per - user installation.

So the initial FolderDlg selection will be lost.

So, yes, you should at first select whether it is a per-user or a per-machine installation, and afterwards select the folder.

Regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
naniew
Posts: 12
Joined: Fri Apr 24, 2015 10:31 am

Re: Installation type dialog overwrites installation folder

Thank you for answer.

Best regards
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Installation type dialog overwrites installation folder

You are welcome.

Do not hesitate to ask further questions.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”