Skip to content

Commit

Permalink
Merge pull request #91 from phelixnmc/windows_installer
Browse files Browse the repository at this point in the history
Windows Installer Script (Innosetup)
  • Loading branch information
phelixbtc committed Jun 13, 2014
2 parents 5137d2b + d524b36 commit 4a32578
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
installer
45 changes: 45 additions & 0 deletions contrib/setup_script.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
; also in the code
#define version "0.x.xx"

#define sourceFolder "..\release"
#define progname "Namecoin"

[Messages]
WelcomeLabel2=%nThis will install [name/ver] on your computer.%n
ClickFinish=ATTENTION: Please note it may take a couple of hours for the initial blockchain download to complete.%n%nClick Finish to exit Setup.
ConfirmUninstall=Are you sure you want to completely remove %1 and all of its components?%n%nThis will leave blockchain data and your wallet.dat file alone.
UninstalledAll=%1 was successfully removed from your computer.%n%nThere might still be blockchain data and your wallet.dat file in %APPDATA%\Namecoin

[Setup]
AppVerName={#progname} {#version}
AppName={#progname}
DefaultDirName={pf}\{#progname}
DefaultGroupName={#progname}
UninstallDisplayIcon={uninstallexe}
Compression=lzma2/ultra
SolidCompression=yes
OutputDir=.\installer
OutputBaseFilename={#progname}_v{#version}_setup

[Files]
Source: "{#sourceFolder}\namecoin-qt.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#sourceFolder}\..\src\namecoind.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#sourceFolder}\*.dll"; DestDir: "{app}"; Flags: ignoreversion

[Tasks]
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"
Name: desktopicon\common; Description: "For all users"; GroupDescription: "Additional icons:"; Flags: exclusive
Name: desktopicon\user; Description: "For the current user only"; GroupDescription: "Additional icons:"; Flags: exclusive unchecked
Name: quicklaunchicon; Description: "Create a &Quick Launch icon"; GroupDescription: "Additional icons:"; Flags: unchecked

[Icons]
Name: "{group}\{#progname}"; Filename: "{app}\namecoin-qt.exe"
Name: "{commondesktop}\Namecoin-Qt"; Filename: "{app}\namecoin-qt.exe"; Tasks: desktopicon\common
Name: "{userdesktop}\Namecoin-Qt"; Filename: "{app}\namecoin-qt.exe"; Tasks: desktopicon\user
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Namecoin-Qt"; Filename: "{app}\namecoin-qt.exe"; Tasks: quicklaunchicon
Name: "{group}\uninstall"; Filename: "{uninstallexe}";

[Run]
; info time blockchain download
Filename: "{app}\namecoin-qt.exe"; Description: "Launch application"; Flags: postinstall skipifsilent nowait

0 comments on commit 4a32578

Please sign in to comment.