Hi,
Define two properties (upper cases) in "Install Parameters" page one with value: C:\ and other with value: D:\.
You need to remove the "FolderDlg" dialog from dialogs page so that the user can not modify the path where the package will be installed.
You can create a file search in "Search" page. To learn more about how to schedule a search please see:
http://www.advancedinstaller.com/user-guide/search.html
Switch to "Custom Actions" page and create two "Property Set With Formatted" custom actions under "CostFinalize" standard action with following options:
1. Property Name: [APPDIR] (folder where the application will be installed)
Formatted Text: the property defined in the "InstallParameters" page with value of "C:\"
Execution condition: RESULT_PROPERTY (the search property)
2. Property Name: [APPDIR] (folder where the application will be installed)
Formatted Text: the property defined in the "InstallParameters" page with value of "D:\"
Execution condition: NOT RESULT_PROPERTY (the search property)
If you encounter any problem please let me know.
Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging