** Warning -4095: Calling DoAction from a control event on an InstallScript custom action may not work in all cases, especially if you are using SOURCEDIR, TARGETDIR, PreShowComponentDlg, or MsiDoAction in the script.
Here is the scenario; my UI is quite complex with 60+ dialogs extensively branched. i.e. the UI path depends on the option selected.
I have a CA on the Next button which adds the current dialog name to a stack and another which sets a property to the last value on the stack when the Back button is pressed....
DoAction GetDialogOffStack 1
NewDialog [LASTDIALOG]
I am not using any of the properties the warning suggests,
I thought this is what the DoAction is for?!?
And my solution works fine apart from 106 x -4095 warnings at build time.
I know that I can control Back navigation by layering NewDialog commands as follows:
NewDialog DlgNumberOne NOONE=TRUE
NewDialog DlgNumberTWO NOTWO=TRUE, etc.
but this is very difficult to sustain as the conditions are at times 7-8 layers deep!!!!
Any help would be greatly appreciated.
Dave.