Guest User

Untitled

a guest
Jun 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Function .onInit
  2.  
  3. Exec $INSTDIRuninst.exe
  4.  
  5. FunctionEnd
  6.  
  7. ; The "" makes the section hidden.
  8. Section "" SecUninstallPrevious
  9.  
  10. Call UninstallPrevious
  11.  
  12. SectionEnd
  13.  
  14. Function UninstallPrevious
  15.  
  16. ; Check for uninstaller.
  17. ReadRegStr $R0 HKLM "${HKLM_REG_KEY}" "InstallDir"
  18.  
  19. ${If} $R0 == ""
  20. Goto Done
  21. ${EndIf}
  22.  
  23. DetailPrint "Removing previous installation."
  24.  
  25. ; Run the uninstaller silently.
  26. ExecWait '"$INSTDIRUninstall.exe /S"'
  27.  
  28. Done:
  29.  
  30. FunctionEnd
Add Comment
Please, Sign In to add comment