Commit 1128a9e438e77245f5d1eb9a56c0b1b7f4f2fad3

Authored by Perry Werneck
1 parent 0e00d9a1
Exists in v5.2

Adding windows message for updated environment.

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
win/pw3270.nsi.in
... ... @@ -236,7 +236,9 @@ SubSection "@PRODUCT_NAME@" SecMain
236 236 file "/oname=$INSTDIR\sdk\def\libhllapi.def" "@PRODUCT_NAME@\def\libhllapi.def"
237 237 file "/oname=$INSTDIR\sdk\lib\libhllapi.dll.a" "libhllapi.dll.a"
238 238  
  239 + SetRegView @WINARCH@
239 240 WriteRegExpandStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PW3270_SDK_PATH" "$INSTDIR\sdk"
  241 + SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
240 242  
241 243 SectionEnd
242 244 !endif
... ... @@ -273,6 +275,7 @@ Section "Uninstall"
273 275 RMDir /r "$INSTDIR\sdk"
274 276 RMDir /r "$INSTDIR\gtk2-runtime"
275 277  
  278 +
276 279 # Delete all files
277 280 delete "$INSTDIR\*.dll"
278 281  
... ... @@ -283,6 +286,8 @@ Section "Uninstall"
283 286  
284 287 SetRegView @WINARCH@
285 288 DeleteRegKey HKLM "Software\@PRODUCT_NAME@"
  289 + DeleteRegValue HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PW3270_SDK_PATH"
  290 + SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
286 291  
287 292 # Delete System libraries
288 293 delete $SYSDIR\libipc3270.dll
... ...