Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;ThaneMOD v1.0E NSIS Script
- ; Note -- This is the very first scripting any of us had done. It likely means there are better ways to do certain things, certain jargon that is commented out might be incorrect, etc. While this installer script is somewhat lengthy, it's actually relatively simple. It does, however, include many different features that are difficult to find present in a single script, so we hope you find it useful.
- ;============================================================================
- ; DEFINITIONS -- adding these allows you to use them as "shortcuts" later on
- !define PRODUCT_NAME "ThaneMOD"
- !define PRODUCT_VERSION "1.0E"
- !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
- !define PRODUCT_UNINST_ROOT_KEY "HKLM"
- ;=============================================================================
- ; HEADER FILES -- add various functionalities to your installer; these .nsh files must be in your NSIS directory
- ; Modern User Interface (MUI) -- Allows use of the "typical" Windows installer interface most people are familiar with
- !include "MUI.nsh"
- ; InstallOptions -- Allows for creation of Custom Pages
- !include "InstallOptions.nsh"
- ; Logic Library -- Allows If/Then/Else functionality
- !include "LogicLib.nsh"
- ;===============================================================================
- ; MUI CONFIG -- sets up the appearance of each page of the installer via MUI definitions; relative paths ("..\graphics_docs\icon_v1.ico") should always be used
- !define MUI_ABORTWARNING
- !define MUI_HEADERIMAGE
- !define MUI_WELCOMEPAGE_TITLE_3LINES
- !define MUI_ICON "..\graphics_docs\icon_v1.ico"
- !define MUI_UNICON "..\graphics_docs\icon_v1.ico"
- !define MUI_HEADERIMAGE_BITMAP "..\graphics_docs\header_v1.bmp"
- !define MUI_HEADERIMAGE_UNBITMAP "..\graphics_docs\header_v1.bmp"
- !define MUI_WELCOMEFINISHPAGE_BITMAP "..\graphics_docs\welcomefinish_v1.bmp"
- !define MUI_UNWELCOMEFINISHPAGE_BITMAP "..\graphics_docs\welcomefinish_v1.bmp"
- !define MUI_WELCOMEPAGE_TITLE "Welcome to the ThaneMOD v1.0E Install Wizard!"
- !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of ThaneMOD.\r\n\r\nBefore proceeding, please open the Install Guide that came with your download. ThaneMOD is not difficult to install, but process has multiple steps and the procedure will vary by version and user.\r\n\r\nPay special attention to the information on the following pages. It contains important details you should know PRIOR to installing the mod.\r\n\r\nPlease click Next to continue."
- !define MUI_DIRECTORYPAGE_TEXT_TOP "Please verify the installer has correctly detected your Mass Effect 3 installation folder. If the location below is incorrect, please change it manually. Click Install when ready."
- !define MUI_LICENSEPAGE_TEXT_TOP "Please scroll down to read the entire agreement."
- !define MUI_LICENSEPAGE_CHECKBOX_TEXT "WAIT! Have you read the information above? If not, Thane disapproves. Boo."
- !define MUI_COMPONENTSPAGE_TEXT_TOP "ThaneMOD v1.0E contains the components listed below. See the Install Guide and website for more detailed information. Click Next when finished."
- !define MUI_COMPONENTSPAGE_TEXT_COMPLIST "Select components to install. Gray items are required. See the adjacent Descriptions for more details."
- !define MUI_FINISHPAGE_TITLE "Installation Successful!"
- !define MUI_FINISHPAGE_TEXT "You have now completed PART 2 in the ThaneMOD v1.0E installation process.\r\n\r\nRefer to the Install Guide for your next step. Click Finish to close this window."
- !define MUI_FINISHPAGE_SHOWREADME_TEXT "Important -- you aren't done yet! View Readme PDF."
- ;============================================================================================
- ; OTHER
- BrandingText "ThaneMOD Installer v1.0E"
- ;the above re-defines the standard "NullSoft Install System" that appears toward the bottom left of the installer window, to whatever you specify
- ;============================================================================================
- ; PAGES -- all pages for your installer must be listed here, in the order that you want them to appear; included are two custom pages
- !insertmacro MUI_PAGE_WELCOME
- Page custom TexturesPage
- !define MUI_LICENSEPAGE_CHECKBOX
- !insertmacro MUI_PAGE_LICENSE "..\graphics_docs\license_agreement_v1.rtf"
- !insertmacro MUI_PAGE_COMPONENTS
- !insertmacro MUI_PAGE_DIRECTORY
- !insertmacro MUI_PAGE_INSTFILES
- Page custom CreditsPage
- !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\START_HERE_ThaneMOD_Install_Guide.pdf"
- !insertmacro MUI_UNPAGE_WELCOME
- !insertmacro MUI_UNPAGE_CONFIRM
- !insertmacro MUI_PAGE_FINISH
- !insertmacro MUI_UNPAGE_INSTFILES
- ;==============================================================================
- ; LANGUAGES -- self explanatory
- !insertmacro MUI_LANGUAGE "English"
- ;==============================================================================
- ; DESCRIPTIONS -- this section is necessary if you are including custom pages
- ; Language Strings
- LangString TEXTURESPAGE_TITLE ${LANG_ENGLISH} "Important Notice Below"
- LangString TEXTURESPAGE_SUBTITLE ${LANG_ENGLISH} "Please read and respond accordingly before continuing with installation of ThaneMOD."
- LangString CREDITSPAGE_TITLE ${LANG_ENGLISH} "Credits"
- LangString CREDITSPAGE_SUBTITLE ${LANG_ENGLISH} "ThaneMOD v1.0 is brought to you by the people below."
- ;==============================================================================
- ; PAGE FUNCTIONS -- different functions associated with custom pages
- ; Textures Page Settings -- Function below allows for display of the "stop sign" image, page title and subtitle, and specifies an ini file that contains the text, image, and their layout. You'll need a program like HM NIS Edit to do something like this.
- Function TexturesPage
- InitPluginsDir
- File "/oname=$PLUGINSDIR\stop.bmp" "..\graphics_docs\stop.bmp"
- ReserveFile "..\Installer Testing\textures.ini"
- !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "..\Installer Testing\textures.ini" "textures"
- !insertmacro MUI_HEADER_TEXT $(TEXTURESPAGE_TITLE) $(TEXTURESPAGE_SUBTITLE)
- !insertmacro MUI_INSTALLOPTIONS_WRITE "textures" "Field 1" "Text" "$PLUGINSDIR\stop.bmp"
- !insertmacro MUI_INSTALLOPTIONS_DISPLAY "textures"
- FunctionEnd
- ; Credits Page Settings -- function set up very similar to the above, but does not include an image
- Function CreditsPage
- ReserveFile "..\Installer Testing\credits.ini"
- !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "..\Installer Testing\credits.ini" "credits"
- !insertmacro MUI_HEADER_TEXT $(CREDITSPAGE_TITLE) $(CREDITSPAGE_SUBTITLE)
- !insertmacro MUI_INSTALLOPTIONS_DISPLAY "credits"
- FunctionEnd
- ;======================================================================================
- ; INSTALLATION PARAMETERS -- This is where are the files for installation are specified and the file name of the installer. It also includes scripting to back up original files. Note: ME3Exp uses a .bak extension when backing up files (.sfars, for example); MEHEM and Citadel Epilogue mod use a .bup extension; ThaneMOD uses a .bu2 extension. Files are written to several different subdirectories, all within the InstallDir (these are the ThaneMOD "modules"). Files are divided up into different Sections that appear as separate checkboxes in the installer GUI. "SectionIn RO" means it is checked by default and cannot be unchecked by the user. The registry key for ME3 is included to help the installer detect the directory it is installed to on the user's system.
- Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
- OutFile "ThaneMOD_v1E.exe"
- InstallDir "$PROGRAMFILES\Origin Games\Mass Effect 3"
- InstallDirRegKey HKLM "Software\BioWare\Mass Effect 3" "Install Dir"
- ShowInstDetails show
- ShowUnInstDetails show
- Section "Enhanced Core Module for MEHEM" SEC01
- SectionIn RO
- SetOutPath "$INSTDIR\BIOGame\CookedPCConsole"
- SetOverwrite on
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd" "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd.bu2"
- File "Conditionals.cnd"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc.bu2"
- File "BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_Miranda.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_Miranda.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_Miranda.pcc.bu2"
- File "BioD_CitHub_Miranda.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_WardsFluxP3.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_WardsFluxP3.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_WardsFluxP3.pcc.bu2"
- File "BioD_CitHub_WardsFluxP3.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc.bu2"
- File "BioD_CitHub_HospitalP3.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc.bu2"
- File "BioD_Cat003_380DesksConvos_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc.bu2"
- File "BioD_Cat003_380DesksConvos.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc.bu2"
- File "BioD_Cat003_180DocksCop_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc.bu2"
- File "BioD_Cat003_000LevelTrans_LOC_INT.pcc"
- SetOutPath "$INSTDIR\Binaries\Win32"
- IfFileExists "$INSTDIR\Binaries\Win32\binkw32.dll" 0 +2
- Rename "$INSTDIR\Binaries\Win32\binkw32.dll" "$INSTDIR\Binaries\Win32\binkw32.dll.bu2"
- File "binkw32.dll"
- IfFileExists "$INSTDIR\Binaries\Win32\binkw23.dll" 0 +2
- Rename "$INSTDIR\Binaries\Win32\binkw23.dll" "$INSTDIR\Binaries\Win32\binkw23.dll.bu2"
- File "binkw23.dll"
- SectionEnd
- Section "EWAC Module" SEC02
- SetOutPath "$INSTDIR\BIOGame\CookedPCConsole"
- SectionIn RO
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor.pcc.bu2"
- File "BioD_Nor.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2.pcc.bu2"
- File "BioD_CitHub_HospitalP2.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Coalesced.bin" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\Coalesced.bin" "$INSTDIR\BIOGame\CookedPCConsole\Coalesced.bin.bu2"
- File "Coalesced.bin"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_Codex_1.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_Codex_1.pcc" "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_Codex_1.pcc.bu2"
- File "SFXImages_Codex_1.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXGameInfoSP_SF.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXGameInfoSP_SF.pcc" "$INSTDIR\BIOGame\CookedPCConsole\SFXGameInfoSP_SF.pcc.bu2"
- File "SFXGameInfoSP_SF.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_GameManual_10.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_GameManual_10.pcc" "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_GameManual_10.pcc.bu2"
- File "SFXImages_GameManual_10.pcc"
- SectionEnd
- Section "Romance Improvements" SEC03
- SetOutPath "$INSTDIR\BIOGame\CookedPCConsole"
- SectionIn RO
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2_LOC_INT.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2_LOC_INT.pcc.bu2"
- File "BioD_CitHub_HospitalP2_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BIOGame_INT.tlk" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BIOGame_INT.tlk" "$INSTDIR\BIOGame\CookedPCConsole\BIOGame_INT.tlk.bu2"
- File "BIOGame_INT.tlk"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_tha_inv_d_d_Int.afc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_tha_inv_d_d_Int.afc" "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_tha_inv_d_d_Int.afc.bu2"
- File "citprs_hosp_tha_inv_d_d_Int.afc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_thane_d_d_Int.afc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_thane_d_d_Int.afc" "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_thane_d_d_Int.afc.bu2"
- File "citprs_hosp_thane_d_d_Int.afc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_James_LOC_INT.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_James_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_James_LOC_INT.pcc.bu2"
- File "BioD_CitHub_James_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_510CargoConv_LOC_INT.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_510CargoConv_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_510CargoConv_LOC_INT.pcc.bu2"
- File "BioD_Nor_510CargoConv_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_100Cabin.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_100Cabin.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_100Cabin.pcc.bu2"
- File "BioD_Nor_100Cabin.pcc"
- SectionEnd
- Section "Huerta Music Module" SEC04
- SetOutPath "$INSTDIR\BIOGame\CookedPCConsole"
- SectionIn RO
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioSnd_CitHub.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioSnd_CitHub.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioSnd_CitHub.pcc.bu2"
- File "BioSnd_CitHub.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Wwise_CitHub_Streaming.afc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\Wwise_CitHub_Streaming.afc" "$INSTDIR\BIOGame\CookedPCConsole\Wwise_CitHub_Streaming.afc.bu2"
- File "Wwise_CitHub_Streaming.afc"
- SectionEnd
- Section "Readme" SEC05
- SectionIn RO
- SetOutPath "$INSTDIR"
- File "START_HERE_ThaneMOD_Install_Guide.pdf"
- SectionEnd
- Section "50+ Saves" SEC06
- SetOutPath "$INSTDIR\BIOGame\CookedPCConsole"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc" 0 +2
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc" "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc.bu2"
- File "SFXGame.pcc"
- SectionEnd
- ;======================================================================================
- ; REGISTRY -- Write to registry upon installation and create an uninstaller. The defined registry entry (back up top) causes the mod to appear in the list of installed programs (viewed via the Control Panel), which allows the user to easily see if it is installed.
- Section -Post
- WriteUninstaller "$INSTDIR\UNinstall_ThaneMOD_v1E_doNOTdeleteORemove.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\UNinstall_ThaneMOD_v1E_doNOTdeleteORemove.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
- SectionEnd
- ;======================================================================================
- ; INSTALLER SECTION DESCRIPTIONS -- defines the rollover text that appears when the section names are moused over in the installer GUI
- !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Requires: ME3 EC DLC, MEHEM, and EWAC. Thane is not present for the coup and returns in the epilogue -- including the Memorial Scene, if the LI. New Credits music option in DLC Patch."
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Required. Thane's disease is treated in a lore-centric manner and his romance expanded. Five emails are sent from Thane to an LI-Shep during the game, each vary with plot decisions. New war assets and codex entry."
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Required. Completely revamped and repeatable Huerta Dialogue for LI Thane. Cabin photo. Romance now locks in, locking out other LIs. Flirting with other LIs removed. Paramour in next release."
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Required. Huerta conversation plays with ME2 romance music in the background."
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "Required. The ThaneMOD Install Guide...you should already have this open!"
- !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Optional. Allows the player to have over 50 saves in a playthrough."
- !insertmacro MUI_FUNCTION_DESCRIPTION_END
- ;======================================================================================
- ; INSTALL/UNINSTALL FUNCTIONS -- specific functions that execute upon running the installer or uninstaller
- ;Creates a pop up window after successful uninstallation of the mod
- Function un.onUninstSuccess
- HideWindow
- MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
- FunctionEnd
- ;Checks the registry for previous installation of mod and will deny repeat installation to prevent a borked install. Careful with versions, here.
- Function .onInit
- ClearErrors
- ReadRegStr $R0 ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName"
- ${IfNot} ${Errors}
- MessageBox MB_OK|MB_ICONEXCLAMATION "ThaneMOD is already installed. Please uninstall before installing a new version."
- Abort
- ${EndIf}
- FunctionEnd
- ;======================================================================================
- ; UNINSTALLATION PARAMETERS -- All in one section, unlike the install. Each file is again listed. Files are deleted only if they exist. Backups are restored upon deletion, and registry key is removed. Uninstaller is deleted after completion.
- Section Uninstall
- IfFileExists "$INSTDIR\UNinstall_ThaneMOD_v1E_doNOTdeleteORemove.exe" 0 +2
- Delete "$INSTDIR\UNinstall_ThaneMOD_v1E_doNOTdeleteORemove.exe"
- IfFileExists "$INSTDIR\START_HERE_ThaneMOD_Install_Guide.pdf" 0 +2
- Delete "$INSTDIR\START_HERE_ThaneMOD_Install_Guide.pdf"
- IfFileExists "$INSTDIR\Binaries\Win32\binkw32.dll.bu2" 0 +2
- Delete "$INSTDIR\Binaries\Win32\binkw32.dll"
- Rename "$INSTDIR\Binaries\Win32\binkw32.dll.bu2" "$INSTDIR\Binaries\Win32\binkw32.dll"
- IfFileExists "$INSTDIR\Binaries\Win32\binkw23.dll" 0 +2
- Delete "$INSTDIR\Binaries\Win32\binkw23.dll"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2_LOC_INT.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2_LOC_INT.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP2.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXGameInfoSP_SF.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\SFXGameInfoSP_SF.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXGameInfoSP_SF.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\SFXGameInfoSP_SF.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_Codex_1.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_Codex_1.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_Codex_1.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_Codex_1.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_GameManual_10.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_GameManual_10.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_GameManual_10.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\SFXImages_GameManual_10.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Wwise_CitHub_Streaming.afc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\Wwise_CitHub_Streaming.afc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\Wwise_CitHub_Streaming.afc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\Wwise_CitHub_Streaming.afc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BIOGame_INT.tlk.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BIOGame_INT.tlk"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BIOGame_INT.tlk.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BIOGame_INT.tlk"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_James_LOC_INT.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_James_LOC_INT.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_James_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_James_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_510CargoConv_LOC_INT.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_510CargoConv_LOC_INT.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_510CargoConv_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_510CargoConv_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_100Cabin.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_100Cabin.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_100Cabin.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_100Cabin.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Coalesced.bin.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\Coalesced.bin"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\Coalesced.bin.bu2" "$INSTDIR\BIOGame\CookedPCConsole\Coalesced.bin"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioSnd_CitHub.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioSnd_CitHub.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioSnd_CitHub.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioSnd_CitHub.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_tha_inv_d_d_Int.afc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_tha_inv_d_d_Int.afc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_tha_inv_d_d_Int.afc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_tha_inv_d_d_Int.afc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_thane_d_d_Int.afc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_thane_d_d_Int.afc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_thane_d_d_Int.afc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\citprs_hosp_thane_d_d_Int.afc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_Miranda.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_Miranda.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_Miranda.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_Miranda.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_WardsFluxP3.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_WardsFluxP3.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_WardsFluxP3.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_WardsFluxP3.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc"
- IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd.bu2" 0 +2
- Delete "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd"
- Rename "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd.bu2" "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd"
- DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
- SetAutoClose true
- SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement