signal('failure,"In order to install the installer, please run it from a distribution diskette or CD-ROM.");
doit = FALSE;
if (internally_called)
if (bootstrap)
{ if (registered(product_name(product)))
{ registry = registration(product_name(product));
if (earlier_version(registry,installer_version))
{ installed_version = registry_version(registry);
doit = yesno_dialog("The currently installed version of %product_label%, %installed_version%, is out date. The most current version is %installer_version%. Do you wish to reinstall %product_label%?"); } } }
else
{ if (registered(product_name(product)))
{ registry = registration(product_name(product));
if (not(same_version(registry,installer_version)))
{ installed_version = registry_version(registry);
if (not(yesno_dialog("WARNING: You are executing %installer_version% of the installer. The registered version of %product_label%, %installed_version%, is different. It is recommended that you reinstall the installer from CD-ROM. Do you wish to continue?")))
signal('failure,"Installation terminated at user request."); } }
else
if (not(yesno_dialog("WARNING: The installer is not registered. It is recommended that you reinstall the installer from CD-ROM. Do you wish to continue?")))
signal('failure,"Installation terminated at user request."); }
else if (bootstrap)
doit = TRUE;
else if (registered(product_name(product)))
{ registry = registration(product_name(product));
current_version = product_version(product);
if (earlier_version(registry,current_version))
{ installed_version = registry_version(registry);
doit = yesno_dialog("The currently installed version of %product_label%, %installed_version%, is out date. The most current version is %current_version%. Do you wish to reinstall %product_label%?"); }
else
doit = yesno_dialog("%product_label% has already been installed and is up to date. Would you like to reinstall it?"); }