mirror of
https://github.com/ciromattia/kcc
synced 2025-12-19 12:41:47 +00:00
Updated installer
This commit is contained in:
21
kcc.iss
21
kcc.iss
@@ -20,6 +20,7 @@ LicenseFile=LICENSE.txt
|
|||||||
OutputBaseFilename=KindleComicConverter_win_{#MyAppVersion}
|
OutputBaseFilename=KindleComicConverter_win_{#MyAppVersion}
|
||||||
SetupIconFile=icons\comic2ebook.ico
|
SetupIconFile=icons\comic2ebook.ico
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
|
ArchitecturesInstallIn64BitMode=x64
|
||||||
ShowLanguageDialog=no
|
ShowLanguageDialog=no
|
||||||
LanguageDetectionMethod=none
|
LanguageDetectionMethod=none
|
||||||
WizardImageFile=icons\Wizard.bmp
|
WizardImageFile=icons\Wizard.bmp
|
||||||
@@ -41,14 +42,21 @@ Name: "CBRassociation"; Description: "CBR"; GroupDescription: "File associations
|
|||||||
Name: "CB7association"; Description: "CB7"; GroupDescription: "File associations:"
|
Name: "CB7association"; Description: "CB7"; GroupDescription: "File associations:"
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "dist\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion;
|
; x64 files
|
||||||
Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion;
|
Source: "dist_64\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: Is64BitInstallMode
|
||||||
Source: "dist\*.dll"; DestDir: "{app}"; Flags: ignoreversion;
|
Source: "dist_64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
||||||
Source: "LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "dist_64\*.dll"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
||||||
|
Source: "other\vcredist_x64.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall; Check: Is64BitInstallMode
|
||||||
|
; x86 files
|
||||||
|
Source: "dist\platforms\*"; DestDir: "{app}\platforms\"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
||||||
|
Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
||||||
|
Source: "dist\*.dll"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
||||||
|
Source: "other\vcredist_x86.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall; Check: not Is64BitInstallMode
|
||||||
|
; Common files
|
||||||
|
Source: "LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion solidbreak
|
||||||
Source: "other\Additional-LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "other\Additional-LICENSE.txt"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "other\UnRAR.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "other\UnRAR.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "other\7za.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "other\7za.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "other\vcredist_x86.exe"; DestDir: "{tmp}"; Flags: ignoreversion deleteafterinstall;
|
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||||
@@ -57,7 +65,8 @@ Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks:
|
|||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall
|
||||||
Filename: "{tmp}\vcredist_x86.exe"; Parameters: "/passive /Q:a /c:""msiexec /qb /i vcredist.msi"" "; StatusMsg: "Installing Microsoft Visual C++ 2010 Redistributable Package...";
|
Filename: "{tmp}\vcredist_x64.exe"; Parameters: "/passive /Q:a /c:""msiexec /qb /i vcredist.msi"" "; StatusMsg: "Installing Microsoft Visual C++ 2010 Redistributable Package..."; Check: Is64BitInstallMode
|
||||||
|
Filename: "{tmp}\vcredist_x86.exe"; Parameters: "/passive /Q:a /c:""msiexec /qb /i vcredist.msi"" "; StatusMsg: "Installing Microsoft Visual C++ 2010 Redistributable Package..."; Check: not Is64BitInstallMode
|
||||||
|
|
||||||
[Messages]
|
[Messages]
|
||||||
WelcomeLabel1=Welcome to the KCC Setup Wizard
|
WelcomeLabel1=Welcome to the KCC Setup Wizard
|
||||||
|
|||||||
14
setup.py
14
setup.py
@@ -55,17 +55,23 @@ if platform == "darwin":
|
|||||||
elif platform == "win32":
|
elif platform == "win32":
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import py2exe
|
import py2exe
|
||||||
|
import platform
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
additional_files = [('platforms', ['C:\Python34\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll']),
|
if platform.architecture()[0] == '64bit':
|
||||||
|
suffix = '_64'
|
||||||
|
else:
|
||||||
|
suffix = ''
|
||||||
|
additional_files = [('platforms', ['C:\Python34' + suffix +
|
||||||
|
'\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll']),
|
||||||
('', ['LICENSE.txt',
|
('', ['LICENSE.txt',
|
||||||
'other\\7za.exe',
|
'other\\7za.exe',
|
||||||
'other\\UnRAR.exe',
|
'other\\UnRAR.exe',
|
||||||
'other\\Additional-LICENSE.txt',
|
'other\\Additional-LICENSE.txt',
|
||||||
'C:\Python34\Lib\site-packages\PyQt5\libGLESv2.dll',
|
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libGLESv2.dll',
|
||||||
'C:\Python34\Lib\site-packages\PyQt5\libEGL.dll'])]
|
'C:\Python34' + suffix + '\Lib\site-packages\PyQt5\libEGL.dll'])]
|
||||||
extra_options = dict(
|
extra_options = dict(
|
||||||
options={'py2exe': {"bundle_files": 1,
|
options={'py2exe': {"bundle_files": 1,
|
||||||
"dist_dir": "dist",
|
"dist_dir": "dist" + suffix,
|
||||||
"compressed": True,
|
"compressed": True,
|
||||||
"includes": ["sip"],
|
"includes": ["sip"],
|
||||||
"excludes": ["tkinter"],
|
"excludes": ["tkinter"],
|
||||||
|
|||||||
Reference in New Issue
Block a user