I'd read this link:  http://msdn2.microsoft.com/en-us/library/aa368085.aspx.
Can you return something other than a zero from your executable?  Also, are
you sure you can't do what you need to do in c++?



On 2/5/07, Ian Couper <[EMAIL PROTECTED]> wrote:

 No it's an executable. I've tried c++ and VB scripts but they won't work
properly for what I need.


 ------------------------------

*From:* Dana Gutride [mailto:[EMAIL PROTECTED]
*Sent:* Monday, February 05, 2007 3:43 PM
*To:* Ian Couper; wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] Install Sequence



Is it an executable or did you manage to successfully call into a C# dll
from the msi?

Dana

On 2/5/07, *Ian Couper* < [EMAIL PROTECTED]> wrote:

The custom action is actually running a custom build C# application…


 ------------------------------

*From:* Dana Gutride [mailto:[EMAIL PROTECTED]
*Sent:* Monday, February 05, 2007 2:33 PM
*To:* Ian Couper; wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] Install Sequence



If it's a c++ custom action, return ERROR_INSTALL_FAILURE instead of
ERROR_SUCCESS.  If it's a script-based action, returning 3 instead of 0 will
have the same result.  In your WiX files, make sure you have set the custom
action to check it's return code instead of ignoring it.  Take a look at
this page for more info:
http://msdn2.microsoft.com/en-us/library/aa371254.aspx

Dana

On 2/5/07, *Ian Couper *<[EMAIL PROTECTED]> wrote:

Dana,



Yes that would be easier to have the custom action exit with a failure.
How do you accomplish that? Specifically having it receive a value from the
script and triggering the rollback based on that response.



Ian.



PS. Could you reply to me directly as well as to the Mailing list? Makes
things much easier, Thanks!



---------------------------------------------------------------------



At that point during the install, any file searches have already
completed. You'd have to write a second custom action to search for the
file, schedule it to run after the first one and then return an error
triggering rollback if it finds it.

Wouldn't it be easier to just have the first custom action exit with a
failure (triggering the rollback) after it performs the actions that would
create the file?

Dana

On 2/5/07, Ian Couper <[EMAIL PROTECTED]> wrote:
>
> Someone else posted something along these lines a few days ago but
didn't
> get any response, so I thought I'd post again…
>
>
>
> I've got a script that I trigger to run during my install and I'd like
to
> have the MSI check if there was a file created by that script. If the
file
> exists I'd like it to trigger a rollback. My issue is that the Property
> function that I'm using to check for that file runs at the beginning of
the
> install before my script runs. Is there any way of modifying the
sequence so
> that it checks for the file after my script has run?
>
>
>
> Thanks
>
>
-------------------------------------------------------------------------


-------------------------------------------------------------------------
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=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users





-------------------------------------------------------------------------
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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to