Advertisement
Guest User

Untitled

a guest
Sep 5th, 2012
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Section "find java" FINDJAVA
  2.  
  3. StrCpy $1 "Software\Data Access Worldwide\Visual DataFlex"
  4. StrCpy $2 0
  5. ReadRegStr $2 HKEY_LOCAL_MACHINE "$1" "CurrentVersion"
  6. StrCmp $2 "" DetectTry2
  7. ReadRegStr $5 HKEY_LOCAL_MACHINE "$1\$2" "VDFRootDir"
  8. StrCmp $5 "" DetectTry2
  9. goto done
  10.  
  11. DetectTry2:
  12. ReadRegStr $2 HKEY_LOCAL_MACHINE "SOFTWARE\Data Access Worldwide\Visual DataFlex\17.0" "CurrentVersion"
  13. StrCmp $2 "" NoJava
  14. ReadRegStr $5 HKEY_LOCAL_MACHINE "SOFTWARE\Data Access Worldwide\Visual DataFlex\17.0\Defaults $2" "VDFRootDir"
  15. StrCmp $5 "" NoJava done
  16.  
  17. done:
  18. ;All done.
  19.  
  20. NoJava:
  21. SetOutPath "$INSTDIR"
  22. File "VDF2012-17.0.22.8.Client.exe"
  23. ExecWait "VDF2012-17.0.22.8.Client.exe"
  24. SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement