From e06a0f5b0ef19ad34c21e735dbfd107d982bb571 Mon Sep 17 00:00:00 2001 From: depthbomb Date: Fri, 12 Aug 2022 17:06:06 -0500 Subject: [PATCH] feat: add setup --- setup.iss | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 setup.iss diff --git a/setup.iss b/setup.iss new file mode 100644 index 0000000..ab27b5c --- /dev/null +++ b/setup.iss @@ -0,0 +1,73 @@ +#define MyAppName "SpotlightSaver" +#define MyAppDescription "Saves the pretty Windows 10 lockscreen wallpapers to your pictures folder" +#define MyAppVersion "2.1.0.0" +#define MyAppPublisher "Caprine Logic" +#define MyAppExeName "spotlight_saver.exe" +#define MyAppCopyright "Copyright (C) 2022 Caprine Logic" + +[Setup] +AppId={{D73EBD89-4171-4B7F-8911-7E3B65CDCBEA} +AppName={#MyAppName} +AppVersion={#MyAppVersion} +AppVerName={#MyAppName} {#MyAppVersion} +AppPublisher={#MyAppPublisher} +AppCopyright={#MyAppCopyright} +VersionInfoVersion={#MyAppVersion} +DefaultDirName={autopf}\{#MyAppPublisher}\{#MyAppName} +DisableDirPage=yes +DisableProgramGroupPage=yes +PrivilegesRequired=admin +AllowNoIcons=yes +OutputDir=.\build +OutputBaseFilename=ss_setup +SetupIconFile=.\icon.ico +Compression=lzma2/ultra64 +SolidCompression=yes +WizardStyle=modern +WizardResizable=no +ArchitecturesAllowed=x64 +UninstallDisplayIcon={app}\{#MyAppExeName} +UninstallDisplayName={#MyAppName} +ShowTasksTreeLines=True +AlwaysShowDirOnReadyPage=True +VersionInfoCompany={#MyAppPublisher} +VersionInfoCopyright={#MyAppCopyright} +VersionInfoProductName={#MyAppName} +VersionInfoProductVersion={#MyAppVersion} +VersionInfoProductTextVersion={#MyAppVersion} +VersionInfoDescription={#MyAppDescription} + +[Code] +function FromUpdate: Boolean; +begin + Result := ExpandConstant('{param:update|no}') = 'yes' +end; + +function FromNormal: Boolean; +begin + Result := FromUpdate = False +end; + +[Languages] +Name: "english"; MessagesFile: "compiler:Default.isl" + +[Tasks] +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; +Name: startup; Description: "Run on Startup" + +[Files] +Source: ".\dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs + +[Icons] +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon + +[Registry] +Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "NetCheck"; ValueData: "{app}\{#MyAppExeName}"; Tasks: startup; Flags: uninsdeletevalue + +[Run] +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent; Check: FromUpdate +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent unchecked; Check: FromNormal + +[UninstallDelete] +Type: dirifempty; Name: "{app}"