Skip to content
Snippets Groups Projects
Select Git revision
  • release/1.9.1 protected
  • pini-1.8-docker
  • pini-sync-onlypeers
  • duniter-v2s-issue-123-industrialize-releases
  • feature/build-aarch64-nodejs16
  • release/1.8 protected
  • pini-docker
  • ci_tags
  • fix/1448/1.8/txs_not_stored
  • dev default protected
  • feature/node-20
  • fix/1441/node_summary_with_storage
  • fix/1442/improve_bma_tx_history
  • feature/wotwizard-1.8
  • release/1.9 protected
  • 1.7 protected
  • feature/docker-set-latest protected
  • feature/fast-docker-build-1.8.4
  • fast-docker-build protected
  • feature/dump-distance
  • v1.8.7 protected
  • v1.8.7-rc4 protected
  • v1.8.7-rc3 protected
  • v1.8.7-rc2 protected
  • v1.8.7-rc1 protected
  • v1.8.6 protected
  • v1.7.23 protected
  • v1.8.5 protected
  • v1.8.4 protected
  • v1.8.3 protected
  • v1.8.2 protected
  • v1.8.1 protected
  • v1.8.0 protected
  • v1.8.0-rc1 protected
  • v1.8.0-beta5 protected
  • v1.8.0-beta4 protected
  • v1.8.0-beta3 protected
  • v1.8.0-beta2 protected
  • v1.8.0-beta protected
  • v1.7.21 protected
40 results

duniter.iss

Blame
  • duniter.iss 3.75 KiB
    #define MyAppName "Duniter"
    #define MyAppPublisher "Duniter team"
    #define MyAppURL "http://duniter.org"
    #define MyAppExeName "nw.exe"
    
    #if !Defined(ROOT_PATH)
    #define ROOT_PATH "."
    #endif
    
    #define MyAppSrc ROOT_PATH
    #define MyAppExe ROOT_PATH + "\nw\" + MyAppExeName
    #pragma message MyAppSrc
    
    #if !FileExists(MyAppExe)
    #error "Unable to find MyAppExe"
    #endif
    
    #define MyAppVerStr "v0.20.0a18"
    
    [Setup]
    AppName={#MyAppName}
    AppVersion={#MyAppVerStr}
    AppPublisher={#MyAppPublisher}
    AppPublisherURL={#MyAppURL}
    AppSupportURL={#MyAppURL}
    AppUpdatesURL={#MyAppURL}
    DefaultDirName={pf}\{#MyAppName}
    DisableDirPage=yes
    DefaultGroupName={#MyAppName}
    DisableProgramGroupPage=yes
    OutputDir={#ROOT_PATH}
    OutputBaseFilename={#MyAppName}
    Compression=lzma
    SolidCompression=yes
    UninstallDisplayIcon={app}\nw\{#MyAppExeName}
    ArchitecturesInstallIn64BitMode=x64
    
    [Languages]
    Name: "english"; MessagesFile: "compiler:Default.isl"
    Name: "french"; MessagesFile: "compiler:Languages\French.isl"
    
    [Tasks]
    Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
    
    [Files]
    Source: "{#MyAppSrc}\nw\*"; DestDir: "{app}\nw\"; Flags: ignoreversion recursesubdirs
    Source: "{#MyAppSrc}\sources\*"; DestDir: "{app}\sources\"; Flags: ignoreversion recursesubdirs
    
    [Icons]
    Name: "{group}\{#MyAppName}"; IconFilename: "{app}\nw\duniter.ico"; Filename: "{app}\nw\{#MyAppExeName}"
    Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
    Name: "{commondesktop}\{#MyAppName}"; IconFilename: "{app}\nw\duniter.ico"; Filename: "{app}\nw\{#MyAppExeName}"; Tasks: desktopicon
    
    [Run]
    Filename: "{app}\nw\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
    
    [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={{E01B0960-74D2-8ACD-734E-8B3CB033B07F}
    LicenseFile="{#MyAppSrc}\sources\LICENSE"
    
    [Code]
    
    //////////
    // Code taken from http://stackoverflow.com/a/2099805
    //////////
    
    /////////////////////////////////////////////////////////////////////