PDA

View Full Version : Exit installation on condition



NewsArchive
05-20-2005, 01:56 AM
Hi,

sb5

I need to get some Windows registry key and
if something is there - continue installation
else
show a message and stop (halt) installation.

What script I can use for do this?


--
Best regards,
Ingasoftplus

NewsArchive
05-20-2005, 01:56 AM
>I need to get some Windows registry key and
>if something is there - continue installation
>else
>show a message and stop (halt) installation.
>
>What script I can use for do this?

Like this?

Use Get Registry Key Value to get the value into a variable.

if ( % SB ERRORCODE% ) = 0
// GetReg() failed

MessageBox()
Exit Installation

end

That does a drop dead exit of the install if the GetReg() call fails.

--
Best regards,

Mark

-------------------------------------------------------------------
Why waste time learning when ignorance is instantaneous?
We do email right!
Rock solid hosting services at http://www.lanbytes.net

NewsArchive
05-20-2005, 01:56 AM
Hi Mark,

> >I need to get some Windows registry key and
> >if something is there - continue installation
> >else
> >show a message and stop (halt) installation.
> >
> >What script I can use for do this?
>
> Like this?
YES! Thanks!!!