-
Notifications
You must be signed in to change notification settings - Fork 8
/
enhc_inst.iss
59 lines (50 loc) · 2.04 KB
/
enhc_inst.iss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Graveflo's Enhancement Tool"
#define MyAppVersion "|appver|"
#define MyAppPublisher "R4M Woftware"
#define MyAppURL "https://github.com/ILikesCaviar/"
#define MyAppExeName "|scriptname|.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{BB21FAC5-9DE4-4912-8740-DAA6AB8436A8}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={commonappdata}\{#MyAppName}
DisableProgramGroupPage=yes
OutputDir=|outdir|
LicenseFile=|license|
OutputBaseFilename=|exename|
Compression=lzma
SolidCompression=yes
UninstallDisplayIcon={app}\|modname|\favicon.ico
SetupIconFile=|favicon|
DisableWelcomePage=no
UsePreviousAppDir=no
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
|INSTALLDEL|
[Files]
Source: "|start_ui|\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs; BeforeInstall: ckset
[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; AppUserModelID: "RAM.EnhOpt.Grave.1"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon; AppUserModelID: "RAM.EnhOpt.Grave.1"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
procedure ckset();
begin
if FileExists(ExpandConstant('{app}\python27.dll')) then begin
MsgBox('You have to uninstall the previous version due to code switching to python 3. Run again after old version is removed.', mbError, MB_OK);
WizardForm.Close;
end;
end;