Skip to content

Commit

Permalink
InooSetup script uses constants similar to main script
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsmith1968 committed Dec 7, 2019
1 parent 9b1fb22 commit 1cc3ee9
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions Setup/WindowMenu_Setup.iss
Original file line number Diff line number Diff line change
@@ -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 ?"

0 comments on commit 1cc3ee9

Please sign in to comment.