Hi,
I have a problem creating my own customized FolderDlg. For this I used the default FolderDlg as a template, removed the "Path Edit" box and "Browse" button and placed two new "Path Edit" boxes and two new "Browse" buttons. I also already read some topics about this, but none of the seem to work for me.
For the "Path Edit" boxes I didn't set any event.
For the first "Browse" button I set the following property:
- name: BrowseApp
For the first "Browse" button I set the following events:
- event: [_BrowseAppProperty]
- argument: [IVM_APP_DIR]
- condition: AI_INSTALL
and
- event: SpawnDialog
- argument: BrowseDialog
- condition: 1
For the second "Browse" button I set the following property:
- name: BrowseData
For the second "Browse" button I set the following events:
- event: [_BrowseDataProperty]
- argument: [IVM_DATA_DIR]
- condition: AI_INSTALL
and
- event: SpawnDialog
- argument: BrowseDialog
- condition: 1
For the "Next" button I set the following events:
- event: SetTargetPath
- argument: [IVM_APP_DIR]
- condition: AI_INSTALL
and
- event: SetTargetPath
- argument: [IVM_DATA_DIR]
- condition: AI_INSTALL
and
- event: NewDialog
- argument: VerifyReadyDlg
- condition: AI_INSTALL
Under "Install Parameters"->"Properties" I have added two properties:
- name: IVM_APP_DIR
- value: [APPDIR]
and
- name: IVM_DATA_DIR
- value: [AppDataFolder]
Under "Files and Folders" I have adde two property based folders:
- IVM_APP_DIR
- IVM_DATA_DIR
Under "Custom Actions"->"InstallUISequence"->"Begin" I added two times a "Property Set with Formatted":
- Property Name: IVM_APP_DIR
- Formatted Text: [APPDIR]
and
- Property Name: IVM_DATA_DIR
- Formatted Text: [AppDataFolder]
I also dragged and dropped (with holding the left shift-key) both properties to "Custom Actions"->"InstallExecuteSequence"->"Begin", so both properties are visible under both installer event.
When I build this installer, which succeeds succesfully, I always get an error as soon as I click on one of the "Browse" buttons (error code 2819) or the "Next" button (error code 2872).
What am I doing wrong?
And what do the conditions AI_INSTALL or 1 mean?
I am using the Advance Installer Enterprise edition. I want to use the IVM_APP_DIR property to use for where to install the application and the IVM_DATA_DIR property to create some folders, to which my application will write its data (this can be on another drive!).
Hopefully someone can help me? Thanks in advance!
Kind regards,
Jurjen
FOLLOW US
Get the latest news in Application Packaging