PDA

View Full Version : Condition installation



klokov
08-19-2003, 11:16 AM
I want to check condition (regestry key)
and if it exist ask user
"X exist. Do you want to continue installation?"

If user say no then stop installation.

How to do it?

Thank you.

TsungH
08-19-2003, 12:11 PM
A high-level overview on how it could be done, say in OnBegin event,
use RegDBKeyExist for registry key checking,
use AskYesNo to prompt user,
use abort statement to abort installation.

yatest5
08-20-2003, 08:15 AM
you do it either within or in a function called by onFirstUIBefore and perhaps onMainUIBefore. onBegin is called EVERY TIME the uninstallation is run, say on an uninstall, and in my view is probably usually wrong to do such requirement checks on uninstall.

fighter
08-25-2003, 06:49 AM
Hi,

I agree with TsungH. I would like do it OnBegin as this event is the initialization event. You can avoid the checking of the registry key exists in the maintenance mode by simply adding

if !MAINTENANCE then
\\ non-maintenance code
endif;

-Sudhir