I've run into a problem that seems specific to all flavors of Vista
where my installer returns success on a major upgrade, even when the
upgrade fails. The problem is intermittent at best and impossible to
reproduce reliably based on our research. What I need to be able to do
is check for the existence of an error log file from our external
migrator tool, and force the installer to fail if the file is present.
This custom action:

 

<CustomAction Id="CheckForMigrationErrorLog"

 Return="check"

 Execute="immediate"

 Directory="CommonAppDataFolder"

 ExeCommand="[SystemFolder]cmd.exe /C &quot;if exist
&quot;[ApplicationDataFolder][ApplicationSpecificDataFolder]migrations\m
igration_error.log&quot;  

                                  exit /B 50&quot;"

 />

 

is the closest I've come to correcting the problem using WIX internal
tools; however it  there seems to be a gap where the error returned from
cmd.exe is not passed back to the MSI so the installer sees a successful
(return code 0) execution of the custom action, regardless of the
existence of the file. This is a fairly complex installer and I'd prefer
not to add complexity by writing a .dll to accomplish the error return.
Any ideas?

-------------------------------------------------------------------------
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

Reply via email to