Hi,
one more thing.
I use this code on installation:
Code: Select all
...
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Run Program $TARGETDIR$\\bin\\RegAsm.exe ExchangeServerToolbox.dll /codebase
Run Program $WINSYSDIR$\\cscript.exe "$TARGETDIR$\\bin\\SMTPReg.Vbs" /add 1 OnArrival ExchangeServerToolbox Jam.ExchangeServerToolbox.Plugin.MsgSub "MAIL FROM=*" (WAIT)
end
end
...
the last line works only fine if the 'hide window' checkbox is NOT checked.
If I check it to avoid a commandline window flashing the command seems not to be executed.
Hint: I use a similar command on uninstall
Code: Select all
...
if Variable REMOVE Equals TRUE
Run Program $WINSYSDIR$\\cscript.exe "$TARGETDIR$\\bin\\SMTPReg.Vbs" /remove 1 OnArrival ExchangeServerToolbox (WAIT)
Run Program $TARGETDIR$\\bin\\RegAsm.exe ExchangeServerToolbox.dll /unregister
Apply Uninstall (get result into variable SUCCESS)
...
this works fine no matter if the 'hide window' option is checked or not.
Any ideas on this?