New dialog box - 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!

JoffBenn
Posts: 3
Joined: Thu Jun 22, 2006 11:27 am

New dialog box

Hi, for the past week I have been trying to create a new dialogue box which will allow the user to select their own location for installing a sub folder to a location of their choice.

I can make this happen using install parameters and creating a secondary dialog box as required, however this only seems to work if I set the install parameter to a value that already exists prior to the install (i.e. C:\). Ideally, I would like this folder to default to the APPDIR folder, but if I try to set this, the application throws an error on install saying that it cannot find the Network Path.

I suppose what I am wanting is to have the bulk of the installation install to the APPDIR [PrgramFilesFolder][Manufacturer]\[ProductName] (or whatever the user sets this to) and then for the user to be prompted to choose where they want their sub-folder to go, but to be given a default option of [ProgramFilesFolder][Manufacturer]\[ProductName]\SubFolder with the user having the option to change this to any location of their choosing.

If I use the APPDIR for the sub-folder location, I am in effect setting this twice, so the product ends up installing everything to the sub-folder location.

Is this possible?

Many thanks

Joff
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please follow the instruction in the this link:
http://www.advancedinstaller.com/forums ... php?t=1320

Also add following custom action:
Switch to "Custom Actions" page and add a new "Property set With formated" CA under the "InstallUISequence->CostFinalize" standard action.
Use following options for the custom action:
1. Property Name: MYFOLDER
2. Formatted Text: [APPDIR]SubFolder
3. Execution Condition: (Not Installed)
4. Let all other options to their default values

Please let me know if you encounter any problem.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”