Commit 5ba22b733f0866ba99292dc7c3fc82d7e5990b41

Authored by perry.werneck@gmail.com
1 parent 89661a9a

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 90 file "/oname=$INSTDIR\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo" ".bin\Release\@localedir@\pt_BR\LC_MESSAGES\@PACKAGE@.mo"
91 91  
92 92 # Save DataDir
93   - WriteRegStr HKLM "Software\@PACKAGE@" \
94   - "datadir" $INSTDIR
  93 + SetRegView 64
  94 + WriteRegStr HKLM "Software\@PACKAGE@" "datadir" $INSTDIR
95 95  
96 96 # define uninstaller name
  97 + SetRegView 32
  98 +
97 99 writeUninstaller $INSTDIR\uninstall.exe
98 100  
99 101 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@" \
... ... @@ -198,6 +200,10 @@ section "Uninstall"
198 200 delete "$INSTDIR\*.dll"
199 201  
200 202 # Remove registry
  203 + SetRegView 64
  204 + DeleteRegKey HKLM "Software\@PACKAGE@"
  205 +
  206 + SetRegView 32
201 207 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@PACKAGE@"
202 208 DeleteRegKey HKLM "Software\@PACKAGE@"
203 209  
... ...