////////////////////////////////////////////////////////////////////////////////
//
// IIIIIII SSSSSS
// II SS InstallShield ®
// II SSSSSS © 1996-2002, InstallShield Software Corporation
// II SS All rights reserved.
// IIIIIII SSSSSS
//
//
// This template script provides the code necessary to build an entry-point
// function to be called in an InstallScript custom action.
//
//
// File Name: Setup.rul
//
// Description: InstallShield script - check for Registered Applications XML
// file, abort uninstall if found, continue with uninstall if
// the file is not found
//
////////////////////////////////////////////////////////////////////////////////
#include "ifx.h"
export prototype OECAppsGone( );
///////////////////////////////////////////////////////////////////////////////
//
// Function: OECAppsGone
//
// Purpose: Called by the CheckforUninstall Custom Action right after CostFinalize
// on remove only. Will check for existence of registered application XML
// file. If the file exists the updater should remain installed, thus the
// MSI will abort. If the file does not exist the Updater uninstall can
// proceed with the removal of the Updater.
//
///////////////////////////////////////////////////////////////////////////////
function OECAppsGone( )
begin
if (!Is(FILE_EXISTS, INSTALLDIR ^ "RegisteredApplications.xml")) then
abort;
endif;
end;
Edited by pshore, 06 October 2004 - 01:32.