From 1d87a046f08f22d36f36191563a0cb1a387c0874 Mon Sep 17 00:00:00 2001 From: Holger Pandel Date: Mon, 13 Jun 2016 12:37:44 +0200 Subject: [PATCH] Changed the way the setup compiler exe is searched for. --HG-- branch : feature --- src/app/valentina/valentina.pro | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/app/valentina/valentina.pro b/src/app/valentina/valentina.pro index 42cfc0fc2..d8765cfee 100644 --- a/src/app/valentina/valentina.pro +++ b/src/app/valentina/valentina.pro @@ -309,7 +309,7 @@ unix{ } # "make install" command for Windows. -# Depend on nsis script and create installer in folder "package" +# Depend on inno setup script and create installer in folder "package" win32:*-g++ { package.path = $${OUT_PWD}/../../../package/valentina package.files += \ @@ -435,13 +435,18 @@ win32:*-g++ { package_printsupport.files += $$[QT_INSTALL_PLUGINS]/printsupport/windowsprintersupport.dll INSTALLS += package_printsupport - contains(QT_ARCH, i386) { - INNO_ISCC = "C:/Program Files (x86)/Inno Setup 5/iscc.exe" - } else { - INNO_ISCC = "C:/Program Files/Inno Setup 5/iscc.exe" + SCP_FOUND = false + exists("C:/Program Files (x86)/Inno Setup 5/iscc.exe") { + INNO_ISCC = "C:/Program Files (x86)/Inno Setup 5/iscc.exe" + SCP_FOUND = true + } else { + exists(INNO_ISCC = "C:/Program Files/Inno Setup 5/iscc.exe") { + INNO_ISCC = INNO_ISCC = "C:/Program Files/Inno Setup 5/iscc.exe" + SCP_FOUND = true + } } - exists($$INNO_ISCC) { + if($$SCP_FOUND) { package_inno.path = $${OUT_PWD}/../../../package package_inno.files += \ $$PWD/../../../dist/win/inno/LICENSE_VALENTINA \