-
Notifications
You must be signed in to change notification settings - Fork 103
/
inno_install_script_32bit.iss
56 lines (49 loc) · 2.45 KB
/
inno_install_script_32bit.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
; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[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.)
AppVersion= {#GetStringFileInfo("instat\bin\Release\instat.exe", "FileVersion")}
AppId={{979E51D8-9BC4-418F-8D4D-9B44FEA869A6-{#SetupSetting("AppVersion")}}
AppName=R-Instat
AppVerName ={code:GetShortAppVersion|{#SetupSetting("AppVersion")}}
AppPublisher=African Maths Initiative
AppPublisherURL=http://r-instat.org/
AppSupportURL=http://r-instat.org/
AppUpdatesURL=http://r-instat.org/
DefaultDirName={autopf}\R-Instat\{#SetupSetting("AppVerName")}\
DefaultGroupName=R-Instat
AllowNoIcons=yes
OutputBaseFilename=R-Instat_{#SetupSetting("AppVersion")}_Installer_32
SetupIconFile=.\instat\Resources\rinstat_icon_Hih_icon.ico
UninstallDisplayIcon=.\instat\Resources\rinstat_icon_Hih_icon.ico
Compression=lzma
SolidCompression=yes
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; OnlyBelowVersion: 0
[Files]
Source: "instat\bin\Release\instat.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "instat\bin\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
;{#SetupSetting("AppVersion")}
Name: "{group}\R-Instat {#SetupSetting("AppVersion")}"; Filename: "{app}\instat.exe"
Name: "{group}\{cm:UninstallProgram,R-Instat}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\R-Instat {#SetupSetting("AppVersion")}"; Filename: "{app}\instat.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\R-Instat {#SetupSetting("AppVersion")}"; Filename: "{app}\instat.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\instat.exe"; Description: "{cm:LaunchProgram,R-Instat}"; Flags: nowait postinstall skipifsilent
[Code]
function GetShortAppVersion(Param: String): String;
var
major,minor,revision:String;
begin
major := Copy(Param,0,Pos('.',Param));
Delete(Param,1,Pos('.',Param));
minor := Copy(Param,0,Pos('.',Param));
Delete(Param,1,Pos('.',Param));
revision := Copy(Param,0,Pos('.',Param)-1);
Result := major + minor + revision;
end;