Commit 1128a9e438e77245f5d1eb9a56c0b1b7f4f2fad3
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,7 +236,9 @@ SubSection "@PRODUCT_NAME@" SecMain | ||
| 236 | file "/oname=$INSTDIR\sdk\def\libhllapi.def" "@PRODUCT_NAME@\def\libhllapi.def" | 236 | file "/oname=$INSTDIR\sdk\def\libhllapi.def" "@PRODUCT_NAME@\def\libhllapi.def" |
| 237 | file "/oname=$INSTDIR\sdk\lib\libhllapi.dll.a" "libhllapi.dll.a" | 237 | file "/oname=$INSTDIR\sdk\lib\libhllapi.dll.a" "libhllapi.dll.a" |
| 238 | 238 | ||
| 239 | + SetRegView @WINARCH@ | ||
| 239 | WriteRegExpandStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PW3270_SDK_PATH" "$INSTDIR\sdk" | 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 | SectionEnd | 243 | SectionEnd |
| 242 | !endif | 244 | !endif |
| @@ -273,6 +275,7 @@ Section "Uninstall" | @@ -273,6 +275,7 @@ Section "Uninstall" | ||
| 273 | RMDir /r "$INSTDIR\sdk" | 275 | RMDir /r "$INSTDIR\sdk" |
| 274 | RMDir /r "$INSTDIR\gtk2-runtime" | 276 | RMDir /r "$INSTDIR\gtk2-runtime" |
| 275 | 277 | ||
| 278 | + | ||
| 276 | # Delete all files | 279 | # Delete all files |
| 277 | delete "$INSTDIR\*.dll" | 280 | delete "$INSTDIR\*.dll" |
| 278 | 281 | ||
| @@ -283,6 +286,8 @@ Section "Uninstall" | @@ -283,6 +286,8 @@ Section "Uninstall" | ||
| 283 | 286 | ||
| 284 | SetRegView @WINARCH@ | 287 | SetRegView @WINARCH@ |
| 285 | DeleteRegKey HKLM "Software\@PRODUCT_NAME@" | 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 | # Delete System libraries | 292 | # Delete System libraries |
| 288 | delete $SYSDIR\libipc3270.dll | 293 | delete $SYSDIR\libipc3270.dll |