I have 2 questions:
1) My custom action return code is 0 for success, so in the log file,
according to msdn, the return code should be 1, however, it is 0 in the log
file.
When use "AsyncWait" it didn't give error dialog. When use "check", it gave the
error dialog.
2) I'm not quite understand "two" custom actions, can you give an example?
Here is my related code:
<CustomAction Id='InstallA' BinaryKey='A' Return='asyncWait'
Execute='rollback'
ExeCommand=' B' />
<InstallExecuteSequence>
<Custom Action='InstallA'
Sequence='6501'>
NOT Installed
</Custom>
</InstallExecuteSequence>
Thanks,
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 11:28 AM
To: Bei Liu (Volt); WiX-users
Subject: Re: [WiX-users] rollback installation when custom action failed
Please keep wix-users on the thread.
Bei Liu (Volt) wrote:
If I add rollback attribute to my custom action, it only keeps custom action
from running,, but other files will be installed successfully.
See "Rollback Custom Actions" in the MSI SDK. You need two custom actions for
every deferred CA: One that performs the action and one, scheduled immediately
before the other, that rolls it back.
--
sig://boB
http://bobs.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users