Some changes in the InnoSetup mechanism (see issue 1904, comment 13)
This commit is contained in:
parent
1b98fe4d18
commit
3a65e6d016
@ -34,12 +34,16 @@ if (WIN32)
|
||||
set(ARCHITECTURE_ALLOWED "x86 x64 ia64")
|
||||
# installing in 32 bits mode even on 64 bits OS and architecture
|
||||
set(INSTALL_MODE "")
|
||||
# set part of the output archive name
|
||||
set(SYSTEM_NAME "WinXP")
|
||||
elseif (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(BUILD_BIT_DEPTH 64)
|
||||
# Restricting the 64 bits builds to 64 bits systems only
|
||||
set(ARCHITECTURE_ALLOWED "x64 ia64")
|
||||
# installing in 64 bits mode for all 64 bits processors, even for itanium architecture
|
||||
set(INSTALL_MODE "x64 ia64")
|
||||
# set part of the output archive name
|
||||
set(SYSTEM_NAME "WinVista")
|
||||
endif (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/win/InnoSetup/WindowsInnoSetup.iss.in" "${CMAKE_CURRENT_BINARY_DIR}/WindowsInnoSetup.iss")
|
||||
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/WindowsInnoSetup.iss" DESTINATION ${BINDIR})
|
||||
|
@ -33,6 +33,7 @@
|
||||
#define MyBitDepth "${BUILD_BIT_DEPTH}"
|
||||
#define MyTargetArchitecture "${ARCHITECTURE_ALLOWED}"
|
||||
#define MyInstallMode "${INSTALL_MODE}"
|
||||
#define MySystemName "${SYSTEM_NAME}"
|
||||
|
||||
[Setup]
|
||||
; NOTE: The value of AppId uniquely identifies this application.
|
||||
@ -47,12 +48,12 @@ AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
DefaultDirName={pf}\{#MyAppName} {#MyAppFullVersion}
|
||||
DefaultDirName={pf}\{#MyAppName}-{#MyAppFullVersion}
|
||||
DefaultGroupName={#MyAppName} {#MyAppFullVersion}
|
||||
AllowNoIcons=yes
|
||||
LicenseFile={#MyBuildBasePath}\LICENSE.txt
|
||||
OutputDir={#MyBuildBasePath}\..\
|
||||
OutputBaseFilename={#MyAppName}{#MyAppVersion}-Win{#MyBitDepth}
|
||||
OutputBaseFilename={#MyAppName}_{#MySystemName}_{#MyBitDepth}_{#MyAppFullVersion}
|
||||
SetupIconFile={#MySourceBasePath}\rtgui\RT.ico
|
||||
WizardImageFile={#MySourceBasePath}\rtdata\win\InnoSetup\installerStrip.bmp
|
||||
WizardImageBackColor=$2A2A2A
|
||||
@ -60,6 +61,7 @@ Compression=lzma
|
||||
SolidCompression=yes
|
||||
ArchitecturesAllowed={#MyTargetArchitecture}
|
||||
ArchitecturesInstallIn64BitMode={#MyInstallMode}
|
||||
PrivilegesRequired=none
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
Loading…
x
Reference in New Issue
Block a user