Browse Source

properly cleanup registry entries when uninstalling on 64-bit Windows

Ashish Kulkarni 10 years ago
parent
commit
8c976561d5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      wkhtmltox.nsi

+ 3 - 0
wkhtmltox.nsi

@@ -113,6 +113,9 @@ skip_vcruntime:
 SectionEnd
 
 Section "Uninstall"
+  ${If} ${RunningX64}
+    SetRegView 64
+  ${EndIf}
   Call un.DeleteFiles
   DeleteRegKey HKLM "Software\wkhtmltopdf"
   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wkhtmltopdf"