snow-fort-windows-installer/install.nsi

21 lines
566 B
Plaintext

OutFile "setup_snow.exe"
InstallDir "$PROGRAMFILES64"
Section
SetOutPath "$INSTDIR"
RMDir "$INSTDIR"
File /r "snow"
Push "$INSTDIR"
!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
SectionEnd