Summary
This article provides information regarding how to add an additional Destination Folder dialog.Synopsis
This information applies to the following InstallShield Project Type:InstallScript MSI
Occasionally it is necessary to prompt the end user for a destination location in addition to the default INSTALLDIR. In order to provide the end user with the same Browse to a folder dialog used in a default installation, the following steps can be followed.
Discussion
1. Create an entry in the Directory table via the Direct Editor. The entry specified in the Directory column should be all capital letters. The directory entry used in these steps will be MYDIR.
2. In the Directory_Parent column, type TARGETDIR.
3. In the DefaultDir column put a dot (.). Leave the default values in the remaining columns.
4. Go to the feature or component for which you want to use MYDIR as the destination. In the Destination field drop-down menu, browse to and select MYDIR.
5. Under the InstallScript view, within OnFirstUIBefore add the following variable declaration:
STRING szMyDir
6. Locate in Setup.rul where the dialog should be displayed in OnFirstUIBefore and add the following (where Dlg_PreviousDlg is the dialog label displayed previous to this dialog):
Dlg_SdAskDestPathMyDir:
nResult = SdAskDestPath( "", "", szMyDir, 0);
MsiSetTargetPath(ISMSI_HANDLE, "MYDIR", szMyDir);
if (nResult = BACK) goto Dlg_SdAskDestPath;
nResult = SdAskDestPath( "", "", szMyDir, 0);
MsiSetTargetPath(ISMSI_HANDLE, "MYDIR", szMyDir);
if (nResult = BACK) goto Dlg_SdAskDestPath;
6. If necessary, adjust the subsequent dialog by modifying as follows:
if (nResult = BACK) goto Dlg_SdAskDestPathMyDir;
Related KB Articles
Q103168Additional Information
If the title and message of the dialog require modification from the default, the first two parameters for SdAskDestPath can be modified as needed.For more information on the Directory Table, see Flexera Software Knowledge Base Article Q103168:
Was this helpful?
Related Articles
How to Add Additional Users to Cases Portal (Flexera Community) 69Number of Views DIFXAPP: ERROR: more than one driver package found in '<Destination Folder>' 2Number of Views Creating a Custom Destination Path 2Number of Views Adding an Oracle agreement results in "1 incomplete fields" error 8Number of Views Adding an Amazon Web Services (AWS) Account 6Number of Views
Revenera Assistant - Beta
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
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. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago