diff --git a/dist/windows/README.txt b/dist/windows/README.txt index d4593b391..fa8b745ad 100644 --- a/dist/windows/README.txt +++ b/dist/windows/README.txt @@ -1,12 +1,12 @@ TRANSLATORS: -1. Use an editor that has NSIS syntax highlighting(eg Notepad++/Geany). This will +1. Use an editor that has NSIS syntax highlighting(eg Notepad++/Geany). This will make your life easier. -2. Open the relevant .nsi file that exists in the folder named +2. Open the relevant .nsi file that exists in the folder named "installer-translations" -3. Lines starting with ";" are considered comments. These include the +3. Lines starting with ";" are considered comments. These include the english message to help you with the translation. -4. Edit only the part inside the quotation marks(""). Unless you know +4. Edit only the part inside the quotation marks(""). Unless you know what you are doing. 5. Save the files with utf8 encoding and BOM. 6. Submit your changes: 1) as a pull request to the official git repo or @@ -16,17 +16,13 @@ TRANSLATORS: PACKAGERS: You will need NSIS and upx to make the installer. You need a unicode version of NSIS. -I tested with NSIS 3.0a0. +I tested with NSIS 3.0 (final). 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 your + "!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 your NSIS's unicode Plugin directory(usually C:\Program Files\NSIS\Plugins\x86-unicode). - Only the *.dll files are needed. Don't use the .dll from UAC.zip, use the one from "UAC Unicode.zip". - NOTE: To build the unicode version of UAC with MSVC2008 you need: - a) the sources from UAC.zip - b) apply the util.cpp.diff from "UAC Unicode.zip" to util.cpp - c) in a msvc command prompt issue: cl.exe /O1s /GS- /GR- /EHs-c- /Zl /LD /DUNICODE RunAs.cpp uac.cpp util.cpp /link kernel32.lib user32.lib shell32.lib advapi32.lib ole32.lib /DLL /MANIFEST:NO /OUT:uac.dll + Only the *.dll files are needed. Use the unicode version of the dlls. 3. The script you need to compile is "qbittorrent.nsi". It includes all other necessary scripts. 4. The script expects the following file tree: @@ -53,10 +49,11 @@ qbittorrent.exe qbittorrent.nsi qt.conf translations.nsi +UAC.nsh uninstaller.nsi -5. "license.txt" is a text file that contains the text rendered +5. "license.txt" is a text file that contains the text rendered from src\gui\gpl.html or the text contained in COPYING 6. "qbittorrent.exe" is the compiled binary file. @@ -64,7 +61,7 @@ SCRIPT HACKERS: If you add any new LangString variable to the scripts you NEED to provide "translations" of it to all the .nsi files inside "installer-translations. -You can always leave the english string but you have to use all the LANG_ -for the given variable. Otherwise, if the user chooses a language that you -haven't provided a LANG_ for your variable then your string will be empty. +You can always leave the english string but you have to use all the LANG_ +for the given variable. Otherwise, if the user chooses a language that you +haven't provided a LANG_ for your variable then your string will be empty. Don't worry though, NSIS throws warnings for this when compiling the scripts. diff --git a/dist/windows/UAC.nsh b/dist/windows/UAC.nsh index b496d7011..08979aba9 100644 --- a/dist/windows/UAC.nsh +++ b/dist/windows/UAC.nsh @@ -228,6 +228,8 @@ pop $_LOGICLIB_TEMP !undef _UAC_ParseDefineFlags_orin_this !ifdef _UAC_ParseDefineFlags_orin_f1 !undef _UAC_ParseDefineFlags_orin_f1 +!endif +!ifdef _UAC_ParseDefineFlags_orin_f2 !undef _UAC_ParseDefineFlags_orin_f2 !endif !macroend diff --git a/dist/windows/nsis plugins/UAC Unicode.zip b/dist/windows/nsis plugins/UAC Unicode.zip deleted file mode 100644 index f3c6d6628..000000000 Binary files a/dist/windows/nsis plugins/UAC Unicode.zip and /dev/null differ diff --git a/dist/windows/nsis plugins/UAC.zip b/dist/windows/nsis plugins/UAC.zip index 4e205d410..66489aacd 100644 Binary files a/dist/windows/nsis plugins/UAC.zip and b/dist/windows/nsis plugins/UAC.zip differ