NSIS 设置系统变量

;set env
  WriteRegExpandStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "imagemagick" "$INSTDIR\wedding\lib\imagemagick"
  ;refresh env
  SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment"

你可能感兴趣的:(变量)