-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinnosetup.iss
67 lines (56 loc) · 2.31 KB
/
innosetup.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
60
61
62
63
64
65
66
67
; This is the generic InnoSetup script used to generate Windows Installer files
; for WALeadApp
;
; To use this script you should run it via ISCC.exe which included when installing
; InnoSetup suite.
;
; Required parameters
;
#define MyAppName "WALeadApp"
#define MyAppVersion "2.0.2021.11.22"
#define MyAppPublisher "Aladeve Inovasi Desa"
#define AppSourceDir "Z:\work\WALeadApp"
#define AppLogoPath AppSourceDir + "\WALeadApp\assets\waleadapp.ico"
#define MyDateTimeString GetDateTimeString('yyyymmdd_hhnn', '-', ':');
#define AppInstallerName MyAppName + "-" + MyAppVersion + "-setup-" + MyDateTimeString
#define MyAppURL "http://aladeve.com"
#define MyAppExeName MyAppName + ".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.)
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={code:GetProgramFiles}\{#MyAppName}
DisableProgramGroupPage=yes
Compression=lzma
SolidCompression=yes
OutputBaseFilename={#AppInstallerName}
SetupIconFile={#AppLogoPath}
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "{#AppSourceDir}\{#MyAppName}.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#AppSourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs ; Permissions: everyone-full
[Dirs]
Name: "{app}\WALeadApp"; Permissions: everyone-full
Name: "{localappdata}\WALeadApp"; Permissions: everyone-full
[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
; fitur "Launch after install"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
; ref : https://stackoverflow.com/a/38452667/2496217
[Code]
function GetProgramFiles(Param: string): string;
begin
if IsWin64 then Result := ExpandConstant('{pf64}')
else Result := ExpandConstant('{pf32}')
end;