home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1994. All Rights Reserved */ /***************************************************************************** NAME par_vrf.usr - Modified windows.vrf executable for parent products DESCRIPTION This script performs common version analysis functionality similar to the standard windows.vrf file. It differs in the logical structure of the registration checking for externally vs. interally called parent products. OWNER Bryan Sabol MODIFIED MM/DD/YY Reason rbansal 03/18/94 Modified for Windows platform bsabol 03/17/94 Created from mac.vrf. *****************************************************************************/ { product_label = product_interface_label(current_product); ui_product(product_label); ui_action(instantiate(nls("analyze_depend", "Analyzing %%product_label%% Dependencies..."))); /********************** Check Installer version ***********************/ { required_version = product_version(windowsinstver); if (earlier_version(installer_version,required_version,4)) { information_dialog(instantiate(nls("instver_too_early","The version of the Installer currently running is %%installer_version%%. The installation you have chosen requires version %%required_version%%. Please run version %%required_version%% in order to perform this installation."))); return(FALSE); } } [ 'UNBOUND_VARIABLE: continue(); ] if(not(member(selected_products, current_product))) /* internally called */ { /******************************* Check product registry & version ********************************/ mark if(registered(product_name(current_product))) /* Product is installed */ { registry = registration(product_name(current_product)); current_version = product_version(current_product); installed_version = registry_version(registry); if (earlier_version(registry, current_version)) { version_status = 'upgrade; doit = TRUE; } else { doit = FALSE; /* either downgrade or same version; don't install */ if (later_version(registry, current_version)) version_status = 'downgrade; else version_status = 'reinstall; } } else doit = TRUE; /* product isn't registered; install */ } else /* externally called script; prompt for install location */ { if (registered(product_name(current_product))) { registry = registration(product_name(current_product)); current_version = product_version(current_product); installed_version = registry_version(registry); if (earlier_version(registry,current_version)) { version_status = 'upgrade; doit = TRUE; /* simple upgrade; install */ } else { if (later_version(registry, current_version)) { version_status = 'downgrade; doit = yesno_dialog(instantiate(reinstall_prompt03),FALSE, instantiate(reinstall_content03), instantiate(reinstall_help03)); } else { version_status = 'reinstall; /* customized response. See user.avf */ doit = yesno_dialog(instantiate(reinstall_group),FALSE, instantiate(reinstall_group_content), instantiate(reinstall_group_help)); } } } else { version_status = 'new_install; doit = TRUE; } } return(doit); }