How can I do the following when an install is launched
WHILE CA() = FAIL
Display dialog (user can press OK or Cancel)
IF Cancel THEN quit install
LOOP
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
You can't loop custom actions. You'd have to incorporate that loop into the
custom action somehow. What is it you are really trying to do? More info
might help us to provide a solution.
--
****************************************
Michael Sanford
Windows Installer MVP
****************************************
"Michael Tissington" <mic...@nospam.com> wrote in message
news:uP0j2XjW...@TK2MSFTNGP11.phx.gbl...
If the application is running the install poops up a dialog asking them to
close, when they press 'OK' it runs the ca again, if the CA returns S_OK
then the install can continue, else the dialog remains.
If they press Exit, the install exits - I can do that bit ;)
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
"Michael Sanford [MVP]" <msan...@nospam.com> wrote in message
news:e30bbTkW...@TK2MSFTNGP09.phx.gbl...
--
****************************************
Michael Sanford
Windows Installer MVP
****************************************
"Michael Tissington" <mic...@nospam.com> wrote in message
news:OkggRbkW...@TK2MSFTNGP09.phx.gbl...
So how do I exit depending on the result from my CA ?
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
"Michael Sanford [MVP]" <msan...@nospam.com> wrote in message
news:eytFBrkW...@TK2MSFTNGP11.phx.gbl...
I suppose it is "immediate" custom action. Can we show the error dialog in
the custom action itself, instead of using a MSI dialog? Then we can keep
the loop in the custom action.
Regards,
Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Douglas.
"Michael Tissington" <mic...@nospam.com> wrote in message
news:OXkAPAlW...@TK2MSFTNGP10.phx.gbl...
1. Simply return anything other than ERROR_SUCCESS and the install will
fail.
2. Set a property indicating the status and return ERROR_SUCCESS. Back in
the msi, you can take some other action based on that property (like a type
19 custom action).
IMO, option 2 is probably a bit more user friendly.
--
****************************************
Michael Sanford
Windows Installer MVP
****************************************
"Michael Tissington" <mic...@nospam.com> wrote in message
news:OXkAPAlW...@TK2MSFTNGP10.phx.gbl...