Fixes and improvements to NSIS installer.
This commit is contained in:
parent
6953c2e691
commit
d623b069b5
3 changed files with 10 additions and 10 deletions
|
|
@ -100,8 +100,8 @@ BinPath: r"bin;dist\mingw\bin;dist"
|
||||||
; Section | dir | zipFile | size hint (in KB) | url | exe start menu entry
|
; Section | dir | zipFile | size hint (in KB) | url | exe start menu entry
|
||||||
Download: r"Documentation|doc|docs.zip|13824|http://nim-lang.org/download/docs-${version}.zip|overview.html"
|
Download: r"Documentation|doc|docs.zip|13824|http://nim-lang.org/download/docs-${version}.zip|overview.html"
|
||||||
Download: r"C Compiler (MingW)|dist|mingw.zip|82944|http://nim-lang.org/download/${mingw}.zip"
|
Download: r"C Compiler (MingW)|dist|mingw.zip|82944|http://nim-lang.org/download/${mingw}.zip"
|
||||||
Download: r"Support DLL's|bin|nim_dlls.zip|479|http://nim-lang.org/download/dlls.zip"
|
Download: r"Support DLLs|bin|nim_dlls.zip|479|http://nim-lang.org/download/dlls.zip"
|
||||||
Download: r"Aporia IDE|dist|aporia.zip|97997|http://nim-lang.org/download/aporia-0.4.0.zip|aporia-0.4.0\bin\aporia.exe"
|
Download: r"Aporia Text Editor|dist|aporia.zip|97997|http://nim-lang.org/download/aporia-0.4.0.zip|aporia-0.4.0\bin\aporia.exe"
|
||||||
; for now only NSIS supports optional downloads
|
; for now only NSIS supports optional downloads
|
||||||
|
|
||||||
[UnixBin]
|
[UnixBin]
|
||||||
|
|
|
||||||
|
|
@ -35,16 +35,16 @@
|
||||||
|
|
||||||
; Default installation folder
|
; Default installation folder
|
||||||
; This is changed later (in .onInit) to the root directory, if possible.
|
; This is changed later (in .onInit) to the root directory, if possible.
|
||||||
InstallDir "$PROGRAMFILES?{when sizeof(int) == 8: "64" else: ""}\?{c.name}-?{c.version}"
|
InstallDir "$PROGRAMFILES?{when sizeof(int) == 8: "64" else: ""}\?{c.name}-?{c.version}\"
|
||||||
|
|
||||||
; Get installation folder from registry if available
|
; Get installation folder from registry if available
|
||||||
InstallDirRegKey HKCU "Software\c.name\c.version" ""
|
InstallDirRegKey HKCU "Software\c.name\c.version" ""
|
||||||
|
|
||||||
; Request user level application privileges.
|
; Request admin level application privileges.
|
||||||
RequestExecutionLevel user
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
; Allow installation to the root drive directory.
|
; Allow installation to the root drive directory.
|
||||||
AllowRootDirInstall true
|
AllowRootDirInstall false
|
||||||
|
|
||||||
; Maximum compression!
|
; Maximum compression!
|
||||||
SetCompressor /SOLID /FINAL lzma
|
SetCompressor /SOLID /FINAL lzma
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$INSTDIR\dist\mingw"
|
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$INSTDIR\dist\mingw"
|
||||||
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$INSTDIR\dist\mingw\bin"
|
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$INSTDIR\dist\mingw\bin"
|
||||||
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$INSTDIR\bin"
|
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$INSTDIR\bin"
|
||||||
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$INSTDIR\dist\babel"
|
${EnvVarUpdate} $R0 "PATH" "A" "HKCU" "$PROFILE\.nimble\bin"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
; The downloadable sections. These sections are automatically generated by
|
; The downloadable sections. These sections are automatically generated by
|
||||||
|
|
@ -246,7 +246,7 @@
|
||||||
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$INSTDIR\dist\mingw"
|
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$INSTDIR\dist\mingw"
|
||||||
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$INSTDIR\dist\mingw\bin"
|
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$INSTDIR\dist\mingw\bin"
|
||||||
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$INSTDIR\bin"
|
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$INSTDIR\bin"
|
||||||
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$INSTDIR\dist\babel"
|
${un.EnvVarUpdate} $R0 "PATH" "R" "HKCU" "$PROFILE\.nimble\bin"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
@ -254,5 +254,5 @@
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
${GetRoot} "$EXEDIR" $R0
|
${GetRoot} "$EXEDIR" $R0
|
||||||
strCpy $INSTDIR "$R0\?{c.name}"
|
;strCpy $INSTDIR "$R0\?{c.name}"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Version 0.15.0 released
|
||||||
|
|
||||||
.. container:: metadata
|
.. container:: metadata
|
||||||
|
|
||||||
Posted by Dominik Picheta on 17/09/2016
|
Posted by Dominik Picheta and Andreas Rumpf on 17/09/2016
|
||||||
|
|
||||||
Some text here.
|
Some text here.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue