Fossil SCM
Initial NSIS script for creating installer on Win32
Commit
76bd88c262cee72de849c47072897eeb616c0910
Parent
7c0bd3ee08da67d…
1 file changed
+47
+47
| --- a/fossil.nsi | ||
| +++ b/fossil.nsi | ||
| @@ -0,0 +1,47 @@ | ||
| 1 | +; example2.nsi | |
| 2 | +; | |
| 3 | +; This script is based on example1.nsi, but adds uninstall support | |
| 4 | +; and (option | |
| 5 | +; | |
| 6 | +ly) start menu shortcuts. | |
| 7 | +; | |
| 8 | +; It will install notepad.exe into a direc | |
| 9 | +; | |
| 10 | + | |
| 11 | +; The name of the installer | |
| 12 | +Name "Fossil" | |
| 13 | + | |
| 14 | +; The file to write | |
| 15 | +OutFile "fossil-setup-7c0bd3ee08.exe" | |
| 16 | + | |
| 17 | +; The def | |
| 18 | +InstallDir $PROGRAMFILES\Fossil | |
| 19 | +allDir $PROGRAMFILES\Fossil | |
| 20 | +; Registry key to check for directory (so if | |
| 21 | + you install | |
| 22 | +InstallDirRegKey HKLM SO | |
| 23 | + | |
| 24 | +; The text to prompt th | |
| 25 | +e2.nsi | |
| 26 | +; | |
| 27 | +; This script is based ; | |
| 28 | +; The text to prompt th | |
| 29 | +e user to enter a di | |
| 30 | + | |
| 31 | +; The stuff to install | |
| 32 | +o:" | |
| 33 | + | |
| 34 | +; The stuff to install | |
| 35 | + | |
| 36 | + ; Set output path to | |
| 37 | + SetOutPath $INSTDIR | |
| 38 | + ; Put file there | |
| 39 | + File ".\build\fossil.exe" | |
| 40 | + ; Write the installa | |
| 41 | + WriteRegStr HKLM lly) | |
| 42 | +InstallDirRegKey HKLM SO "$INSTDIR" | |
| 43 | +il "Install_Di | |
| 44 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fossil" "Version\Uninstall\Fossil" "DisplayN | |
| 45 | + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fossil" "UninstallString" | |
| 46 | + WriteUninstaller "uninstall.exe" | |
| 47 | +SectionEn |
| --- a/fossil.nsi | |
| +++ b/fossil.nsi | |
| @@ -0,0 +1,47 @@ | |
| --- a/fossil.nsi | |
| +++ b/fossil.nsi | |
| @@ -0,0 +1,47 @@ | |
| 1 | ; example2.nsi |
| 2 | ; |
| 3 | ; This script is based on example1.nsi, but adds uninstall support |
| 4 | ; and (option |
| 5 | ; |
| 6 | ly) start menu shortcuts. |
| 7 | ; |
| 8 | ; It will install notepad.exe into a direc |
| 9 | ; |
| 10 | |
| 11 | ; The name of the installer |
| 12 | Name "Fossil" |
| 13 | |
| 14 | ; The file to write |
| 15 | OutFile "fossil-setup-7c0bd3ee08.exe" |
| 16 | |
| 17 | ; The def |
| 18 | InstallDir $PROGRAMFILES\Fossil |
| 19 | allDir $PROGRAMFILES\Fossil |
| 20 | ; Registry key to check for directory (so if |
| 21 | you install |
| 22 | InstallDirRegKey HKLM SO |
| 23 | |
| 24 | ; The text to prompt th |
| 25 | e2.nsi |
| 26 | ; |
| 27 | ; This script is based ; |
| 28 | ; The text to prompt th |
| 29 | e user to enter a di |
| 30 | |
| 31 | ; The stuff to install |
| 32 | o:" |
| 33 | |
| 34 | ; The stuff to install |
| 35 | |
| 36 | ; Set output path to |
| 37 | SetOutPath $INSTDIR |
| 38 | ; Put file there |
| 39 | File ".\build\fossil.exe" |
| 40 | ; Write the installa |
| 41 | WriteRegStr HKLM lly) |
| 42 | InstallDirRegKey HKLM SO "$INSTDIR" |
| 43 | il "Install_Di |
| 44 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fossil" "Version\Uninstall\Fossil" "DisplayN |
| 45 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fossil" "UninstallString" |
| 46 | WriteUninstaller "uninstall.exe" |
| 47 | SectionEn |