70 lines
2.3 KiB
Plaintext
70 lines
2.3 KiB
Plaintext
|
; Script generated by the Inno Setup Script Wizard.
|
||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||
|
|
||
|
#define MyAppName "MsSpec"
|
||
|
#define MyAppVersion ""
|
||
|
#define MyAppPublisher "IPR"
|
||
|
#define MyAppURL "https://msspec.cnrs.fr"
|
||
|
#define MyAppExeName "msspec.exe"
|
||
|
#define MyAppInstallerName "msspec_setup"
|
||
|
|
||
|
[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={{BB2F7A31-BDDF-4D22-BDBD-C77BEB6D3780}}
|
||
|
AppName={#MyAppName}
|
||
|
;AppVersion={#MyAppVersion}
|
||
|
AppVerName={#MyAppName} {#MyAppVersion}
|
||
|
AppPublisher={#MyAppPublisher}
|
||
|
AppPublisherURL={#MyAppURL}
|
||
|
AppSupportURL={#MyAppURL}
|
||
|
AppUpdatesURL={#MyAppURL}
|
||
|
DefaultDirName={autopf}\{#MyAppName}
|
||
|
DefaultGroupName={#MyAppName}
|
||
|
DisableProgramGroupPage=yes
|
||
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
||
|
;PrivilegesRequired=lowest
|
||
|
PrivilegesRequiredOverridesAllowed=dialog
|
||
|
OutputBaseFilename={#MyAppInstallerName}
|
||
|
Compression=lzma
|
||
|
SolidCompression=yes
|
||
|
WizardStyle=modern
|
||
|
ChangesEnvironment=true
|
||
|
|
||
|
[Languages]
|
||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||
|
|
||
|
[Files]
|
||
|
Source: ".\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||
|
;Source: "D:\Home\stricot\Documents\WindowsPowerShell\Scripts\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||
|
|
||
|
;[Icons]
|
||
|
;Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||
|
|
||
|
;[Run]
|
||
|
;Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||
|
|
||
|
[Tasks]
|
||
|
Name: modifypath; Description: Add application directory to your environmental path;
|
||
|
;Flags: unchecked
|
||
|
|
||
|
[UninstallRun]
|
||
|
Filename: "{app}\{#MyAppExeName}"; Parameters: "-u";
|
||
|
|
||
|
[Messages]
|
||
|
FinishedLabelNoIcons=Setup has finished installing [name] on your computer. To launch MsSpec, open a terminal window and enter 'msspec'.
|
||
|
|
||
|
[Code]
|
||
|
const
|
||
|
ModPathName = 'modifypath';
|
||
|
ModPathType = 'user';
|
||
|
|
||
|
function ModPathDir(): TArrayOfString;
|
||
|
begin
|
||
|
setArrayLength(Result, 1)
|
||
|
Result[0] := ExpandConstant('{app}');
|
||
|
end;
|
||
|
#include "modpath.iss"
|
||
|
|