2024-10-12 00:42:33 -04:00
|
|
|
|
|
|
|
|
2024-10-11 03:48:47 -04:00
|
|
|
OutFile "setup_snow.exe"
|
|
|
|
InstallDir "$PROGRAMFILES64"
|
|
|
|
|
|
|
|
Section
|
|
|
|
SetOutPath "$INSTDIR"
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
File /r "snow"
|
|
|
|
Push "$INSTDIR"
|
2024-10-12 00:42:33 -04:00
|
|
|
|
|
|
|
!include "winmessages.nsh"
|
|
|
|
!define env_hklm 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'
|
|
|
|
!define env_hkcu 'HKCU "Environment"'
|
|
|
|
|
|
|
|
WriteRegExpandStr ${env_hklm} SNOW_LIBRARY_PATH "$PROGRAMFILES64/snow"
|
|
|
|
WriteRegExpandStr ${env_hkcu} SNOW_LIBRARY_PATH "$PROGRAMFILES64/snow"
|
|
|
|
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
|
2024-10-11 03:48:47 -04:00
|
|
|
SectionEnd
|
|
|
|
|