Correct path to NSIS on Win x64.
--HG-- branch : develop
This commit is contained in:
parent
69bb0f4d9b
commit
39c88a812e
|
@ -1,7 +1,12 @@
|
|||
rem script helps create installer
|
||||
|
||||
rem Path to NSIS
|
||||
set nsis_path="C:\Program Files\NSIS\makensisw.exe"
|
||||
rem find target architecture
|
||||
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCHITECTURE=32BIT || set ARCHITECTURE=64BIT
|
||||
|
||||
rem Path to NSIS according to architecture
|
||||
if %ARCHITECTURE%==32BIT set nsis_path="C:\Program Files\NSIS\makensisw.exe"
|
||||
if %ARCHITECTURE%==64BIT set nsis_path="C:\Program Files (x86)\NSIS\makensisw.exe"
|
||||
|
||||
if not exist %nsis_path% (
|
||||
SET /P promt="Coudn't find NSIS. Do you want to continue?[Y\N]"
|
||||
IF "%promt%" == "Y" GOTO PREPARE
|
||||
|
|
|
@ -431,7 +431,11 @@ win32:*-g++ {
|
|||
package_printsupport.files += $$[QT_INSTALL_PLUGINS]/printsupport/windowsprintersupport.dll
|
||||
INSTALLS += package_printsupport
|
||||
|
||||
contains(QT_ARCH, i386) {
|
||||
NSIS_MAKENSISW = "C:/Program Files/NSIS/makensisw.exe"
|
||||
} else {
|
||||
NSIS_MAKENSISW = "C:/Program Files (x86)/NSIS/makensisw.exe"
|
||||
}
|
||||
|
||||
exists($$NSIS_MAKENSISW) {
|
||||
package_nsis.path = $${OUT_PWD}/../../../package
|
||||
|
|
Loading…
Reference in New Issue
Block a user