tuti
Posts: 9
Joined: Tue Sep 09, 2008 12:57 pm

Folder and SetupTypeDlg

Hello,

i would like to know whether it is possible to somehow have the Folder and SetupType dialog at the same time. I would like the user to be able to modify the destination folder and in the next step be able to select between custom and standard install, where with the the custom install it should be possible to only modify the desktop and startup menu items. So, the problem i have now is, that whenever i add the folder dialog the setuptype dialog disappears.
i would be very happy for some hints on that.

best regards
ruth



in trhe meantime i have tried to create a new dialog (added new dialog) and copied all the controls and conditions from the folder dialog to the new one. now it should have exactly the same functionality, the next button points to the setupdialog and the back button to the license agreement dialog. however, when i try to build the project i get an error 2343 when clicking the next button that should be leading to newly created dialog.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Folder and SetupTypeDlg

Hi Ruth,

I'm afraid that the "FolderDlg" and "SetupTypeDlg" dialogs are mutually exclusive. Therefore, you cannot add both of them in the same package. However, you can try this approach:
- add "FolderDlg" in the "Dialogs" page
- add a custom checkbox on it which allows the user to choose a custom installation
- add the "ShortcutsDlg" dialog after "FolderDlg"
- configure it to handle only Desktop and Startup shortcuts
- use the property of the checkbox to conditionally show the "ShortcutsDlg" dialog

Please note that the User Guide contains the Conditionally show "StartMenuShortcutsDlg" and Conditionally show the "UpgradeDlg" dialog which may help you.
when i try to build the project i get an error 2343 when clicking the next button that should be leading to newly created dialog.
The error 2343 means "Specified path is empty". Did you enter a value in the Path Edit control on your custom folder dialog?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tuti
Posts: 9
Joined: Tue Sep 09, 2008 12:57 pm

Re: Folder and SetupTypeDlg

now i did :)
but what exactly, sorry for the stupid question, do i have to enter here? because if enter [ProgramFilesFolder][Manufacturer]\[ProductName] it tells me that the path is unavailable.

thanks for your help so far.
best regards
ruth


ok now, really stupid question! its working now! but now i'm getting a new error! when clicking the next button of the folderdialog (the one created by me), which should lead to the verifyready dialog i get the error 2872. do you know that one?
Last edited by tuti on Thu Sep 25, 2008 9:49 am, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Folder and SetupTypeDlg

Hi Ruth,

Usually the "FolderDlg" dialog is used to set the path of the installation folder. However, this is controlled by a SetTargetPath published control event for the "Next" button. If you want to create a custom dialog which sets the installation path please see the Browse for Folder how-to in the User Guide. Please note that the property of the "Application Folder" directory in the "Files and Folders" page is APPDIR.

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

Return to “Feature Requests”