1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-17 22:24:49 +00:00

Hold off on adding file associations on windows.

This commit is contained in:
Calvin Rose 2019-07-27 11:34:47 -05:00
parent 3c133bd677
commit 166862ecff
2 changed files with 0 additions and 8 deletions

View File

@ -2,7 +2,6 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## Unreleased ## Unreleased
- Add file associations on windows with default install.
- Add `(dyn :executable)` at top level to get what used to be - Add `(dyn :executable)` at top level to get what used to be
`(process/args 0)`. `(process/args 0)`.
- Add `:linux` to platforms returned by `(os/which)`. - Add `:linux` to platforms returned by `(os/which)`.

View File

@ -18,7 +18,6 @@ VIFileVersion "${PRODUCT_VERSION}"
!include "MultiUser.nsh" !include "MultiUser.nsh"
!include "MUI2.nsh" !include "MUI2.nsh"
!include ".\tools\EnvVarUpdate.nsh" !include ".\tools\EnvVarUpdate.nsh"
!include ".\tools\FileAssociation.nsh"
!include "LogicLib.nsh" !include "LogicLib.nsh"
# Basics # Basics
@ -118,9 +117,6 @@ section "Janet" BfWSection
!insertmacro WriteEnv JANET_LIBPATH "$INSTDIR\C" !insertmacro WriteEnv JANET_LIBPATH "$INSTDIR\C"
!insertmacro WriteEnv JANET_BINPATH "$INSTDIR\bin" !insertmacro WriteEnv JANET_BINPATH "$INSTDIR\bin"
# File Association
${registerExtension} "$INSTDIR\bin\janet.exe" ".janet" "Janet Source File"
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
# Update path # Update path
@ -175,9 +171,6 @@ section "uninstall"
${un.EnvVarUpdate} $0 "PATH" "R" "HKCU" "$INSTDIR\bin" ; Remove ${un.EnvVarUpdate} $0 "PATH" "R" "HKCU" "$INSTDIR\bin" ; Remove
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\bin" ; Remove ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\bin" ; Remove
# Unregister file assocations
${unregisterExtension} ".janet" "Janet Source File"
# make sure windows knows about the change # make sure windows knows about the change
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000