Hi,
We need a button press on a dialog to call a customised script. Basically we need to test a database connection via an external exe.
Is there some way to introduce custom event handlers/methods so that we can do this?
Wise for Windows installer does this, but I've not found a way to do this in InstallAware.
There are about 5 standard actions available for buttons in the dialog editor (eg. Next dialog, previous dialog, cancel, etc.), however there seems to be no way to introduce a custom handler.
Any help appreciated.
Custom actions in dialogs ?
I had a similar problem.
Soveld it by setting MYCUSTOM button action to Return from Dialog and then in MSIcode checked if wizard variable is MYCUSTOM. Execute program and goto back to dialog
Only annoyance is that dialog flashes, but I think we can live with that.
Soveld it by setting MYCUSTOM button action to Return from Dialog and then in MSIcode checked if wizard variable is MYCUSTOM. Execute program and goto back to dialog
Code: Select all
label: Welcome Dialog
Display Dialog: welcome, wait for dialog to return (modal)
if Variable WIZARD Equals CANCEL
GoTo Label: Main Install
end
if Variable WIZARD Equals MYCUSTOM
Run Program $SUPPORTDIR$\\MyCustomProgram.exe
GoTo Label: Welcome Dialog
end
Only annoyance is that dialog flashes, but I think we can live with that.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 15 guests