You don't call rollback function from your script.  Just return number 3 as 
exit code from the function and installer will do what it needs to do.
More information on custom action exit codes:
http://msdn2.microsoft.com/en-us/library/aa371254(VS.85).aspx

Regards,
Alex


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of kritza
Sent: Wednesday, February 13, 2008 5:28 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] rollback if VBScript return value < 0


Hello!

First of all:
I'm from germany so sorry for my bad english. But I'll try to do my best!
Further I'm new in WiX! It's my first project and I'm working on it since a
week!
So, I hope that my Problem is just simple for you. Also I searched in the
forum, but because I'm new in WiX and I'm not english, I didn't get it!...
:(

So:
My Installer is ready. It's even working - almost.. I got a CustomAction
writen in VBScript. In this VBScript I'm starting an executable. If the
return value of this executable is < 0 the installer shall call the
rollbackfunction, so the Installation is canceled.
How can I do this?! How can i call the rollbackfunction in this script if
the return value of an executable in this script is lower than 0?!?!?

Please help!
--
View this message in context: 
http://www.nabble.com/rollback-if-VBScript-return-value-%3C-0-tp15458127p15458127.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to