From 1cc3ee9bb6b885342eb1b9a95abf8d50902f0c05 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Sat, 7 Dec 2019 19:20:37 +0000 Subject: [PATCH] InooSetup script uses constants similar to main script --- Setup/WindowMenu_Setup.iss | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/Setup/WindowMenu_Setup.iss b/Setup/WindowMenu_Setup.iss index b4d5f0a..f8974c3 100644 --- a/Setup/WindowMenu_Setup.iss +++ b/Setup/WindowMenu_Setup.iss @@ -1,19 +1,27 @@ +#define AppName "WindowExtensions" +#define AppTitle "Window Extensions" +#define AppVersion "1.4.2" + [Setup] -AppName=WindowMenu -AppVersion=1.0 -AppCopyright=Copyright © 2016 DNX Solutions Ltd -DefaultDirName={pf}\DNXSolutions\WindowMenu +AppName={#AppName} +AppVersion={#AppVersion} +AppCopyright=Copyright © 2019 DNX Solutions Ltd +DefaultDirName={commonpf}\DNXSolutions\{#AppName} OutputDir=. -OutputBaseFilename=WindowMenu_Setup +OutputBaseFilename={#AppName}_Install_v{#AppVersion} AppendDefaultDirName=False DisableProgramGroupPage=yes +PrivilegesRequired=lowest [Files] -Source: "..\WindowMenu.exe"; DestDir: "{app}" -Source: "..\WindowMenu.icl"; DestDir: "{app}" +Source: "..\{#AppName}.exe"; DestDir: "{app}" +Source: "..\{#AppName}.icl"; DestDir: "{app}" [Icons] -Name: "{userstartup}\WindowMenu"; Filename: "{app}\WindowMenu.exe"; Flags: excludefromshowinnewinstall; Tasks: startup +Name: "{userstartup}\{#AppTitle}"; Filename: "{app}\{#AppName}.exe"; Flags: excludefromshowinnewinstall; Tasks: startup [Tasks] -Name: startup; Description: "Automatically start on login"; GroupDescription: "{cm:AdditionalIcons}" +Name: "startup"; Description: "Automatically start on login"; GroupDescription: "{cm:AdditionalIcons}" + +[Run] +Filename: "{app}\{#AppName}.exe"; Flags: postinstall skipifdoesntexist nowait runascurrentuser; Description: "Run {#AppTitle} now ?"