diff options
Diffstat (limited to 'setup')
| -rw-r--r-- | setup/fossil.iss | 49 | ||||
| -rw-r--r-- | setup/fossil.nsi | 59 |
2 files changed, 108 insertions, 0 deletions
diff --git a/setup/fossil.iss b/setup/fossil.iss new file mode 100644 index 0000000..1a5ecb7 --- /dev/null +++ b/setup/fossil.iss @@ -0,0 +1,49 @@ +; +; Copyright (c) 2014 D. Richard Hipp +; +; This program is free software; you can redistribute it and/or +; modify it under the terms of the Simplified BSD License (also +; known as the "2-Clause License" or "FreeBSD License".) +; +; This program is distributed in the hope that it will be useful, +; but without any warranty; without even the implied warranty of +; merchantability or fitness for a particular purpose. +; +; Author contact information: +; drh@hwaci.com +; http://www.hwaci.com/drh/ +; + +[Setup] +ArchitecturesAllowed=x86 x64 +AlwaysShowComponentsList=false +AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved. +AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c} +AppName=Fossil +AppPublisher=Fossil Development Team +AppPublisherURL=https://fossil-scm.org/ +AppSupportURL=https://fossil-scm.org/ +AppUpdatesURL=https://fossil-scm.org/ +AppVerName=Fossil v{#AppVersion} +AppVersion={#AppVersion} +AppComments=Simple, high-reliability, distributed software configuration management system. +AppReadmeFile=https://fossil-scm.org/home/doc/tip/www/quickstart.wiki +DefaultDirName={pf}\Fossil +DefaultGroupName=Fossil +OutputBaseFilename=fossil-win32-{#AppVersion} +OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt +SetupLogging=true +UninstallFilesDir={app}\uninstall +VersionInfoVersion={#AppVersion} + +[Components] +Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed + +[Dirs] +Name: {app}\bin + +[Files] +Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete + +[Registry] +Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue diff --git a/setup/fossil.nsi b/setup/fossil.nsi new file mode 100644 index 0000000..bd42eab --- /dev/null +++ b/setup/fossil.nsi @@ -0,0 +1,59 @@ +; example2.nsi +; +; This script is based on example1.nsi, but adds uninstall support +; and (optionally) start menu shortcuts. +; +; It will install notepad.exe into a directory that the user selects, +; + +; The name of the installer +Name "Fossil" + +; The file to write +OutFile "fossil-setup.exe" + +; The default installation directory +InstallDir $PROGRAMFILES\Fossil +; Registry key to check for directory (so if you install again, it will +; overwrite the old one automatically) +InstallDirRegKey HKLM SOFTWARE\Fossil "Install_Dir" + +; The text to prompt the user to enter a directory +ComponentText "This will install fossil on your computer." +; The text to prompt the user to enter a directory +DirText "Choose a directory to install in to:" + +; The stuff to install +Section "Fossil (required)" + ; Set output path to the installation directory. + SetOutPath $INSTDIR + ; Put file there + File "..\fossil.exe" + ; Write the installation path into the registry + WriteRegStr HKLM SOFTWARE\Fossil "Install_Dir" "$INSTDIR" + ; Write the uninstall keys for Windows + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fossil" "DisplayName" "Fossil (remove only)" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fossil" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteUninstaller "uninstall.exe" +SectionEnd + + +; uninstall stuff + +UninstallText "This will uninstall fossil. Hit next to continue." + +; special uninstall section. +Section "Uninstall" + ; remove registry keys + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fossil" + DeleteRegKey HKLM SOFTWARE\Fossil + ; remove files + Delete $INSTDIR\fossil.exe + ; MUST REMOVE UNINSTALLER, too + Delete $INSTDIR\uninstall.exe + ; remove shortcuts, if any. + RMDir "$SMPROGRAMS\Fossil" + RMDir "$INSTDIR" +SectionEnd + +; eof |
