;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"
WriteRegExpandStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "imagemagick" "$INSTDIR\wedding\lib\imagemagick"
;refresh env
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment"