Comment: Comment: Default Setup Project Set Persistent Variable SILENT to TRUE [DEFINE REGION: Check Application Requirements] Get System Setting Administrator Rights into CHECKSYSTEM if Variable CHECKSYSTEM not Equals TRUE MessageBox: $TITLE$ Setup Error, This product requires at least Administrator Priviledges.$NEWLINE$$NEWLINE$Setup cannot continue. Terminate Installation end <> [DEFINE REGION: Check/Install Application Pre-Requisites] [DEFINE REGION: Check Application Pre-Requisites] Comment: Check setup pre-requisites Set Variable PREREQ to FALSE Set Variable PRELIST to [compiler if Variable BUILDMODE not Equals PATCH] if Variable NEEDSUPGRADE Equals TRUE Set Variable PREREQ to TRUE Set Variable PRELIST to $PRELIST$$NEWLINE$Previous Version Uninstallation end Include Script: checkmsi30 [compiler end] <> [DEFINE REGION: Install Application Pre-Requisites] Comment: Install setup pre-requisites if Variable PREREQ not Equals FALSE Comment: Display Dialog: prereq, wait for dialog to return (modal) if Variable WIZARD Equals CANCEL Terminate Installation end Comment: Display Dialog: progressprereq, use as progress dialog (non-modal) [compiler if Variable BUILDMODE not Equals PATCH] if Variable NEEDSUPGRADE Equals TRUE Set Variable REMOVEOLD to Set Variable ERROROLD to Install/Remove MSI Package $PRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD) if Variable REMOVEOLD Equals ERROR MessageBox: $TITLE$ Setup, Unable to uninstall old version of $TITLE$. Please uninstall it yourself using Control Panel Add-Remove Programs before attempting to install this product.$NEWLINE$$NEWLINE$$ERROROLD$ Terminate Installation end if Variable REMOVEOLD Equals REBOOT MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$. if Variable REBOOTNOW Equals OK Reboot Computer and Resume Setup else Terminate Installation end end Set Variable MAINTENANCE to FALSE end [DEFINE WEB MEDIA Microsoft Windows Installer 3.0] Include Script: setupmsi30 [compiler end] Hide Dialog end <> <> <> [DEFINE REGION: Setup User Interview] if Variable MAINTENANCE Equals TRUE GoTo Label: Maintenance else [compiler if Variable BUILDMODE not Equals PATCH] Comment: First Time Install Set Variable TARGETDIR to $COMMONFILES$\Allenbrook Set Variable STARTMENU to [compiler end] end label: Welcome Dialog Comment: Display Dialog: welcome, wait for dialog to return (modal) if Variable WIZARD Equals CANCEL GoTo Label: Main Install end [compiler if Variable BUILDMODE not Equals PATCH] label: License Check Comment: Display Dialog: licensecheck, wait for dialog to return (modal) if Variable WIZARD Equals BACK GoTo Label: Welcome Dialog else if Variable WIZARD Equals CANCEL GoTo Label: Main Install end end label: ReadMe Information Comment: Display Dialog: readme, wait for dialog to return (modal) if Variable WIZARD Equals BACK GoTo Label: License Check else if Variable WIZARD Equals CANCEL GoTo Label: Main Install end end label: User Registration Comment: Display Dialog: registration, wait for dialog to return (modal) if Variable WIZARD Equals BACK GoTo Label: ReadMe Information else if Variable WIZARD Equals CANCEL GoTo Label: Main Install end end label: Setup Type Comment: Display Dialog: setuptype, wait for dialog to return (modal) if Variable WIZARD Equals BACK GoTo Label: User Registration else if Variable WIZARD Equals CANCEL GoTo Label: Main Install end end Comment: TO-DO: Customize your minimum setup here if Variable MINIMUM Equals TRUE Deselect Component: AddressStandardGAC else if Variable COMPLETE Equals TRUE Select Component: AddressStandardGAC end end label: Custom Setup Comment: Display Dialog: componentstree (if variable PERSONALIZED is TRUE), wait for dialog to return (modal) if Variable WIZARD Equals BACK GoTo Label: Setup Type else if Variable WIZARD Equals CANCEL GoTo Label: Main Install end end label: Destination Directory Comment: Display Dialog: destination, wait for dialog to return (modal) if Variable WIZARD Equals BACK GoTo Label: Custom Setup else if Variable WIZARD Equals CANCEL GoTo Label: Main Install end end label: Start Menu Comment: Display Dialog: startmenu, wait for dialog to return (modal) if Variable WIZARD Equals BACK GoTo Label: Destination Directory else if Variable WIZARD Equals CANCEL GoTo Label: Main Install end end [compiler end] label: Start Installation Comment: Display Dialog: startinstallation, wait for dialog to return (modal) if Variable WIZARD Equals BACK [compiler if Variable BUILDMODE not Equals PATCH] GoTo Label: Start Menu [compiler else] GoTo Label: Welcome Dialog [compiler end] else GoTo Label: Main Install end label: Maintenance Comment: Maintenance Install/Uninstall wizard loop Comment: Display Dialog: maintenance, wait for dialog to return (modal) Comment: Display Dialog: componentstree (if variable MODIFY is TRUE), wait for dialog to return (modal) Comment: Display Dialog: startinstallation, wait for dialog to return (modal) end <> [DEFINE REGION: Process (Un)Installation] label: Main Install Comment: MessageBox: Testing - Inside Maine Install, Testing Comment: Exit Setup if Wizard Loop cancelled if Variable WIZARD Equals CANCEL Terminate Installation end Comment: Prepare to install Set Variable PROGRESSTEXT to Installing $TITLE$ Set Variable SUCCESS to Set Variable LASTERROR to if Variable ALLUSERS Equals TRUE Set Variable SHORTCUTFOLDER to $SHORTCUTFILESALL$\$STARTMENU$ else Set Variable SHORTCUTFOLDER to $SHORTCUTFILES$\$STARTMENU$ end Comment: Display Dialog: progress, use as progress dialog (non-modal) Comment: Modify Target System [DEFINE REGION: Perform Uninstallation] if Variable REMOVE Equals TRUE Comment: Uninstall product Comment: TO-DO: Insert any additional uninstall commands here Apply Uninstall (get result into variable SUCCESS) Set Variable PROGRESS to 100 else <> [DEFINE REGION: Perform First Time or Maintenance Installation] Comment: Install/Re-Install product Comment: MessageBox: Testing - Inside First Time/Maint Region, Testing [OFFLINE CONTENT] [DEFINE WEB MEDIA AddressStandardGAC] Get Component AddressStandardGAC Selection State into Variable SELECTED if Variable SELECTED Equals TRUE end Comment: TO-DO: Insert any additional install commands here [compiler if Variable BUILDMODE Equals PATCH] Apply Patch (get result into variable SUCCESS) [compiler else] if Variable ADVERTISE Equals TRUE Apply Advertised (get result into variable SUCCESS) else Install Assembly C:\DEV2\Common\fcdAddress.dll to Global Assembly Cache Install Assembly C:\DEV2\Common\amsframework.Support.dll to Global Assembly Cache Install Assembly C:\DEV2\Common\amsframework.location.dll to Global Assembly Cache Install Assembly C:\DEV2\Common\NetAddress.dll to Global Assembly Cache Apply Install (get result into variable SUCCESS) Install Assembly C:\DEV2\Common\CQHPlugInInterface.dll to $COMMONFILES$\Allenbrook Install Assembly C:\DEV2\Common\AddressCOMInterface.dll to $COMMONFILES$\Allenbrook Apply Install (get result into variable SUCCESS) Register assembly $COMMONFILES$\Allenbrook\CQHPlugInInterface.dll Register assembly $COMMONFILES$\Allenbrook\AddressCOMInterface.dll Apply Install (get result into variable SUCCESS) end [compiler end] Set Variable PROGRESS to 100 end <> <> <>