|
| 1 | +; TESTCinstaller1.iss is a file where I change the path to the c installer and use a very small file instead. |
| 2 | + |
| 3 | +; # TO-DO |
| 4 | +; * Code Signing Certificate, see: |
| 5 | +; * |
| 6 | +; * A message at the finishing screen guiding the new user about what to do next (open |
| 7 | +; Command Prompt and type `gcc --version`, or link to the tutorial on the website. Modify [Messages] for this. |
| 8 | +; * 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 |
| 9 | +; |
| 10 | +; |
| 11 | +; |
| 12 | + |
| 13 | +; Script generated by the Inno Setup Script Wizard. |
| 14 | +; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! |
| 15 | + |
| 16 | +#define MyAppName "Install C" |
| 17 | +#define MyAppVersion "1.0" |
| 18 | +#define MyAppPublisher "Siddharth Bhatia" |
| 19 | +#define MyAppURL "https://www.installc.org/" |
| 20 | +#define MyAppExeName "InstallC.exe" |
| 21 | + |
| 22 | +; SIDDHARTH I'm changing this to D drive just for testing purposes, change it back to C: in final. |
| 23 | +#define DefaultInstallationDir "D:\MinGW" |
| 24 | + |
| 25 | +[Setup] |
| 26 | +; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. |
| 27 | +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) |
| 28 | +AppId={{89C0F75C-42E5-4DC6-8C5E-AE6BD5BABD59} |
| 29 | +AppName={#MyAppName} |
| 30 | +AppVersion={#MyAppVersion} |
| 31 | +;AppVerName={#MyAppName} {#MyAppVersion} |
| 32 | +AppPublisher={#MyAppPublisher} |
| 33 | +AppPublisherURL={#MyAppURL} |
| 34 | +AppSupportURL={#MyAppURL} |
| 35 | +AppUpdatesURL={#MyAppURL} |
| 36 | +DefaultDirName={#DefaultInstallationDir} |
| 37 | +DisableDirPage=yes |
| 38 | +DefaultGroupName={#MyAppName} |
| 39 | +DisableProgramGroupPage=yes |
| 40 | +DisableWelcomePage=no |
| 41 | +DisableReadyPage=yes |
| 42 | +WizardSizePercent=120 |
| 43 | +WizardImageFile=c_wizardimage.bmp |
| 44 | +WizardSmallImageFile=c_wizardimagesmall.bmp |
| 45 | +WizardImageStretch=no |
| 46 | +WizardImageAlphaFormat=premultiplied |
| 47 | +; InfoBeforeFile=info.txt |
| 48 | + |
| 49 | +; Uncomment the following line to run in non administrative install mode (install for current user only.) |
| 50 | +;PrivilegesRequired=lowest |
| 51 | + |
| 52 | +;SIDDHARTH SEE BELOW LINE |
| 53 | +OutputBaseFilename=installc |
| 54 | +OutputDir=TESTOutput |
| 55 | +SetupIconFile=C_Programming_Language.ico |
| 56 | +Compression=lzma |
| 57 | +SolidCompression=yes |
| 58 | +WizardStyle=modern |
| 59 | +ChangesEnvironment=yes |
| 60 | +VersionInfoVersion=0.0.0.1 |
| 61 | +// Always double-check VersionInfoVersion when pushing a new release |
| 62 | + |
| 63 | +; This adds an uninstaller. |
| 64 | +UninstallDisplayIcon=C_Programming_Language.ico |
| 65 | +; This specifys a custom name for the program's entry in the Add/Remove Programs Control Panel applet. |
| 66 | +UninstallDisplayName="InstallC Package" |
| 67 | +UninstallDisplayName=uninstallc |
| 68 | + |
| 69 | +[Messages] |
| 70 | +; If you want to override these messages, open Default.isl to find out which variable values you need to change. |
| 71 | +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. |
| 72 | +FinishedLabelNoIcons=C has been successfully installed on your system. Learn how to use it at installc.org/learn. |
| 73 | +ClickFinish=Click Finish to exit Setup. |
| 74 | + |
| 75 | +ClickNext=Click Install to continue, or Cancel to exit Setup. |
| 76 | + |
| 77 | +[Languages] |
| 78 | +Name: "english"; MessagesFile: "compiler:Default.isl" |
| 79 | + |
| 80 | +[Files] |
| 81 | +Source: "C:\Users\bhati\Downloads\testcinstaller\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 82 | +; NOTE: Don't use "Flags: ignoreversion" on any shared system files |
| 83 | + |
| 84 | +[Registry] |
| 85 | +Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \ |
| 86 | + ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\bin"; |
| 87 | + |
| 88 | +; Adding Flags: uninsdeletevalue will remove the changes made to PATH when uninstalling |
| 89 | + |
| 90 | +[Code] |
| 91 | +// This pararaph changes the button label from 'Next' to 'Install' on the Welcome Page. |
| 92 | +procedure CurPageChanged(CurPageID: Integer); |
| 93 | +begin |
| 94 | + if CurPageID = wpWelcome then |
| 95 | + begin |
| 96 | + WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall); |
| 97 | + //WizardForm.WelcomeLabel2.Height := 500; |
| 98 | + //WizardForm.WelcomeLabel2.AutoSize := True; |
| 99 | + //WizardForm.PageDescriptionLabel.Width := WizardForm.PageDescriptionLabel.Width - ScaleY(150); |
| 100 | + end |
| 101 | + else |
| 102 | + //WizardForm.NextButton.Caption := SetupMessage(msgButtonNext); |
| 103 | +end; |
| 104 | +
|
| 105 | +
|
0 commit comments