Install Path Clears when select Custom 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!

DavidC
Posts: 4
Joined: Thu Sep 29, 2011 12:23 am

Install Path Clears when select Custom install

I believe the last service build introduced a bug where the installation path can become an empty path. Steps to reproduce:

1. Run the installer
2. Select the “Custom” install option and the install path textbox gets cleared.

If you continue with the install, the app will install in the “AppDir” folder instead of the usual Program Files location. If you follow these steps with other installers all the applications will end up in the same folder.

Advanced Installer version: 8.5 Build 38139
Installer Theme: Modern
Tested OS: Windows XP & Windows 7

Thank you,

David
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install Path Clears when select Custom install

Hi David,

Thank you for your feedback.

This is actually the intended functionality of the Modern theme when selecting a Custom installation type. As mentioned in its description:
Allows users to choose which program features will be installed and where they will be installed. Recommended for advanced users.
If someone leaves the installation path field empty, then the default will be:

Code: Select all

C:\APPDIR
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DavidC
Posts: 4
Joined: Thu Sep 29, 2011 12:23 am

Re: Install Path Clears when select Custom install

In the previous version it did not clear the path unless the user manually cleared the path. I'm 100% sure this is going to lead into problems when users try to install the application. Is there any way prevent it from clearing the path when the user selects the "Custom" option? It should leave the default unless the user manually changes the path.

Thank you,
David
AlexRiedel
Posts: 5
Joined: Mon Sep 26, 2011 7:07 pm

Re: Install Path Clears when select Custom install

This sounds like it should be [APPDIR] as the default rather than C:\AppDir.
I can't think of anyone wanting to install applications directly under C:\.

Plus if anyone installs multiple applications there is a danger that all of them get mushed together in one folder.
Surely that can't be the intent here. However, if, surprising as this may be,that IS the case, how can we disable the Custom option altogether?

Thanks for listening.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install Path Clears when select Custom install

Hello,

As mentioned in its description, the Modern "Custom" installation type is designed for advanced users who need to change the installation path.

The dialog also has the "Restore Defaults" button on the bottom left corner. By pressing this button the installation path will be automatically populated with the APPDIR property defined in the Install Parameters page.

However, if you feel the theme's UI and functionality would be misleading for your users and the installation could end up in C:\AppDir, here's what you can try:

Variant 1
Add a Reset published event on the Next button set with NOT APPDIR condition:
Variant 1.jpg
Variant 1.jpg (45.37 KiB) Viewed 7905 times
Variant 2
Add two control conditions for the Next button as illustrated in the following image:
Variant 2.jpg
Variant 2.jpg (105.85 KiB) Viewed 7905 times
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DavidC
Posts: 4
Joined: Thu Sep 29, 2011 12:23 am

Re: Install Path Clears when select Custom install

How do I configure the dialog so it displays the default path instead of leaving the "InstallPath" textbox empty? I don't want to trigger the reset when the user presses the next button because it will change the selected features.

David
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install Path Clears when select Custom install

Hi David,

Unfortunately this is the way CustomizeDlg is designed in the Modern theme and there is no way to show the default value of the APPDIR in the "Product install path" edit box.

You can however default the installation path of the application to the value you have set in the Install Parameters page if the user leaves the APPDIR property not set.
To achieve this you can try the following:
  • go to Install Parameters page and add a public property. Something like:

    Code: Select all

    APPDIR_PROP
  • create a SetProperty published event on the Next button of the WelcomeDlg:
    WelcomeDlg Next PE.jpg
    WelcomeDlg Next PE.jpg (88.35 KiB) Viewed 7892 times
  • create a SetProperty published event on the Install button of the VerifyReadyDlg with the conditions below:
    VerifyReadyDlg Install PE.jpg
    VerifyReadyDlg Install PE.jpg (108.07 KiB) Viewed 7892 times
I also attached a sample project that demonstrates these settings:
test.aip
(8.59 KiB) Downloaded 527 times
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DavidC
Posts: 4
Joined: Thu Sep 29, 2011 12:23 am

Re: Install Path Clears when select Custom install

mihai.petcu wrote:Unfortunately this is the way CustomizeDlg is designed in the Modern theme and there is no way to show the default value of the APPDIR in the "Product install path" edit box.
Again, to be clear this is not the way it functioned in the previous builds of Advanced Installer. By saying this is the way it was designed; you are implying that it always functioned this way, but in reality this change was introduced in the last service build. Did the developers make this change on purpose?

Unfortunately the solution you propose means having to manually alter all of our installers that functioned correctly with previous Advanced Installer build. In addition, I would still prefer to display the default path which apparently can't be done, which is a bug unto itself.

Thank you,

David
AlexRiedel
Posts: 5
Joined: Mon Sep 26, 2011 7:07 pm

Re: Install Path Clears when select Custom install

I verified with archived previous versions of Advanced installer that the Modern Theme did not ever behave that way before.
I must admit that I am at a loss. I understand that the purpose of the CustomizeDlg is to allow advanced users to choose their own install folder, amongst other things.

However, most users that use the Custom Installation route do so to select the features to install and NOT to modify the installation folder.

Now here comes the important part: "EVERY OTHER INSTALLER AND EVERY PREVIOUS VERSION OF ADVANCED INSTALLER MAINTAINS THE DEFAULT PATH IN THAT CASE"

So users will just skip over that part and not read and suddenly end up with 15 applications all installed in C:\AppDir.
Can you verify that this was your intention?

Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Install Path Clears when select Custom install

Hi,

This is a bug in our enhanced UI and will be fixed as soon as possible. Thank you for bringing it to our attention.
A temporary solution is to disable the enhanced UI from Themes page. Also, if you cannot wait until the release we can send you a release candidate with the fix.

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

Return to “Common Problems”