Re: [WiX-users] How to set a condition, that prevents custom actions on error
Hello All: I wanted to do something similar here. I have a set of custom actions say X, Y and Z. Now I want to perform a different action for every custom action when the custom action fails. For eg: If X fails i want to write something to registry, if Y fails I want to delete a registry key and if Z fails I want to create a new file on my disk. Basically I would like to know which of my custom action failed and act accordingly. I am relatively new to Wix so any help will be appreciated. Thanks, Vishnu -- View this message in context: http://www.nabble.com/How-to-set-a-condition%2C-that-prevents-custom-actions-on-error-tp5294544p15560524.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/vse012070mrt/direct/01/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to set a condition, that prevents custom actions on error
vishnum wrote: Now I want to perform a different action for every custom action when the custom action fails. When actions fail, the installation should be rolled back, leaving the machine in its original state. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to set a condition, that prevents custom actions on error
Markus Libiseller wrote: Thanks for your answer. I would like to set a property that prevents the start of my custom action in cases of installation failures, perhaps if the service could not be installed or anything. How can I set a property (lets call it installationError) in the WIX-file that gets the value true if any errors happened? I would like handle this case in the custom action. Please keep wix-users on the list so everyone can participate. If an installation action fails, the whole install fails. There are exceptions for custom actions, where errors can be ignored -- and a few rare cases, such as marking services as non-vital -- but they don't record their errors. -- 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.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to set a condition, that prevents custom actions on error
Markus Libiseller wrote: I would like to ask you for help about a problem Ive with my setup-project: Ive written a setup, that starts a custom action after the completion of the setup. In this custom action the client is registered to the server and further configurations are done. I would like to set a condition that prevents the execution, if an error happened earlier. What kind of error? Errors should cause an installation rollback. If you have custom actions that support "warnings," you can have them set a property you can check for. -- sig://boB http://bobs.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users