Hello,
In order to achieve that, you can go in the “Install Parameters” page and using the “New Property” toolbar button add two properties.
Example:
First property:
Name:
PROP_FOLDER_PATH - This property will store the custom name that the user typed
Value:
C:\ – we must use a valid value otherwise we get an error message
Second property:
Name:
CUSTOM_PATH
Value:
Enter a custom name for your folder – also this value will be displayed in the editBox to the user, so you should use a meaningful message for thisproperty's value.
Now, you can go in the “Files and Folders” page and add a
property based folder using the “Folder” >> “Property Based” toolbar button. You can select the “PROP_FOLDER_PATH” property (in our example we defined this property) or the property that you had defined instead of it.
So this property based folder will be named according to he user choice.
Now we have to give the right path for this folder, in the application folder as you want.
For that, you can go in the “Custom actions” page and add a
“Set installer property” predefined custom action. You can edit the “Property” field to
PROP_FOLDER_PATH and the “Value” field to
[ProgramFilesFolder][Manufacturer]\[ProductName]\[CUSTOM_PATH] .
Also you can duplicate this custom action using a drag and drop operation, while the “Shift” key is pressed, in the “Wizard Dialogs Stage” after the “Searches” stage.
In the dialog where you added the editBox please select the
CUSTOM_PATH defined property (this property we have used in our example) for the “Property Name” of the editbox.
I have attached a sample, which implements a similar scenario.
Let us know if that helped otherwise give us more details.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging