Hello,
1) Go to "Install Parameters" page and set a property named FIXEDFOLDER with the value "SomeFolder" without the quotes
2) Go to "Custom Actions"
a) Right click InstallUISequence and select "Show Standard Action"->"MigrateFeatureStates"
b) Right click "MigrateFeatureStates" and select "New Custom Action"->"Property Set with Formatted"
c) Fill in the property's fields like this:
Code: Select all
Property Name: BACKUP_DIR
Formatted Text: [APPDIR]
e) Right click the custom action added at step b) and select "New Custom Action"->"Property Set with Formatted"
f) Fill in the property's fields like this:
Code: Select all
Property Name: APPDIR
Formatted Text: [APPDIR][FIXEDFOLDER]\
3) Go to "Dialogs" page
4) Select the "Browse..." button from the FolderDlg Dialog then go to "Published Events" tab and make sure there are three events in this exact same order:
Code: Select all
Event Argument Condition
[APPDIR] [BACKUP_DIR] AI_INSTALL AND BACKUP_DIR
[_BrowseProperty] APPDIR 1
SpawnDialog BrowseDlg 1
Note that the first one you will have to create, then use the "Up" button to move it first in the stack.
5) Select BrowseDlg Dialog, select the "OK" button from this dialog then go to "Published Events" tab and make sure there are four events in this exact same order:
Code: Select all
Event Argument Condition
[SetTargetPath] [_BrowseProperty] 1
[EndDialog] Return 1
[BACKUP_DIR] [APPDIR] 1
[APPDIR] [BACKUP_DIR][FIXEDFOLDER]\ 1
Note that the last two events will have to be manually created. Use the "Up" and "Down" buttons to achieve this exact same order.
Please note that this can only be achieved in an Enterprise project.
Regards,
Gabriel
FOLLOW US
Get the latest news in Application Packaging