Taking in account your suggestion can I do the following?:
- run my exe and this exe will set a specific MSI property in case
cancel was selected
- add a new VBScript custom action that will be executed right after the
above one
- this one checks that property and in case it was cancel it will return
IDCANCEL=2
Would something like this be ok?
Or creating a VBSCript CA that itself runs my exe (this is available on
the target system) and checks the return value and if it was cancel it
will itself return IDCANCEL=2?
Thanks,
Viv
On Sat, 26 Nov 2005 10:49:51 +0200, Kalle Olavi Niemitalo <(E-Mail Removed)>
wrote :
>Viviana Vc <(E-Mail Removed)> writes:
>
>> Thx for you answer. Actually my problem is not the rollback. Let's say
>> that I have a custom action that in some cases needs to make the
>> uninstaller to stop simulating the same behaviour like the user pressed
>> Cancel, so rollback should be run. So let's say if my exe returns -1 the
>> uninstaller should react like the user has chosen cancel on the MSI
>> dialog.
>
>You cannot do this with an EXE custom action.
>In a DLL custom action [1], return ERROR_INSTALL_USEREXIT = 1602.
>In a script custom action [2], return IDCANCEL = 2.
>
>References:
>
>[1] Custom Action Return Values [Windows Installer]
>http://msdn.microsoft.com/library/en...urn_values.asp
>
>[2] Return Values of JScript and VBScript Custom Actions [Windows Installer]
>http://msdn.microsoft.com/library/en...om_actions.asp