From f4208069acef631a49146b459810365a62be46ba Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Fri, 27 Sep 2013 20:30:16 +0100 Subject: [PATCH] Updated packaging scripts. --- src/archive.py | 2 +- src/installer.nsi | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/archive.py b/src/archive.py index ca0a85d8..ebd28f35 100755 --- a/src/archive.py +++ b/src/archive.py @@ -26,7 +26,7 @@ import shutil import zipfile temp_path = os.path.join('..', 'build', 'archive.tmp') -archive_name = 'archive.zip' +archive_name = 'BOSS Archive.zip' # Set archive name if alternative is given. if (len(sys.argv) > 1): diff --git a/src/installer.nsi b/src/installer.nsi index d312d6f5..3e11b64f 100644 --- a/src/installer.nsi +++ b/src/installer.nsi @@ -216,18 +216,6 @@ FunctionEnd Function onGUIInit ; First check to see if BOSS is already installed via installer, and launch the existing uninstaller if so. - IfFileExists "$COMMONFILES\BOSS\uninstall.exe" 0 +8 - MessageBox MB_OKCANCEL|MB_ICONQUESTION "$(Text_MessageBox)" IDOK oldCont IDCANCEL oldCancel - oldCancel: - Quit - oldCont: - ExecWait '$COMMONFILES\BOSS\uninstall.exe _?=$COMMONFILES\BOSS' ;Run the uninstaller in its folder and wait until it's done. - Delete "$COMMONFILES\BOSS\uninstall.exe" - RMDir "$COMMONFILES\BOSS" - - - - ;That was the old uninstaller location, now see if the current version is already installed. ReadRegStr $InstallPath HKLM "Software\BOSS" "Installed Path" ${If} $InstallPath != "" IfFileExists "$InstallPath\Uninstall.exe" 0 +8 @@ -343,8 +331,8 @@ FunctionEnd ;Write registry keys for Windows' uninstaller. WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "DisplayName" "BOSS" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "UninstallString" '"$INSTDIR\Uninstall.exe"' - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "URLInfoAbout" 'http://better-oblivion-sorting-software.googlecode.com/' - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "HelpLink" 'http://better-oblivion-sorting-software.googlecode.com/' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "URLInfoAbout" 'http://boss-developers.github.io/' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "HelpLink" 'http://boss-developers.github.io/' WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "Publisher" 'BOSS Development Team' WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "DisplayVersion" '3.0.0' WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "NoModify" 1