Hi all,
I am using AI Enterprise and I want to specify 2 paths:
- a application path (stored in APPDIR property)
- a data path (stored in AppDataFolder)
Now I extended the normal FolderDlg with another Path Edit box and a Browse button. One Path Edit box is assigned to Property Name "APPDIR" and the other box to "AppDataFolder".
The Browse button for the "APPDIR" Path Edit box is set to:
- Event: [_BrowseProperty]
- Argument: APPDIR
- Condition: 1
The Browse button for the "AppDataFolder" Path Edit box is set to:
- Event: [_BrowseProperty]
- Argument: AppDataFolder
- Condition: 1
The Next button on the same dialog is setup with the event:
- Event: SetTargetPath
- Argument: APPDIR
- Condition: 1
Everything seems to work fine, the installation will complete succesfully. The APPDIR is used as installation folder, however the AppDataFolder is not updated with the value showed in the Path Edit box. It will always remain the default value set by Windows: "C:\Documents and Settings\$USER$\Application Data\$DATAFOLDER$".
I set both properties APPDIR and AppDataFolder to a default value through a small VB script using the Session.Property command. This works fine, the Path Edit boxes show exactly the path as mentioned in the script.
How can I set the AppDataFolder property after the FolderDlg? This data folder can also be on another drive.
Thanks in advance for any help!
Kind regards,
Jurjen
FOLLOW US
Get the latest news in Application Packaging