From 933e84107c318d6f4285d1998cf8b018d1d19f32 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Thu, 6 Mar 2014 19:42:22 +0000 Subject: [PATCH] More BOSS -> LOOT Packaging scripts, masterlist converter and a few missed version number changes. --- docs/api_index.dox | 4 +- src/archive.py | 41 +++--- src/converter.cpp | 23 ++-- src/installer.nsi | 321 +++++++++++++++++++++------------------------ src/resource.rc | 8 +- 5 files changed, 185 insertions(+), 212 deletions(-) diff --git a/docs/api_index.dox b/docs/api_index.dox index 38c327fb..abaa67fa 100644 --- a/docs/api_index.dox +++ b/docs/api_index.dox @@ -1,7 +1,7 @@ /** @mainpage @author WrinklyNinja - @version 3.0.0 + @version 0..0 @copyright The LOOT API is distributed under the GNU General Public License v3.0. For the full text of the license, see the "GNU GPL v3.txt" file included in the source archive. @section intro_sec Introduction @@ -14,7 +14,5 @@ @section credit_sec Credits - Thanks go to Lojack and myk002 for significant contributions during planning and beta testing, and to kaburke for beta testing of v2 of the API. - The LOOT API is written by WrinklyNinja in C/C++ and makes use of the yaml-cpp and libloadorder libraries and some of the Boost libraries. Copyright license information for all these may be found in the "licenses/Licenses.txt" file. */ diff --git a/src/archive.py b/src/archive.py index 7788c1c1..d7438368 100644 --- a/src/archive.py +++ b/src/archive.py @@ -1,49 +1,50 @@ #! /usr/bin/env python # -*- coding: utf-8 -*- -# Creates an archive of a BOSS release, putting it in the 'build' folder. +# Creates an archive of a LOOT release, putting it in the 'build' folder. # Files and folders that need to go in (relative to repository root): # -# build/BOSS.exe -# resources/l10n/es/LC_MESSAGES/boss.mo +# build/LOOT.exe +# resources/l10n/es/LC_MESSAGES/loot.mo # resources/l10n/es/LC_MESSAGES/wxstd.mo -# resources/l10n/ru/LC_MESSAGES/boss.mo +# resources/l10n/ru/LC_MESSAGES/loot.mo # resources/l10n/ru/LC_MESSAGES/wxstd.mo -# resources/l10n/fr/LC_MESSAGES/boss.mo +# resources/l10n/fr/LC_MESSAGES/loot.mo # resources/l10n/fr/LC_MESSAGES/wxstd.mo -# resources/l10n/zh/LC_MESSAGES/boss.mo +# resources/l10n/zh/LC_MESSAGES/loot.mo # resources/l10n/zh/LC_MESSAGES/wxstd.mo -# resources/l10n/pl/LC_MESSAGES/boss.mo +# resources/l10n/pl/LC_MESSAGES/loot.mo # resources/l10n/pl/LC_MESSAGES/wxstd.mo # resources/polyfill.js # resources/script.js # resources/style.css # docs/images # docs/licenses -# docs/BOSS Metadata Syntax.html -# docs/BOSS Readme.html +# docs/LOOT Metadata Syntax.html +# docs/LOOT Readme.html -# BOSS +# LOOT # -# A plugin load order optimiser for games that use the esp/esm plugin system. +# A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and +# Fallout: New Vegas. # # Copyright (C) 2013-2014 WrinklyNinja # -# This file is part of BOSS. +# This file is part of LOOT. # -# BOSS is free software: you can redistribute +# LOOT is free software: you can redistribute # it and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # -# BOSS is distributed in the hope that it will +# LOOT is distributed in the hope that it will # be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with BOSS. If not, see +# along with LOOT. If not, see # . import sys @@ -52,7 +53,7 @@ import shutil import zipfile temp_path = os.path.join('..', 'build', 'archive.tmp') -archive_name = 'BOSS Archive.zip' +archive_name = 'LOOT Archive.zip' # Set archive name if alternative is given. if (len(sys.argv) > 1): @@ -63,11 +64,11 @@ if not os.path.exists(temp_path): os.makedirs(temp_path) # Now copy everything into the temporary folder. -shutil.copy( os.path.join('..', 'build', 'BOSS.exe'), temp_path ) +shutil.copy( os.path.join('..', 'build', 'LOOT.exe'), temp_path ) for lang in ['es', 'ru', 'fr', 'zh_CN', 'pl', 'pt_BR']: os.makedirs(os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES')) - shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'boss.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') ) + shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'loot.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') ) shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') ) @@ -77,8 +78,8 @@ shutil.copy( os.path.join('..', 'resources', 'style.css'), os.path.join(temp_pat shutil.copytree( os.path.join('..', 'docs', 'images'), os.path.join(temp_path, 'docs', 'images') ) shutil.copytree( os.path.join('..', 'docs', 'licenses'), os.path.join(temp_path, 'docs', 'licenses') ) -shutil.copy( os.path.join('..', 'docs', 'BOSS Metadata Syntax.html'), os.path.join(temp_path, 'docs') ) -shutil.copy( os.path.join('..', 'docs', 'BOSS Readme.html'), os.path.join(temp_path, 'docs') ) +shutil.copy( os.path.join('..', 'docs', 'LOOT Metadata Syntax.html'), os.path.join(temp_path, 'docs') ) +shutil.copy( os.path.join('..', 'docs', 'LOOT Readme.html'), os.path.join(temp_path, 'docs') ) # Now compress the temporary folder. (Creating a zip because I can't get pylzma to work...) diff --git a/src/converter.cpp b/src/converter.cpp index d76b2657..382c4696 100644 --- a/src/converter.cpp +++ b/src/converter.cpp @@ -1,23 +1,24 @@ -/* BOSS +/* LOOT - A plugin load order optimiser for games that use the esp/esm plugin system. + A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and + Fallout: New Vegas. Copyright (C) 2013-2014 WrinklyNinja - This file is part of BOSS. + This file is part of LOOT. - BOSS is free software: you can redistribute + LOOT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - BOSS is distributed in the hope that it will + LOOT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with BOSS. If not, see + along with LOOT. If not, see . */ @@ -44,12 +45,12 @@ int main(int argc, char * argv[]) { YAML::Emitter yout; yout.SetIndent(2); - list test_plugins; - list globalMessages; + list test_plugins; + list globalMessages; - //Parse the v2 masterlist and output it as a YAML masterlist. + //Parse the BOSS masterlist and output it as a LOOT masterlist. try { - Loadv2Masterlist(boost::filesystem::path(in_str), test_plugins, globalMessages); + LoadBOSSMasterlist(boost::filesystem::path(in_str), test_plugins, globalMessages); } catch (exception& e) { cout << "An error was encountered during masterlist parsing. Message: " << e.what() << endl; return 1; @@ -62,7 +63,7 @@ int main(int argc, char * argv[]) { // Save output. boost::filesystem::path out_path(out_str); - boss::ofstream out(out_path); + loot::ofstream out(out_path); out << yout.c_str(); out.close(); diff --git a/src/installer.nsi b/src/installer.nsi index f1c78e48..19ca709e 100644 --- a/src/installer.nsi +++ b/src/installer.nsi @@ -1,4 +1,4 @@ -;BOSS NSIS Installer Script +;LOOT NSIS Installer Script ;-------------------------------- ;Include NSIS files. @@ -74,9 +74,9 @@ FunctionEnd ;General ;Name, file and version info for installer. - Name "BOSS v3.0.0" - OutFile "..\build\BOSS Installer.exe" - VIProductVersion 3.0.0.0 + Name "LOOT v0.5.0" + OutFile "..\build\LOOT Installer.exe" + VIProductVersion 0.5.0.0 ;Request application privileges for Windows Vista/7 RequestExecutionLevel admin @@ -89,15 +89,15 @@ FunctionEnd !define MUI_ABORTWARNING !define MUI_UNABORTWARNING - ;Checks that the installer's CRC is correct (means we can remove installer CRC checking from BOSS). + ;Checks that the installer's CRC is correct. CRCCheck force ;The SOLID lzma compressor gives the best compression ratio. SetCompressor /SOLID lzma ;Default install directory. - InstallDir "$PROGRAMFILES\BOSS" - InstallDirRegKey HKLM "Software\BOSS" "Installed Path" + InstallDir "$PROGRAMFILES\LOOT" + InstallDirRegKey HKLM "Software\LOOT" "Installed Path" ;-------------------------------- ;Pages @@ -108,9 +108,9 @@ FunctionEnd !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !define MUI_FINISHPAGE_NOAUTOCLOSE - !define MUI_FINISHPAGE_RUN "$INSTDIR\BOSS.exe" + !define MUI_FINISHPAGE_RUN "$INSTDIR\LOOT.exe" !define MUI_FINISHPAGE_RUN_TEXT "$(Text_Run)" - !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Docs\BOSS Readme.html" + !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Docs\LOOT Readme.html" !define MUI_FINISHPAGE_SHOWREADME_TEXT "$(Text_ShowReadme)" !insertmacro MUI_PAGE_FINISH @@ -134,112 +134,97 @@ FunctionEnd ;-------------------------------- ;English Strings - VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "BOSS" - VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "BOSS Development Team" - VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© 2009-2014 BOSS Development Team" - VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Installer for BOSS 3.0.0" - VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "3.0.0" + VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "LOOT" + VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "LOOT Team" + VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© 2009-2014 LOOT Team" + VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Installer for LOOT 0.5.0" + VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "0.5.0" - LangString TEXT_MESSAGEBOX ${LANG_ENGLISH} "BOSS is already installed, and must be uninstalled before continuing. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade." - LangString TEXT_RUN ${LANG_ENGLISH} "Run BOSS" + LangString TEXT_MESSAGEBOX ${LANG_ENGLISH} "LOOT is already installed, and must be uninstalled before continuing. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade." + LangString TEXT_RUN ${LANG_ENGLISH} "Run LOOT" LangString TEXT_SHOWREADME ${LANG_ENGLISH} "View Readme" - LangString TEXT_MAIN ${LANG_ENGLISH} "All BOSS's files, minus userlists and settings file." - LangString TEXT_USERFILES ${LANG_ENGLISH} "BOSS's userlist files and settings file." + LangString TEXT_MAIN ${LANG_ENGLISH} "All LOOT's files, minus userlists and settings file." + LangString TEXT_USERFILES ${LANG_ENGLISH} "LOOT's userlist files and settings file." ;-------------------------------- ;Russian (Русский) Strings - VIAddVersionKey /LANG=${LANG_RUSSIAN} "ProductName" "BOSS" - VIAddVersionKey /LANG=${LANG_RUSSIAN} "CompanyName" "BOSS Development Team" - VIAddVersionKey /LANG=${LANG_RUSSIAN} "LegalCopyright" "© 2009-2014 BOSS Development Team" - VIAddVersionKey /LANG=${LANG_RUSSIAN} "FileDescription" "Установщик для BOSS 3.0.0" - VIAddVersionKey /LANG=${LANG_RUSSIAN} "FileVersion" "3.0.0" + VIAddVersionKey /LANG=${LANG_RUSSIAN} "ProductName" "LOOT" + VIAddVersionKey /LANG=${LANG_RUSSIAN} "CompanyName" "LOOT Team" + VIAddVersionKey /LANG=${LANG_RUSSIAN} "LegalCopyright" "© 2009-2014 LOOT Team" + VIAddVersionKey /LANG=${LANG_RUSSIAN} "FileDescription" "Установщик для LOOT 0.5.0" + VIAddVersionKey /LANG=${LANG_RUSSIAN} "FileVersion" "0.5.0" - LangString TEXT_MESSAGEBOX ${LANG_RUSSIAN} "BOSS уже установлен и должен быть удален перед продолжением. $\n$\nНажмите `OK` для удаления предыдущей версии или `Отмена` для отмены обновления." - LangString TEXT_RUN ${LANG_RUSSIAN} "Запустить BOSS" + LangString TEXT_MESSAGEBOX ${LANG_RUSSIAN} "LOOT уже установлен и должен быть удален перед продолжением. $\n$\nНажмите `OK` для удаления предыдущей версии или `Отмена` для отмены обновления." + LangString TEXT_RUN ${LANG_RUSSIAN} "Запустить LOOT" LangString TEXT_SHOWREADME ${LANG_RUSSIAN} "Просмотр документации" - LangString TEXT_MAIN ${LANG_RUSSIAN} "Все файлы BOSS, кроме пользовательских списков и файла настроек" - LangString TEXT_USERFILES ${LANG_RUSSIAN} "Файлы пользовательских списков BOSS и файл настроек." - -;-------------------------------- -;German (Deutsch) Strings - - ;VIAddVersionKey /LANG=${LANG_GERMAN} "ProductName" "BOSS" - ;VIAddVersionKey /LANG=${LANG_GERMAN} "CompanyName" "BOSS Development Team" - ;VIAddVersionKey /LANG=${LANG_GERMAN} "LegalCopyright" "© 2009-2014 BOSS Development Team" - ;VIAddVersionKey /LANG=${LANG_GERMAN} "FileDescription" "Installer für BOSS 3.0.0" - ;VIAddVersionKey /LANG=${LANG_GERMAN} "FileVersion" "3.0.0" - - ;LangString TEXT_MESSAGEBOX ${LANG_GERMAN} "BOSS ist bereits installiert und muss deinstalliert werden, bevor fortgefahren wird. $\n$\nKlicke auf `Ok` um die vorherige Version zu entfernen oder auf `Abbrechen` um das Upgrade abzubrechen." - ;LangString TEXT_RUN ${LANG_GERMAN} "BOSS starten" - ;LangString TEXT_SHOWREADME ${LANG_GERMAN} "Readme lesen" - ;LangString TEXT_MAIN ${LANG_GERMAN} "Alle Dateien von BOSS ohne die Benutzerlisten und die BOSS.ini." - ;LangString TEXT_USERFILES ${LANG_GERMAN} "Benutzerliste von BOSS und die BOSS.ini-Datei." + LangString TEXT_MAIN ${LANG_RUSSIAN} "Все файлы LOOT, кроме пользовательских списков и файла настроек" + LangString TEXT_USERFILES ${LANG_RUSSIAN} "Файлы пользовательских списков LOOT и файл настроек." ;-------------------------------- ;French (Français) Strings - VIAddVersionKey /LANG=${LANG_FRENCH} "ProductName" "BOSS" - VIAddVersionKey /LANG=${LANG_FRENCH} "CompanyName" "BOSS Development Team" - VIAddVersionKey /LANG=${LANG_FRENCH} "LegalCopyright" "© 2009-2014 BOSS Development Team" - VIAddVersionKey /LANG=${LANG_FRENCH} "FileDescription" "Programme d'installation pour BOSS 3.0.0" - VIAddVersionKey /LANG=${LANG_FRENCH} "FileVersion" "3.0.0" + VIAddVersionKey /LANG=${LANG_FRENCH} "ProductName" "LOOT" + VIAddVersionKey /LANG=${LANG_FRENCH} "CompanyName" "LOOT Team" + VIAddVersionKey /LANG=${LANG_FRENCH} "LegalCopyright" "© 2009-2014 LOOT Team" + VIAddVersionKey /LANG=${LANG_FRENCH} "FileDescription" "Programme d'installation pour LOOT 0.5.0" + VIAddVersionKey /LANG=${LANG_FRENCH} "FileVersion" "0.5.0" - LangString TEXT_MESSAGEBOX ${LANG_FRENCH} "BOSS est déjà installé, et doit être désinstallé avant de continuer. $\n$\nCliquer sur `OK` pour désinstaller la version précédente ou 'Annuler' pour annuler la mise à jour." - LangString TEXT_RUN ${LANG_FRENCH} "Lancer BOSS" + LangString TEXT_MESSAGEBOX ${LANG_FRENCH} "LOOT est déjà installé, et doit être désinstallé avant de continuer. $\n$\nCliquer sur `OK` pour désinstaller la version précédente ou 'Annuler' pour annuler la mise à jour." + LangString TEXT_RUN ${LANG_FRENCH} "Lancer LOOT" LangString TEXT_SHOWREADME ${LANG_FRENCH} "Afficher la documentation" - LangString TEXT_MAIN ${LANG_FRENCH} "Tous les fichiers de BOSS, sauf les userlists et les règlages." - LangString TEXT_USERFILES ${LANG_FRENCH} "L'userlist de BOSS et les règlages." + LangString TEXT_MAIN ${LANG_FRENCH} "Tous les fichiers de LOOT, sauf les userlists et les règlages." + LangString TEXT_USERFILES ${LANG_FRENCH} "L'userlist de LOOT et les règlages." ;-------------------------------- ;Spanish (castellano) Strings - VIAddVersionKey /LANG=${LANG_SPANISH} "ProductName" "BOSS" - VIAddVersionKey /LANG=${LANG_SPANISH} "CompanyName" "BOSS Development Team" - VIAddVersionKey /LANG=${LANG_SPANISH} "LegalCopyright" "© 2009-2014 BOSS Development Team" - VIAddVersionKey /LANG=${LANG_SPANISH} "FileDescription" "El instalador para BOSS 3.0.0" - VIAddVersionKey /LANG=${LANG_SPANISH} "FileVersion" "3.0.0" + VIAddVersionKey /LANG=${LANG_SPANISH} "ProductName" "LOOT" + VIAddVersionKey /LANG=${LANG_SPANISH} "CompanyName" "LOOT Team" + VIAddVersionKey /LANG=${LANG_SPANISH} "LegalCopyright" "© 2009-2014 LOOT Team" + VIAddVersionKey /LANG=${LANG_SPANISH} "FileDescription" "El instalador para LOOT 0.5.0" + VIAddVersionKey /LANG=${LANG_SPANISH} "FileVersion" "0.5.0" - LangString TEXT_MESSAGEBOX ${LANG_SPANISH} "BOSS está instalado, y debe ser desinstalado antes de continuar. $\n$\nPresione `OK` para eliminar la versión anterior o `Cancel` para cancelar la actualización." - LangString TEXT_RUN ${LANG_SPANISH} "Ejecutar BOSS" + LangString TEXT_MESSAGEBOX ${LANG_SPANISH} "LOOT está instalado, y debe ser desinstalado antes de continuar. $\n$\nPresione `OK` para eliminar la versión anterior o `Cancel` para cancelar la actualización." + LangString TEXT_RUN ${LANG_SPANISH} "Ejecutar LOOT" LangString TEXT_SHOWREADME ${LANG_SPANISH} "Ver Léame" - LangString TEXT_MAIN ${LANG_SPANISH} "Todos los archivos de BOSS, menos la lista de usuario y configuraciónes." + LangString TEXT_MAIN ${LANG_SPANISH} "Todos los archivos de LOOT, menos la lista de usuario y configuraciónes." LangString TEXT_USERFILES ${LANG_SPANISH} "La lista de usuario y configuraciónes." ;-------------------------------- ;Simplified Chinese (简体中文) Strings - VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "ProductName" "BOSS" - VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "CompanyName" "BOSS Development Team" - VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "LegalCopyright" "© 2009-2014 BOSS Development Team" - VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileDescription" "BOSS 3.0.0安装包" - VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileVersion" "3.0.0" + VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "ProductName" "LOOT" + VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "CompanyName" "LOOT Team" + VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "LegalCopyright" "© 2009-2014 LOOT Team" + VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileDescription" "LOOT 0.5.0安装包" + VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileVersion" "0.5.0" - LangString TEXT_MESSAGEBOX ${LANG_SIMPCHINESE} "检测到旧版BOSS,您需要先卸载旧版才能安装新版。$\n$\n点击“确定”卸载旧版本或者“取消”取消更新。" - LangString TEXT_RUN ${LANG_SIMPCHINESE} "运行BOSS" + LangString TEXT_MESSAGEBOX ${LANG_SIMPCHINESE} "检测到旧版LOOT,您需要先卸载旧版才能安装新版。$\n$\n点击“确定”卸载旧版本或者“取消”取消更新。" + LangString TEXT_RUN ${LANG_SIMPCHINESE} "运行LOOT" LangString TEXT_SHOWREADME ${LANG_SIMPCHINESE} "查看说明" - LangString TEXT_MAIN ${LANG_SIMPCHINESE} "所有BOSS文件(除userlist和配置文件)" - LangString TEXT_USERFILES ${LANG_SIMPCHINESE} "BOSS的userlist和配置文件。" + LangString TEXT_MAIN ${LANG_SIMPCHINESE} "所有LOOT文件(除userlist和配置文件)" + LangString TEXT_USERFILES ${LANG_SIMPCHINESE} "LOOT的userlist和配置文件。" ;-------------------------------- ;Polish (POLSKI) Strings - VIAddVersionKey /LANG=${LANG_POLISH} "ProductName" "BOSS" - VIAddVersionKey /LANG=${LANG_POLISH} "CompanyName" "BOSS Development Team" - VIAddVersionKey /LANG=${LANG_POLISH} "LegalCopyright" "© 2009-2014 BOSS Development Team" - VIAddVersionKey /LANG=${LANG_POLISH} "FileDescription" "Instalator dla BOSS 3.0.0" - VIAddVersionKey /LANG=${LANG_POLISH} "FileVersion" "3.0.0" + VIAddVersionKey /LANG=${LANG_POLISH} "ProductName" "LOOT" + VIAddVersionKey /LANG=${LANG_POLISH} "CompanyName" "LOOT Team" + VIAddVersionKey /LANG=${LANG_POLISH} "LegalCopyright" "© 2009-2014 LOOT Team" + VIAddVersionKey /LANG=${LANG_POLISH} "FileDescription" "Instalator dla LOOT 0.5.0" + VIAddVersionKey /LANG=${LANG_POLISH} "FileVersion" "0.5.0" - LangString TEXT_MESSAGEBOX ${LANG_POLISH} "BOSS jest już zainstalowany i musi zostać odinstalowany przed instalowaniem tej wersji. $\n$\nClick `OK` aby odinstalować lub `Cancel` aby anulować aktualizację." - LangString TEXT_RUN ${LANG_POLISH} " Uruchom BOSS" + LangString TEXT_MESSAGEBOX ${LANG_POLISH} "LOOT jest już zainstalowany i musi zostać odinstalowany przed instalowaniem tej wersji. $\n$\nClick `OK` aby odinstalować lub `Cancel` aby anulować aktualizację." + LangString TEXT_RUN ${LANG_POLISH} " Uruchom LOOT" LangString TEXT_SHOWREADME ${LANG_POLISH} "Czytaj Readme" - LangString TEXT_MAIN ${LANG_POLISH} "Wszystkie pliki BOSS bez ustawień i plików użytkownika." - LangString TEXT_USERFILES ${LANG_POLISH} "Wszystkie pliki BOSS oraz ustawienia użytkownika ." + LangString TEXT_MAIN ${LANG_POLISH} "Wszystkie pliki LOOT bez ustawień i plików użytkownika." + LangString TEXT_USERFILES ${LANG_POLISH} "Wszystkie pliki LOOT oraz ustawienia użytkownika ." ;-------------------------------- ;Initialisations - Var InstallPath ;Path to existing BOSS install. + Var InstallPath ;Path to existing LOOT install. Function .onInit @@ -248,8 +233,8 @@ FunctionEnd FunctionEnd Function onGUIInit - ; First check to see if BOSS is already installed via installer, and launch the existing uninstaller if so. - ReadRegStr $InstallPath HKLM "Software\BOSS" "Installed Path" + ; First check to see if LOOT is already installed via installer, and launch the existing uninstaller if so. + ReadRegStr $InstallPath HKLM "Software\LOOT" "Installed Path" ${If} $InstallPath != "" IfFileExists "$InstallPath\Uninstall.exe" 0 +8 MessageBox MB_OKCANCEL|MB_ICONQUESTION "$(Text_MessageBox)" IDOK cont IDCANCEL cancel @@ -275,12 +260,12 @@ FunctionEnd ;Install executable. SetOutPath "$INSTDIR" - File "..\build\BOSS.exe" + File "..\build\LOOT.exe" ;Now install API DLLs. ;SetOutPath "$INSTDIR\API" - ;File "..\build\libboss32.dll" - ;File "..\build\libboss64.dll" + ;File "..\build\loot32.dll" + ;File "..\build\loot64.dll" ;Install resource files. SetOutPath "$INSTDIR\resources" @@ -298,69 +283,61 @@ FunctionEnd ;Now install readme files. SetOutPath "$INSTDIR\docs" - ;File "..\docs\BOSS API Readme.html" - File "..\docs\BOSS Metadata Syntax.html" - File "..\docs\BOSS Readme.html" + File "..\docs\LOOT Metadata Syntax.html" + File "..\docs\LOOT Readme.html" ;Now install language files. SetOutPath "$INSTDIR\resources\l10n\ru\LC_MESSAGES" - File "..\resources\l10n\ru\LC_MESSAGES\boss.mo" + File "..\resources\l10n\ru\LC_MESSAGES\loot.mo" File "..\resources\l10n\ru\LC_MESSAGES\wxstd.mo" SetOutPath "$INSTDIR\resources\l10n\es\LC_MESSAGES" File "..\resources\l10n\es\LC_MESSAGES\wxstd.mo" - File "..\resources\l10n\es\LC_MESSAGES\boss.mo" - ;SetOutPath "$INSTDIR\resources\l10n\de\LC_MESSAGES" - ;File "..\resources\l10n\de\LC_MESSAGES\wxstd.mo" + File "..\resources\l10n\es\LC_MESSAGES\loot.mo" SetOutPath "$INSTDIR\resources\l10n\zh_CN\LC_MESSAGES" - File "..\resources\l10n\zh_CN\LC_MESSAGES\boss.mo" + File "..\resources\l10n\zh_CN\LC_MESSAGES\loot.mo" File "..\resources\l10n\zh_CN\LC_MESSAGES\wxstd.mo" SetOutPath "$INSTDIR\resources\l10n\fr\LC_MESSAGES" File "..\resources\l10n\fr\LC_MESSAGES\wxstd.mo" - File "..\resources\l10n\fr\LC_MESSAGES\boss.mo" + File "..\resources\l10n\fr\LC_MESSAGES\loot.mo" SetOutPath "$INSTDIR\resources\l10n\pl\LC_MESSAGES" File "..\resources\l10n\pl\LC_MESSAGES\wxstd.mo" - File "..\resources\l10n\pl\LC_MESSAGES\boss.mo" + File "..\resources\l10n\pl\LC_MESSAGES\loot.mo" SetOutPath "$INSTDIR\resources\l10n\pt_BR\LC_MESSAGES" File "..\resources\l10n\pt_BR\LC_MESSAGES\wxstd.mo" - File "..\resources\l10n\pt_BR\LC_MESSAGES\boss.mo" + File "..\resources\l10n\pt_BR\LC_MESSAGES\loot.mo" ;Install settings file. - SetOutPath "$LOCALAPPDATA\BOSS" + SetOutPath "$LOCALAPPDATA\LOOT" File "..\resources\settings.yaml" ;Write language setting to settings.yaml. StrCmp $LANGUAGE ${LANG_RUSSIAN} 0 +5 - Push "$LOCALAPPDATA\BOSS\settings.yaml" + Push "$LOCALAPPDATA\LOOT\settings.yaml" Push "Language:" Push "Language: ru" Call ReplaceLineStr - ;StrCmp $LANGUAGE ${LANG_GERMAN} 0 +5 - ; Push "$LOCALAPPDATA\BOSS\settings.yaml" - ; Push "Language:" - ; Push "Language: de" - ; Call ReplaceLineStr StrCmp $LANGUAGE ${LANG_SPANISH} 0 +5 - Push "$LOCALAPPDATA\BOSS\settings.yaml" + Push "$LOCALAPPDATA\LOOT\settings.yaml" Push "Language:" Push "Language: es" Call ReplaceLineStr StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +5 - Push "$LOCALAPPDATA\BOSS\settings.yaml" + Push "$LOCALAPPDATA\LOOT\settings.yaml" Push "Language:" Push "Language: zh_CN" Call ReplaceLineStr StrCmp $LANGUAGE ${LANG_FRENCH} 0 +5 - Push "$LOCALAPPDATA\BOSS\settings.yaml" + Push "$LOCALAPPDATA\LOOT\settings.yaml" Push "Language:" Push "Language: fr" Call ReplaceLineStr StrCmp $LANGUAGE ${LANG_POLISH} 0 +5 - Push "$LOCALAPPDATA\BOSS\settings.yaml" + Push "$LOCALAPPDATA\LOOT\settings.yaml" Push "Language:" Push "Language: pl" Call ReplaceLineStr ;StrCmp $LANGUAGE ${LANG_PORTUGUESEBR} 0 +5 - ; Push "$LOCALAPPDATA\BOSS\settings.yaml" + ; Push "$LOCALAPPDATA\LOOT\settings.yaml" ; Push "Language:" ; Push "Language: pt_BR" ; Call ReplaceLineStr @@ -369,23 +346,23 @@ FunctionEnd ;Set Shell Var Context to all so that shortcuts are installed for all users, not just admin. SetOutPath "$INSTDIR" SetShellVarContext all - CreateDirectory "$SMPROGRAMS\BOSS" - CreateShortCut "$SMPROGRAMS\BOSS\BOSS.lnk" "$INSTDIR\BOSS.exe" - CreateShortCut "$SMPROGRAMS\BOSS\Uninstall.lnk" "$INSTDIR\Uninstall.exe" - CreateShortCut "$SMPROGRAMS\BOSS\Readme.lnk" "$INSTDIR\Docs\BOSS Readme.html" + CreateDirectory "$SMPROGRAMS\LOOT" + CreateShortCut "$SMPROGRAMS\LOOT\LOOT.lnk" "$INSTDIR\LOOT.exe" + CreateShortCut "$SMPROGRAMS\LOOT\Uninstall.lnk" "$INSTDIR\Uninstall.exe" + CreateShortCut "$SMPROGRAMS\LOOT\Readme.lnk" "$INSTDIR\Docs\LOOT Readme.html" ;Store installation folder in registry key. - WriteRegStr HKLM "Software\BOSS" "Installed Path" "$INSTDIR" + WriteRegStr HKLM "Software\LOOT" "Installed Path" "$INSTDIR" ;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://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 - WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" "NoRepair" 1 + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "DisplayName" "LOOT" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "UninstallString" '"$INSTDIR\Uninstall.exe"' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "URLInfoAbout" 'http://loot.github.io/' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "HelpLink" 'http://loot.github.io/' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "Publisher" 'LOOT Development Team' + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "DisplayVersion" '0.5.0' + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "NoModify" 1 + WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" "NoRepair" 1 ;Create uninstaller WriteUninstaller "$INSTDIR\Uninstall.exe" @@ -439,14 +416,14 @@ FunctionEnd ;Uninstaller Section - Section "un.BOSS" Main + Section "un.LOOT" Main ;Remove main executables. - Delete "$INSTDIR\BOSS.exe" + Delete "$INSTDIR\LOOT.exe" ;Remove API DLLs. - ;Delete "$INSTDIR\API\libboss32.dll" - ;Delete "$INSTDIR\API\libboss64.dll" + ;Delete "$INSTDIR\API\loot32.dll" + ;Delete "$INSTDIR\API\loot64.dll" ;RMDir "$INSTDIR\API" ;Remove readme images. @@ -456,9 +433,8 @@ FunctionEnd RMDir /r "$INSTDIR\docs\licenses" ;Remove readme files. - ;Delete "$INSTDIR\docs\BOSS API Readme.html" - Delete "$INSTDIR\docs\BOSS Metadata Syntax.html" - Delete "$INSTDIR\docs\BOSS Readme.html" + Delete "$INSTDIR\docs\LOOT Metadata Syntax.html" + Delete "$INSTDIR\docs\LOOT Readme.html" RMDir "$INSTDIR\docs" ;Remove resource files. @@ -467,25 +443,22 @@ FunctionEnd Delete "$INSTDIR\resources\style.css" ;Remove language files. - Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\boss.mo" + Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\loot.mo" Delete "$INSTDIR\resources\l10n\ru\LC_MESSAGES\wxstd.mo" - Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\boss.mo" + Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\loot.mo" Delete "$INSTDIR\resources\l10n\es\LC_MESSAGES\wxstd.mo" - ;Delete "$INSTDIR\resources\l10n\de\LC_MESSAGES\wxstd.mo" - Delete "$INSTDIR\resources\l10n\zh_CN\LC_MESSAGES\boss.mo" + Delete "$INSTDIR\resources\l10n\zh_CN\LC_MESSAGES\loot.mo" Delete "$INSTDIR\resources\l10n\zh_CN\LC_MESSAGES\wxstd.mo" - Delete "$INSTDIR\resources\l10n\fr\LC_MESSAGES\boss.mo" + Delete "$INSTDIR\resources\l10n\fr\LC_MESSAGES\loot.mo" Delete "$INSTDIR\resources\l10n\fr\LC_MESSAGES\wxstd.mo" - Delete "$INSTDIR\resources\l10n\pl\LC_MESSAGES\boss.mo" + Delete "$INSTDIR\resources\l10n\pl\LC_MESSAGES\loot.mo" Delete "$INSTDIR\resources\l10n\pl\LC_MESSAGES\wxstd.mo" - Delete "$INSTDIR\resources\l10n\pt_BR\LC_MESSAGES\boss.mo" + Delete "$INSTDIR\resources\l10n\pt_BR\LC_MESSAGES\loot.mo" Delete "$INSTDIR\resources\l10n\pt_BR\LC_MESSAGES\wxstd.mo" RMDir "$INSTDIR\resources\l10n\ru\LC_MESSAGES" RMDir "$INSTDIR\resources\l10n\ru" RMDir "$INSTDIR\resources\l10n\es\LC_MESSAGES" RMDir "$INSTDIR\resources\l10n\es" - ;RMDir "$INSTDIR\resources\l10n\de\LC_MESSAGES" - ;RMDir "$INSTDIR\resources\l10n\de" RMDir "$INSTDIR\resources\l10n\zh_CN\LC_MESSAGES" RMDir "$INSTDIR\resources\l10n\zh_CN" RMDir "$INSTDIR\resources\l10n\fr\LC_MESSAGES" @@ -497,26 +470,26 @@ FunctionEnd RMDir "$INSTDIR\resources\l10n" RMDir "$INSTDIR\resources" - ;Now we have to remove the files BOSS generates when it runs. - Delete "$LOCALAPPDATA\BOSS\BOSSDebugLog.txt" + ;Now we have to remove the files LOOT generates when it runs. + Delete "$LOCALAPPDATA\LOOT\LOOTDebugLog.txt" ;Trying to delete a file that doesn't exist doesn't cause an error, so delete all games' files. ;This doesn't handle user-defined games. - Delete "$LOCALAPPDATA\BOSS\Oblivion\report.html" - Delete "$LOCALAPPDATA\BOSS\Oblivion\masterlist.yaml" - Delete "$LOCALAPPDATA\BOSS\Nehrim\report.html" - Delete "$LOCALAPPDATA\BOSS\Nehrim\masterlist.yaml" - Delete "$LOCALAPPDATA\BOSS\Skyrim\report.html" - Delete "$LOCALAPPDATA\BOSS\Skyrim\masterlist.yaml" - Delete "$LOCALAPPDATA\BOSS\Fallout3\report.html" - Delete "$LOCALAPPDATA\BOSS\Fallout3\masterlist.yaml" - Delete "$LOCALAPPDATA\BOSS\FalloutNV\report.html" - Delete "$LOCALAPPDATA\BOSS\FalloutNV\masterlist.yaml" - RMDir "$LOCALAPPDATA\BOSS\Oblivion" - RMDir "$LOCALAPPDATA\BOSS\Nehrim" - RMDir "$LOCALAPPDATA\BOSS\Skyrim" - RMDir "$LOCALAPPDATA\BOSS\Fallout3" - RMDir "$LOCALAPPDATA\BOSS\FalloutNV" - RMDir "$LOCALAPPDATA\BOSS" + Delete "$LOCALAPPDATA\LOOT\Oblivion\report.html" + Delete "$LOCALAPPDATA\LOOT\Oblivion\masterlist.yaml" + Delete "$LOCALAPPDATA\LOOT\Nehrim\report.html" + Delete "$LOCALAPPDATA\LOOT\Nehrim\masterlist.yaml" + Delete "$LOCALAPPDATA\LOOT\Skyrim\report.html" + Delete "$LOCALAPPDATA\LOOT\Skyrim\masterlist.yaml" + Delete "$LOCALAPPDATA\LOOT\Fallout3\report.html" + Delete "$LOCALAPPDATA\LOOT\Fallout3\masterlist.yaml" + Delete "$LOCALAPPDATA\LOOT\FalloutNV\report.html" + Delete "$LOCALAPPDATA\LOOT\FalloutNV\masterlist.yaml" + RMDir "$LOCALAPPDATA\LOOT\Oblivion" + RMDir "$LOCALAPPDATA\LOOT\Nehrim" + RMDir "$LOCALAPPDATA\LOOT\Skyrim" + RMDir "$LOCALAPPDATA\LOOT\Fallout3" + RMDir "$LOCALAPPDATA\LOOT\FalloutNV" + RMDir "$LOCALAPPDATA\LOOT" ;Remove uninstaller. Delete "$INSTDIR\Uninstall.exe" @@ -525,45 +498,45 @@ FunctionEnd RMDir "$INSTDIR" ;Delete registry key. - DeleteRegKey HKLM "Software\BOSS" + DeleteRegKey HKLM "Software\LOOT" ;Delete stupid Windows created registry keys: - DeleteRegKey HKCU "Software\BOSS" - DeleteRegKey HKLM "Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" - DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BOSS" - DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\App Management\ARPCache\BOSS" + DeleteRegKey HKCU "Software\LOOT" + DeleteRegKey HKLM "Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LOOT" + DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\App Management\ARPCache\LOOT" DeleteRegValue HKCR "Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR" - DeleteRegValue HKCR "Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR\BOSS.exe" + DeleteRegValue HKCR "Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR\LOOT.exe" DeleteRegValue HKCR "Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR\Uninstall.exe" DeleteRegValue HKCU "Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR" - DeleteRegValue HKCU "Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR\BOSS.exe" + DeleteRegValue HKCU "Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR\LOOT.exe" DeleteRegValue HKCU "Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" "$INSTDIR\Uninstall.exe" DeleteRegValue HKCU "Software\Microsoft\Windows\ShellNoRoam\MuiCache" "$INSTDIR" - DeleteRegValue HKCU "Software\Microsoft\Windows\ShellNoRoam\MuiCache" "$INSTDIR\BOSS.exe" + DeleteRegValue HKCU "Software\Microsoft\Windows\ShellNoRoam\MuiCache" "$INSTDIR\LOOT.exe" DeleteRegValue HKCU "Software\Microsoft\Windows\ShellNoRoam\MuiCache" "$INSTDIR\Uninstall.exe" ;Delete Start Menu folder. SetShellVarContext all - RMDir /r "$SMPROGRAMS\BOSS" + RMDir /r "$SMPROGRAMS\LOOT" SectionEnd Section /o "un.User Files" UserFiles ;The following user files are only removed if set to. - Delete "$LOCALAPPDATA\BOSS\settings.yaml" - Delete "$LOCALAPPDATA\BOSS\Oblivion\userlist.yaml" - Delete "$LOCALAPPDATA\BOSS\Nehrim\userlist.yaml" - Delete "$LOCALAPPDATA\BOSS\Skyrim\userlist.yaml" - Delete "$LOCALAPPDATA\BOSS\Fallout3\userlist.yaml" - Delete "$LOCALAPPDATA\BOSS\FalloutNV\userlist.yaml" + Delete "$LOCALAPPDATA\LOOT\settings.yaml" + Delete "$LOCALAPPDATA\LOOT\Oblivion\userlist.yaml" + Delete "$LOCALAPPDATA\LOOT\Nehrim\userlist.yaml" + Delete "$LOCALAPPDATA\LOOT\Skyrim\userlist.yaml" + Delete "$LOCALAPPDATA\LOOT\Fallout3\userlist.yaml" + Delete "$LOCALAPPDATA\LOOT\FalloutNV\userlist.yaml" ;Also try removing the folders storing them, in case they are otherwise empty. - RMDir "$LOCALAPPDATA\BOSS\Oblivion" - RMDir "$LOCALAPPDATA\BOSS\Nehrim" - RMDir "$LOCALAPPDATA\BOSS\Skyrim" - RMDir "$LOCALAPPDATA\BOSS\Fallout3" - RMDir "$LOCALAPPDATA\BOSS\FalloutNV" + RMDir "$LOCALAPPDATA\LOOT\Oblivion" + RMDir "$LOCALAPPDATA\LOOT\Nehrim" + RMDir "$LOCALAPPDATA\LOOT\Skyrim" + RMDir "$LOCALAPPDATA\LOOT\Fallout3" + RMDir "$LOCALAPPDATA\LOOT\FalloutNV" ;Try removing install directory. - RMDir "$LOCALAPPDATA\BOSS" + RMDir "$LOCALAPPDATA\LOOT" SectionEnd ;-------------------------------- diff --git a/src/resource.rc b/src/resource.rc index 67fd7a22..843f8326 100644 --- a/src/resource.rc +++ b/src/resource.rc @@ -1,7 +1,7 @@ #include "wx/msw/wx.rc" 1 VERSIONINFO - FILEVERSION 3,0,0,0 - PRODUCTVERSION 3,0,0,0 + FILEVERSION 0,5,0,0 + PRODUCTVERSION 0,5,0,0 FILEOS VOS__WINDOWS32 FILETYPE VFT_APP BEGIN @@ -9,9 +9,9 @@ BEGIN BEGIN BLOCK "040904b0" BEGIN - VALUE "FileVersion", "3.0.0" + VALUE "FileVersion", "0.5.0" VALUE "LegalCopyright", "Copyright (C) 2013-2014 WrinklyNinja" - VALUE "ProductVersion", "3.0.0" + VALUE "ProductVersion", "0.5.0" END END BLOCK "VarFileInfo"