-
Notifications
You must be signed in to change notification settings - Fork 1
/
TESTCinstaller1.iss
105 lines (88 loc) · 4.21 KB
/
TESTCinstaller1.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
; TESTCinstaller1.iss is a file where I change the path to the c installer and use a very small file instead.
; # TO-DO
; * Code Signing Certificate, see:
; *
; * A message at the finishing screen guiding the new user about what to do next (open
; Command Prompt and type `gcc --version`, or link to the tutorial on the website. Modify [Messages] for this.
; * Implement a Don't Install If Application Is Already Installed On Machine from here: https://stackoverflow.com/questions/26333869/inno-setup-how-to-display-notifying-message-while-installing-if-application-is
;
;
;
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Install C"
#define MyAppVersion "1.0"
#define MyAppPublisher "Siddharth Bhatia"
#define MyAppURL "https://www.installc.org/"
#define MyAppExeName "InstallC.exe"
; SIDDHARTH I'm changing this to D drive just for testing purposes, change it back to C: in final.
#define DefaultInstallationDir "D:\MinGW"
[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={{89C0F75C-42E5-4DC6-8C5E-AE6BD5BABD59}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={#DefaultInstallationDir}
DisableDirPage=yes
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
DisableWelcomePage=no
DisableReadyPage=yes
WizardSizePercent=120
WizardImageFile=c_wizardimage.bmp
WizardSmallImageFile=c_wizardimagesmall.bmp
WizardImageStretch=no
WizardImageAlphaFormat=premultiplied
; InfoBeforeFile=info.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
;SIDDHARTH SEE BELOW LINE
OutputBaseFilename=installc
OutputDir=TESTOutput
SetupIconFile=C_Programming_Language.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
ChangesEnvironment=yes
VersionInfoVersion=0.0.0.1
// Always double-check VersionInfoVersion when pushing a new release
; This adds an uninstaller.
UninstallDisplayIcon=C_Programming_Language.ico
; This specifys a custom name for the program's entry in the Add/Remove Programs Control Panel applet.
UninstallDisplayName="InstallC Package"
UninstallDisplayName=uninstallc
[Messages]
; If you want to override these messages, open Default.isl to find out which variable values you need to change.
WelcomeLabel2=This setup will install the following software on your computer:%n%nGCC 13.2.0, GDB 13.2, LLVM/Clang/LLD/LLDB 16.0.6, GNU Binutils 2.41, GNU Make 4.4.1, PExports 0.47, dos2unix 7.5.0, Yasm 1.3.0, NASM 2.16.01, JWasm 2.12pre, ccache version 4.8.2, CMake 3.27.2, ninja 1.11.1.git.kitware.jobserver-1, Doxygen 1.9.7%n%nAt least 1 GB of free disk space is required.
FinishedLabelNoIcons=C has been successfully installed on your system. Learn how to use it at installc.org/learn.
ClickFinish=Click Finish to exit Setup.
ClickNext=Click Install to continue, or Cancel to exit Setup.
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "C:\Users\bhati\Downloads\testcinstaller\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Registry]
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\bin";
; Adding Flags: uninsdeletevalue will remove the changes made to PATH when uninstalling
[Code]
// This pararaph changes the button label from 'Next' to 'Install' on the Welcome Page.
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpWelcome then
begin
WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall);
//WizardForm.WelcomeLabel2.Height := 500;
//WizardForm.WelcomeLabel2.AutoSize := True;
//WizardForm.PageDescriptionLabel.Width := WizardForm.PageDescriptionLabel.Width - ScaleY(150);
end
else
//WizardForm.NextButton.Caption := SetupMessage(msgButtonNext);
end;