n7siha

Working v1.0A, Except Uninstall

Jan 13th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Script generated by the HM NIS Edit Script Wizard.
  2.  
  3. ;============================================================================
  4. ; HM NIS Edit Wizard helper defines
  5. !define PRODUCT_NAME "ThaneMOD"
  6. !define PRODUCT_VERSION "1.0A"
  7. !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
  8. !define PRODUCT_UNINST_ROOT_KEY "HKLM"
  9.  
  10. ;=============================================================================
  11. ;Include
  12.  
  13. ; MUI 1.67 compatible
  14. !include "MUI.nsh"
  15.  
  16. ;InstallOptions for Custom Page
  17. !include "InstallOptions.nsh"
  18.  
  19. ; allow If/Then/Else functionality
  20. !include "LogicLib.nsh"
  21.  
  22. ;===============================================================================
  23. ; MUI Configuration
  24.  
  25. !define MUI_ABORTWARNING
  26. !define MUI_HEADERIMAGE
  27. !define MUI_WELCOMEPAGE_TITLE_3LINES
  28. !define MUI_ICON "..\graphics_docs\icon_v1.ico"
  29. !define MUI_UNICON "..\graphics_docs\icon_v1.ico"
  30. !define MUI_HEADERIMAGE_BITMAP "..\graphics_docs\header_v1.bmp"
  31. !define MUI_HEADERIMAGE_UNBITMAP "..\graphics_docs\header_v1.bmp"
  32. !define MUI_WELCOMEFINISHPAGE_BITMAP "..\graphics_docs\welcomefinish_v1.bmp"
  33. !define MUI_UNWELCOMEFINISHPAGE_BITMAP "..\graphics_docs\welcomefinish_v1.bmp"
  34. !define MUI_WELCOMEPAGE_TITLE "Welcome to the ThaneMOD v1.0A Install Wizard!"
  35. !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of ThaneMOD.\r\n\r\nBefore proceeding, please open the Installation 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."
  36. !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."
  37. !define MUI_LICENSEPAGE_TEXT_TOP  "Please scroll down to read the entire agreement."
  38. !define MUI_LICENSEPAGE_CHECKBOX_TEXT "WAIT! Have you read the information above? If not, Thane disapproves. Boo."
  39. !define MUI_COMPONENTSPAGE_TEXT_TOP "ThaneMOD v1.0A contains the items listed below. See the Install Guide and website for more detailed information. Click Next when finished."
  40. !define MUI_COMPONENTSPAGE_TEXT_COMPLIST "Select components to install. Gray items are required. See the adjacent Descriptions for more details."
  41. !define MUI_FINISHPAGE_TITLE "Installation Successful!"
  42. !define MUI_FINISHPAGE_TEXT "You have now completed STEP 3 in the ThaneMOD v1.0A Installation Process.\r\n\r\nRefer to the Install Guide for your next step. Click Finish to close this window."
  43. !define MUI_FINISHPAGE_SHOWREADME_TEXT "Important -- you aren't done yet! View Readme PDF."
  44.  
  45. ;============================================================================================
  46. ;Other Attributes
  47. BrandingText "ThaneMOD Installer v1.0A"
  48.  
  49. ;============================================================================================
  50. ;Pages
  51.  
  52. !insertmacro MUI_PAGE_WELCOME
  53. ;Page custom TexturesPage
  54. !define MUI_LICENSEPAGE_CHECKBOX
  55. !insertmacro MUI_PAGE_LICENSE "..\graphics_docs\license_agreement_v1.rtf"
  56. !insertmacro MUI_PAGE_COMPONENTS
  57. !insertmacro MUI_PAGE_DIRECTORY
  58. !insertmacro MUI_PAGE_INSTFILES
  59. Page custom CreditsPage
  60. !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\BIOGame\START_HERE _ThaneMOD_Install_Guide.pdf"
  61. !insertmacro MUI_UNPAGE_WELCOME
  62. !insertmacro MUI_UNPAGE_CONFIRM
  63. !insertmacro MUI_PAGE_FINISH
  64. !insertmacro MUI_UNPAGE_INSTFILES
  65.  
  66. ;==============================================================================
  67. ;Languages
  68.  
  69. !insertmacro MUI_LANGUAGE "English"
  70.  
  71. ;==============================================================================
  72. ;Descriptions
  73.  
  74. ; Language Strings
  75. ;LangString TEXTURESPAGE_TITLE ${LANG_ENGLISH} "Important Notice Below"
  76. ;LangString TEXTURESPAGE_SUBTITLE ${LANG_ENGLISH} "Please read and respond accordingly before continuing with installation of ThaneMOD."
  77. LangString CREDITSPAGE_TITLE ${LANG_ENGLISH} "Credits"
  78. LangString CREDITSPAGE_SUBTITLE ${LANG_ENGLISH} "ThaneMOD v1.0 is brought to you by the people below."
  79.  
  80. ;==============================================================================
  81. ;Page Functions
  82.  
  83. ;Textures Page Settings
  84. ;Function TexturesPage
  85.   ;ReserveFile "..\Installer Testing\textures.ini"
  86.   ;!insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "..\Installer Testing\textures.ini" "textures"
  87.   ;!insertmacro MUI_HEADER_TEXT $(TEXTURESPAGE_TITLE) $(TEXTURESPAGE_SUBTITLE)
  88.   ;!insertmacro MUI_INSTALLOPTIONS_WRITE "textures" "Field 1" "Text" "..\graphics_docs\stop.bmp"
  89.   ;!insertmacro MUI_INSTALLOPTIONS_DISPLAY "textures"
  90. ;FunctionEnd
  91.  
  92. ;Credits Page Settings
  93. Function CreditsPage
  94.   ReserveFile "..\Installer Testing\credits.ini"
  95.   !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "..\Installer Testing\credits.ini" "credits"
  96.   !insertmacro MUI_HEADER_TEXT $(CREDITSPAGE_TITLE) $(CREDITSPAGE_SUBTITLE)
  97.   !insertmacro MUI_INSTALLOPTIONS_DISPLAY "credits"
  98. FunctionEnd
  99.  
  100. ;======================================================================================
  101. ;Installation Parameters
  102.  
  103. Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
  104. OutFile "ThaneMOD_v1A.exe"
  105. InstallDir "$PROGRAMFILES\Origin Games\Mass Effect 3"
  106. InstallDirRegKey HKLM "Software\BioWare\Mass Effect 3" "Install Dir"
  107. ShowInstDetails show
  108. ShowUnInstDetails show
  109.  
  110. Section "Core Module for EC" SEC01
  111.   SectionIn RO
  112.   SetOutPath "$INSTDIR\BIOGame\CookedPCConsole"
  113.   SetOverwrite on
  114.  
  115.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd" 0 +2
  116.         Rename "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd" "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd.bu2"
  117.   File "Conditionals.cnd"
  118.  
  119.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_ProMar_750Finale.pcc" 0 +2
  120.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_ProMar_750Finale.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_ProMar_750Finale.pcc.bu2"
  121.   File "BioD_ProMar_750Finale.pcc"
  122.  
  123.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc" 0 +2
  124.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc.bu2"
  125.   File "BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc"
  126.  
  127.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_001Global.pcc" 0 +2
  128.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_001Global.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_001Global.pcc.bu2"
  129.   File "BioD_Nor_001Global.pcc"
  130.  
  131.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Kro001_100LandingArea.pcc" 0 +2
  132.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Kro001_100LandingArea.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Kro001_100LandingArea.pcc.bu2"
  133.   File "BioD_Kro001_100LandingArea.pcc"
  134.  
  135.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc" 0 +2
  136.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc.bu2"
  137.   File "BioD_CitHub_HospitalP3.pcc"
  138.  
  139.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc" 0 +2
  140.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc.bu2"
  141.   File "BioD_Cat003_380DesksConvos_LOC_INT.pcc"
  142.  
  143.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc" 0 +2
  144.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc.bu2"
  145.   File "BioD_Cat003_380DesksConvos.pcc"
  146.  
  147.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc" 0 +2
  148.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc.bu2"
  149.   File "BioD_Cat003_180DocksCop_LOC_INT.pcc"
  150.  
  151.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc" 0 +2
  152.         Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc.bu2"
  153.   File "BioD_Cat003_000LevelTrans_LOC_INT.pcc"
  154.  
  155.   SetOutPath "$INSTDIR\BIOGame\Movies"
  156.  
  157.   IfFileExists "$INSTDIR\BIOGame\Movies\ProMar_Smls_Load.bik" 0 +2
  158.         Rename "$INSTDIR\BIOGame\Movies\ProMar_Smls_Load.bik" "$INSTDIR\BIOGame\Movies\ProMar_Smls_Load.bik.bu2"
  159.   File "ProMar_Smls_Load.bik"
  160.  
  161.   IfFileExists "$INSTDIR\BIOGame\Movies\load_f01.bik" 0 +2
  162.         Rename "$INSTDIR\BIOGame\Movies\load_f01.bik" "$INSTDIR\BIOGame\Movies\load_f01.bik.bu2"
  163.   File "load_f01.bik"
  164.  
  165.   IfFileExists "$INSTDIR\BIOGame\Movies\AdvCombat3_PC.bik" 0 +2
  166.         Rename "$INSTDIR\BIOGame\Movies\AdvCombat3_PC.bik" "$INSTDIR\BIOGame\Movies\AdvCombat3_PC.bik.bu2"
  167.   File "AdvCombat3_PC.bik"
  168.  
  169.   IfFileExists "$INSTDIR\BIOGame\Movies\AdvCombat2_PC.bik" 0 +2
  170.         Rename "$INSTDIR\BIOGame\Movies\AdvCombat2_PC.bik" "$INSTDIR\BIOGame\Movies\AdvCombat2_PC.bik.bu2"
  171.   File "AdvCombat2_PC.bik"
  172.  
  173.   IfFileExists "$INSTDIR\BIOGame\Movies\AdvCombat1_PC.bik" 0 +2
  174.         Rename "$INSTDIR\BIOGame\Movies\AdvCombat1_PC.bik" "$INSTDIR\BIOGame\Movies\AdvCombat1_PC.bik.bu2"
  175.   File "AdvCombat1_PC.bik"
  176.  
  177. SectionEnd
  178.  
  179. Section "50+ Saves" SEC02
  180.   SetOutPath "$INSTDIR\BIOGame\CookedPCConsole"
  181.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc" 0 +2
  182.         Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc" "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc.bu2"
  183.   File "SFXGame.pcc"
  184. SectionEnd
  185.  
  186. Section "Readme" SEC03
  187.   SectionIn RO
  188.   SetOutPath "$INSTDIR\BIOGame"
  189.   File "START_HERE_ThaneMOD_Install_Guide.pdf"
  190. SectionEnd
  191.  
  192. ;======================================================================================
  193. ; Writing to the registry
  194.  
  195. Section -Post
  196.   WriteUninstaller "$INSTDIR\BIOGame\UNINSTALL_ThaneMOD_v1A.exe"
  197.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  198.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\BIOGame\UNINSTALL_ThaneMOD_v1A.exe"
  199.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  200. SectionEnd
  201.  
  202. ;======================================================================================
  203. ; Section descriptions, rollover text
  204.  
  205. !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  206.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Requires the ME3 Extended Cut DLC. Simplest version of ThaneMOD. Thane is not present for the coup and returns in the epilogue, similar to other ME2 squadmates."
  207.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Optional. Allows the player to have over 50 saves in a playthrough."
  208.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Required. ThaneMOD Install Guide...you should already have this open!"
  209. !insertmacro MUI_FUNCTION_DESCRIPTION_END
  210.  
  211. ;======================================================================================
  212. ; Install/Unisntall Functions
  213.  
  214. Function un.onUninstSuccess
  215.   HideWindow
  216.   MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
  217. FunctionEnd
  218.  
  219. ;Check for Previous Installation of ThaneMOD
  220. Function .onInit
  221.   ClearErrors
  222.   ReadRegStr $R0 ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName"
  223.   ${IfNot} ${Errors}
  224.     MessageBox MB_OK|MB_ICONEXCLAMATION "ThaneMOD is already installed. Please uninstall before installing a new version."
  225.     Abort
  226.   ${EndIf}
  227. FunctionEnd
  228.  
  229. ;Check for Installation of MEHEM
  230. ;Function .onInit
  231. ;  ClearErrors
  232. ;  ReadRegStr $R0 HKLM "Software\BioWare\Mass Effect 3" "MEHEM Installed"
  233. ;  ${IfNot} ${Errors}
  234. ;    MessageBox MB_OK|MB_ICONEXCLAMATION "MEHEM appears to be installed. You cannot use this version of ThaneMOD with MEHEM. Please use an MEHEM-compatible version."
  235. ;    Abort
  236. ;  ${EndIf}
  237. ;FunctionEnd
  238.  
  239. ;default from HM NIS Wizard
  240. ;Function un.onInit
  241.  ; MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
  242.  ; Abort
  243. ;FunctionEnd
  244.  
  245. ;======================================================================================
  246. ; Uninstallation
  247.  
  248. Section Uninstall
  249.  
  250.   ${If} ${FileExists} "$INSTDIR\BIOGame\START_HERE_ThaneMOD_Install_Guide.pdf"
  251.   Delete "$INSTDIR\BIOGame\START_HERE_ThaneMOD_Install_Guide.pdf"
  252.   ${EndIf}
  253.  
  254.   ${If} ${FileExists} "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc.bu2"
  255.   Delete "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc"
  256.   Rename "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\SFXGame.pcc"
  257.   ${EndIf}
  258.  
  259.   IfFileExists "$INSTDIR\BIOGame\Movies\AdvCombat1_PC.bik.bu2" 0 +2
  260.   Delete "$INSTDIR\BIOGame\Movies\AdvCombat1_PC.bik"
  261.   Rename "$INSTDIR\BIOGame\Movies\AdvCombat1_PC.bik.bu2" "$INSTDIR\BIOGame\Movies\AdvCombat1_PC.bik"
  262.  
  263.   IfFileExists "$INSTDIR\BIOGame\Movies\AdvCombat2_PC.bik.bu2" 0 +2
  264.   Delete "$INSTDIR\BIOGame\Movies\AdvCombat2_PC.bik"
  265.   Rename "$INSTDIR\BIOGame\Movies\AdvCombat2_PC.bik.bu2" "$INSTDIR\BIOGame\Movies\AdvCombat2_PC.bik"
  266.  
  267.   IfFileExists "$INSTDIR\BIOGame\Movies\AdvCombat3_PC.bik.bu2" 0 +2
  268.   Delete "$INSTDIR\BIOGame\Movies\AdvCombat3_PC.bik"
  269.   Rename "$INSTDIR\BIOGame\Movies\AdvCombat3_PC.bik.bu2" "$INSTDIR\BIOGame\Movies\AdvCombat3_PC.bik"
  270.  
  271.   IfFileExists "$INSTDIR\BIOGame\Movies\load_f01.bik.bu2" 0 +2
  272.   Delete "$INSTDIR\BIOGame\Movies\load_f01.bik"
  273.   Rename "$INSTDIR\BIOGame\Movies\load_f01.bik.bu2" "$INSTDIR\BIOGame\Movies\load_f01.bik"
  274.  
  275.   IfFileExists "$INSTDIR\BIOGame\Movies\ProMar_Smls_Load.bik.bu2" 0 +2
  276.   Delete "$INSTDIR\BIOGame\Movies\ProMar_Smls_Load.bik"
  277.   Rename "$INSTDIR\BIOGame\Movies\ProMar_Smls_Load.bik.bu2" "$INSTDIR\BIOGame\Movies\ProMar_Smls_Load.bik"
  278.  
  279.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc.bu2" 0 +2
  280.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc"
  281.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_000LevelTrans_LOC_INT.pcc"
  282.  
  283.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc.bu2" 0 +2
  284.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc"
  285.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_180DocksCop_LOC_INT.pcc"
  286.  
  287.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc.bu2" 0 +2
  288.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc"
  289.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos.pcc"
  290.  
  291.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc.bu2" 0 +2
  292.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc"
  293.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Cat003_380DesksConvos_LOC_INT.pcc"
  294.  
  295.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc.bu2" 0 +2
  296.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc"
  297.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_CitHub_HospitalP3.pcc"
  298.  
  299.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Kro001_100LandingArea.pcc.bu2" 0 +2
  300.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Kro001_100LandingArea.pcc"
  301.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Kro001_100LandingArea.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Kro001_100LandingArea.pcc"
  302.  
  303.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_001Global.pcc.bu2" 0 +2
  304.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_001Global.pcc"
  305.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_001Global.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_001Global.pcc"
  306.  
  307.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc.bu2" 0 +2
  308.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc"
  309.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_Nor_204Kro002_Debrief3_LOC_INT.pcc"
  310.  
  311.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\BioD_ProMar_750Finale.pcc.bu2" 0 +2
  312.   Delete "$INSTDIR\BIOGame\CookedPCConsole\BioD_ProMar_750Finale.pcc"
  313.   Rename "$INSTDIR\BIOGame\CookedPCConsole\BioD_ProMar_750Finale.pcc.bu2" "$INSTDIR\BIOGame\CookedPCConsole\BioD_ProMar_750Finale.pcc"
  314.  
  315.   IfFileExists "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd.bu2" 0 +2
  316.   Delete "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd"
  317.   Rename "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd.bu2" "$INSTDIR\BIOGame\CookedPCConsole\Conditionals.cnd"
  318.  
  319.   ${If} ${FileExists} "$INSTDIR\BIOGame\UNINSTALL_ThaneMOD_v1A.exe"
  320.   Delete "$INSTDIR\BIOGame\UNINSTALL_ThaneMOD_v1A.exe"
  321.   ${EndIf}
  322.  
  323.   DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  324.   SetAutoClose true
  325. SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment