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