Install Script doesn't run from Control Event
Posted 23 July 2001 - 10:00
vbScript here works like a charm.
Posted 24 July 2001 - 00:29
export prototype myFunction(HWND);
The HWND is a handle to the current installation session. It may or may not be necessary within your script, but it is required as the only parameter of the function.
Once you've written your function, you should be able to create an InstallScript based custom action, that can then be called from a DoAction.
Posted 24 July 2001 - 12:38
Posted 24 July 2001 - 20:01
I've done this in a few installs and it's worked every time. Are you having troubles getting these functions to work?
Posted 24 July 2001 - 22:20
Posted 25 July 2001 - 00:40
The warning is given because some of the path based default properties (SOURCEDIR, TARGETDIR, etc) may not be initialised if you use your custom action to early in the interface sequence. If you don't use any of these, or you use them late in the sequence, you should be ok.
It would be nice if InstallShield could tell the difference between a potentially illegal custom action or a safe one, but it can't, so it displays the warning for all of them.