Browse Source

Update NSIS scripts to use unicode version of installer.

adaptive-webui-19844
sledgehammer999 12 years ago
parent
commit
0b15515f59
  1. 10
      src/windows/README.txt
  2. 2
      src/windows/installer.nsi
  3. BIN
      src/windows/nsis plugins/FindProc Unicode-source.zip
  4. BIN
      src/windows/nsis plugins/FindProc.zip
  5. BIN
      src/windows/nsis plugins/FindProcDLL Unicode bin.zip
  6. 3
      src/windows/options.nsi
  7. 2
      src/windows/uninstaller.nsi

10
src/windows/README.txt

@ -8,18 +8,20 @@ TRANSLATORS: @@ -8,18 +8,20 @@ TRANSLATORS:
english message to help you with the translation.
4. Edit only the part inside the quotation marks(""). Unless you know
what you are doing.
5. Submit your changes: 1) as a pull request to the official git repo or
5. Save the files with utf8 encoding and BOM.
6. Submit your changes: 1) as a pull request to the official git repo or
2) open an issue to the bugtracker and attach them or 3) via email or
4)the same way you provide the tranlations for qbt itself
PACKAGERS:
You will need NSIS and upx to make the installer.
You will need NSIS and upx to make the installer. You need a unicode version of NSIS.
I tested with NSIS 3.0a0.
1. Open the options.nsi file in an editor and change line that contains
"!define PROG_VERSION "3.0.3"" to the version of qbittorrent you just built.
2. Extract the plugins found in the folder "nsis plugins" into the your
NSIS's Plugin directory(usually C:\Program Files\NSIS\Plugins).
2. Extract the plugins found in the folder "nsis plugins" into your
NSIS's unicode Plugin directory(usually C:\Program Files\NSIS\Plugins\x86-unicode).
Only the *.dll files are needed.
3. The script you need to compile is "qbittorrent.nsi". It includes all other necessary scripts.
4. The script expects the following file tree:

2
src/windows/installer.nsi

@ -120,7 +120,7 @@ SectionEnd @@ -120,7 +120,7 @@ SectionEnd
Section $(inst_firewall)
DetailPrint $(inst_firewallinfo)
nsisFirewall::AddAuthorizedApplication "$INSTDIR\qbittorrent.exe" "qBittorrent"
nsisFirewallW::AddAuthorizedApplication "$INSTDIR\qbittorrent.exe" "qBittorrent"
SectionEnd

BIN
src/windows/nsis plugins/FindProc Unicode-source.zip

Binary file not shown.

BIN
src/windows/nsis plugins/FindProc.zip

Binary file not shown.

BIN
src/windows/nsis plugins/FindProcDLL Unicode bin.zip

Binary file not shown.

3
src/windows/options.nsi

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
Unicode true
;Compress the header too
!packhdr "$%TEMP%\exehead.tmp" 'upx.exe -9 --best --ultra-brute "$%TEMP%\exehead.tmp"'
@ -79,4 +80,4 @@ RequestExecutionLevel admin @@ -79,4 +80,4 @@ RequestExecutionLevel admin
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_RESERVEFILE_LANGDLL
ReserveFile "${NSISDIR}\Plugins\FindProcDLL.dll"
ReserveFile "${NSISDIR}\Plugins\x86-unicode\FindProcDLL.dll"

2
src/windows/uninstaller.nsi

@ -81,7 +81,7 @@ SectionEnd @@ -81,7 +81,7 @@ SectionEnd
Section "un.$(remove_firewall)" ;
DetailPrint $(remove_firewallinfo)
nsisFirewall::RemoveAuthorizedApplication "$INSTDIR\qbittorrent.exe"
nsisFirewallW::RemoveAuthorizedApplication "$INSTDIR\qbittorrent.exe"
SectionEnd

Loading…
Cancel
Save