Commit 5ba22b733f0866ba99292dc7c3fc82d7e5990b41
1 parent
89661a9a
Exists in
master
and in
5 other branches
Corrigindo tratamento do registry no windows 64
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
pw3270-x86_64.nsi.in
@@ -90,10 +90,12 @@ SubSection "@PACKAGE@" SecMain | @@ -90,10 +90,12 @@ SubSection "@PACKAGE@" SecMain | ||
90 | file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" | 90 | file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" |
91 | 91 | ||
92 | # Save DataDir | 92 | # Save DataDir |
93 | - WriteRegStr HKLM "Software\@PACKAGE@" \ | ||
94 | - "datadir" $INSTDIR | 93 | + SetRegView 64 |
94 | + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" $INSTDIR | ||
95 | 95 | ||
96 | # define uninstaller name | 96 | # define uninstaller name |
97 | + SetRegView 32 | ||
98 | + | ||
97 | writeUninstaller $INSTDIR\uninstall.exe | 99 | writeUninstaller $INSTDIR\uninstall.exe |
98 | 100 | ||
99 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ | 101 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \ |
@@ -198,6 +200,10 @@ section "Uninstall" | @@ -198,6 +200,10 @@ section "Uninstall" | ||
198 | delete "$INSTDIR\*.dll" | 200 | delete "$INSTDIR\*.dll" |
199 | 201 | ||
200 | # Remove registry | 202 | # Remove registry |
203 | + SetRegView 64 | ||
204 | + DeleteRegKey HKLM "Software\@PACKAGE@" | ||
205 | + | ||
206 | + SetRegView 32 | ||
201 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" | 207 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" |
202 | DeleteRegKey HKLM "Software\@PACKAGE@" | 208 | DeleteRegKey HKLM "Software\@PACKAGE@" |
203 | 209 |