Summary
How do the DestinationFolder and InstallChangeFolder Dialogs Work?
Synopsis
The predefined dialogs DestinationFolder and InstallChangeFolder work together to allow the end user to select a new destination folder for the installation via a graphical view of the directory structure. This article explains how they work. Article" Use InstallChangeFolder Style Dialogs to Allow Users to Set Other Properties." explains how to use dialogs like these to work on any property.
Discussion
Controls and Events on DestinationFolder
On the DestinationFolder dialog, the PushButton control named ChangeFolder has two events associated with it. You can view these events by highlighting ChangeFolder in DestinationFolder's Dialog Behavior view. The first event, SpawnDialog, spawns the InstallChangeFolder dialog.
The other event is [_BrowseProperty] and its argument is INSTALLDIR. If a property in brackets is specified in the place of an event, that property will be set to the value given in the argument field. When ChangeFolder is clicked, _BrowseProperty will be set to INSTALLDIR. At the same time, InstallChangeFolder will be spawned, as mentioned above.
Controls and Events on InstallChangeFolder
It is necessary to set _BrowseProperty because there are three controls on InstallChangeFolder that use _BrowseProperty: a DirectoryCombo, a DirectoryList, and a PathEdit. Although all of these controls look and interact with the user in different ways, they all do the same thing: display the path specified in their Property and allow the user to change the value of that Property. In this case, the property is _BrowseProperty (which was set to INSTALLDIR). When the user selects directories with any of these controls, the associated property, in this case INSTALLDIR (via _BrowseProperty) will be changed.
After users finish changing the value of the property to their liking, they will click OK. The OK button not only has an EndDialog ControlEvent associated with it, but also a SetTargetPath ControlEvent. SetTargetPath is given _BrowseProperty as an argument. It will check the path given by its argument to see if it is valid and writable. If it is not, it will block further events associated with its control.
Additional Information
- For more information, see Knowlege Base: "Use InstallChangeFolder Style Dialogs to Allow Users to Set Other Properties."
Related Articles
Use InstallChangeFolder Style Dialogs to Allow Users to Set Other Properties 15Number of Views How do the lmgrd and lmdown Processes Work to Start and Stop vendors on Windows? 9Number of Views How Do You Remove InstallShield Branding from Dialogs? 6Number of Views How does the keyword ONE_TS_OK work in the feature definition line? 10Number of Views How Does TCP_NODELAY Work? 11Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago