mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
(Untested) installer now installs MSVC redist if missing.
This commit is contained in:
@@ -72,6 +72,8 @@ In addition, while other data is retained, it needs some manual adjustment, eg.
|
||||
|
||||
Installer and zip archive releases for the main BOSS application can be handled by running the scripts `installer.nsi` and `archive.py` in the `src` folder respectively. The installer script requires [NSIS 3](http://nsis.sourceforge.net/Main_Page) to be installed, while the archive script requires [Python](http://www.python.org/) to be installed.
|
||||
|
||||
The installer and Python script both require the built BOSS.exe to be at `build\BOSS.exe`, and the installer also requires the MSVC 2013 Redistributable (x86) to be at `build\vcredist_x86.exe`.
|
||||
|
||||
## Adding Translations To BOSS
|
||||
|
||||
If a translation for a new language is provided, here's what needs changing in the code to make BOSS use that translation.
|
||||
|
||||
@@ -126,9 +126,9 @@ h3{
|
||||
|
||||
<blockquote class="warning">Version 3 is incompatible with earlier versions, which should be removed. Any existing user rules must be manually recreated in BOSS's user interface. Some plugins sorted correctly in v2 may be sorted incorrectly by v3 until their metadata has been recorded. Please <a href="#contrib">notify the team</a> if you observe any load order issues.</blockquote>
|
||||
|
||||
<p>BOSS requires the <a href="http://www.microsoft.com/en-gb/download/details.aspx?id=40784">
|
||||
Visual C++ Redistributable for Visual Studio 2013 (x86)</a>. BOSS can be installed either using its automated installer or manually. To install BOSS manually:
|
||||
<p>BOSS requires Windows Vista, 7 or 8. BOSS can be installed either using its automated installer or manually. To install BOSS manually:
|
||||
<ol>
|
||||
<li>Install the <a href="http://www.microsoft.com/en-gb/download/details.aspx?id=40784">Visual C++ Redistributable for Visual Studio 2013 (x86)</a>.
|
||||
<li>Extract the downloaded archive to a location of your choice.
|
||||
</ol>
|
||||
<p>If BOSS was installed using the installer, then use the uninstaller linked to in the Start Menu to uninstall BOSS. If BOSS was installed manually:
|
||||
@@ -551,6 +551,7 @@ A copy of the license is included in the file named "GNU FDL v1.3.txt".</blockqu
|
||||
<tr><td>BOSS Log plugin submission<td>BOSS allows users to submit unrecognised plugins from the HTML BOSS Log.<td>As there is no longer any such thing as an unrecognised plugin, the submission system has been removed.
|
||||
<tr><td>BOSS Log display customisation<td>BOSS allows users to customise the colour scheme used by the BOSS Log.<td>BOSS does not allow customisation of the colour scheme used by the BOSS report. However, the styling is now provided by a static stylesheet instead of being dynamically generated within the report every time BOSS is run, so this static stylesheet can be edited to achieve the same effect.
|
||||
<tr><td>Command line interface<td>BOSS provides a command line interface.<td>BOSS does not provide a command line interface, as the greater need for user interaction makes it unwieldy.
|
||||
<tr><td>Windows XP support<td>Supports Windows XP.<td>Does not support Windows XP.
|
||||
</table>
|
||||
|
||||
<h2 id="history">Version History</h2>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
;Include NSIS files.
|
||||
|
||||
!include "MUI2.nsh"
|
||||
!include "x64.nsh"
|
||||
!include "LogicLib.nsh"
|
||||
!include "nsDialogs.nsh"
|
||||
|
||||
@@ -382,6 +383,54 @@ FunctionEnd
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "Microsoft Visual C++ 2013 SP1 Redist"
|
||||
; Thanks to the pcsx2 installer for providing this!
|
||||
|
||||
; Detection made easy: Unlike previous redists, VC2013 now generates a platform
|
||||
; independent key for checking availability.
|
||||
; HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x86 for x64 Windows
|
||||
; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x86 for x86 Windows
|
||||
|
||||
; Download from:
|
||||
; http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe
|
||||
|
||||
ClearErrors
|
||||
|
||||
${If} ${RunningX64}
|
||||
ReadRegDword $R0 HKLM "SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0\VC\Runtimes\x86" "Installed"
|
||||
${Else}
|
||||
ReadRegDword $R0 HKLM "SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x86" "Installed"
|
||||
${EndIf}
|
||||
|
||||
IfErrors 0 +2
|
||||
DetailPrint "Visual C++ 2013 Redistributable registry key was not found; assumed to be uninstalled."
|
||||
StrCmp $R0 "1" 0 +3
|
||||
DetailPrint "Visual C++ 2013 Redistributable is already installed; skipping!"
|
||||
Goto done
|
||||
|
||||
; Use bundled VC redist, more important that the install doesn't fail than it gets whatever is the latest update.
|
||||
SetOutPath "$TEMP"
|
||||
File "..\build\vcredist_x86.exe"
|
||||
|
||||
;DetailPrint "Downloading Visual C++ 2013 Redistributable Setup..."
|
||||
;DetailPrint "Contacting Microsoft.com..."
|
||||
;NSISdl::download /TIMEOUT=15000 "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "vcredist_2013_x86.exe"
|
||||
|
||||
;Pop $R0 ;Get the return value
|
||||
;StrCmp $R0 "success" OnSuccess
|
||||
;DetailPrint "Could not contact Microsoft.com, or the file has been (re)moved!"
|
||||
;Goto done
|
||||
|
||||
;OnSuccess:
|
||||
DetailPrint "Running Visual C++ 2013 Redistributable Setup..."
|
||||
ExecWait '"$TEMP\vcredist_2013_x86.exe" /qb'
|
||||
DetailPrint "Finished Visual C++ 2013 SP1 Redistributable Setup"
|
||||
|
||||
Delete "$TEMP\vcredist_x86.exe"
|
||||
|
||||
done:
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
;Uninstaller Section
|
||||
|
||||
Reference in New Issue
Block a user