Hi
My custom actions are working with conditions for install and uninstall appropriately, but though I give the execution type as immediate, custom action is not responding for exit code(The exit code returned is 1) <Binary Id="MyCA" SourceFile="D:\Samples\MySetup\CustomAction\CustomAction\bin\Debug\CustomAction.exe"/> <CustomAction Id='CopyRPPFiles' BinaryKey='MyCA' ExeCommand='"D:\Samples\EnvironmentConfig.xml" "RPP" "BACKUP" "INSTALL"' Execute="immediate" Return="check" HideTarget="no" Impersonate="no" /> <CustomAction Id='CopyRPPFilesProp' Property='CopyRPPFiles' Value=' /installtype=notransaction /action=install' /> <CustomAction Id='DeleteRPPFiles' BinaryKey='MyCA' ExeCommand='"D:\Samples\EnvironmentConfig.xml" "RPP" "DELETE" "INSTALL"' Execute="immediate" Return="check" HideTarget="no" Impersonate="no" /> <CustomAction Id='DeleteRPPFilesProp' Property='DeleteRPPFiles' Value=' /installtype=notransaction /action=uninstall' /> <InstallExecuteSequence> <Custom Action="DeleteRPPFilesProp" After="InstallInitialize">REMOVE</Custom> <Custom Action="DeleteRPPFiles" After="DeleteRPPFilesProp">REMOVE</Custom> <Custom Action="CopyRPPFilesProp" After="InstallInitialize">NOT Installed AND NOT PATCH</Custom> <Custom Action="CopyRPPFiles" After="CopyRPPFilesProp">NOT Installed AND NOT PATCH</Custom> </InstallExecuteSequence> Thank You, Madhavi. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2008 6:21 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Exit Code is not working for return="check" in custom action. Hi, change Execute="deferred" to Execute="immediate". Kind regards, Hans > > Hi, > > I have written a customaction running an exe which is written in .Net. The > exe is returning the exitcode as 0, but if there is any error the exitcode > is returned as 1, but the custom action is not stopping the installation > when the exitcode is 1 thought the return="check". > > my custom action is returned in this way > > <CustomAction Id='CopyRPPFiles' BinaryKey='MyCA' > ExeCommand='"D:\Samples\EnvironmentConfig.xml" "RPP" "BACKUP" "INSTALL"' > Execute="deferred" Return="check" HideTarget="no" Impersonate="no" /> > > Thank You, > Madhavi. > -- > View this message in context: > http://n2.nabble.com/Exit-Code-is-not-working-for-return%3D%22check%22-in-custom-action.-tp1332382p1332382.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users