Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Section "find java" FINDJAVA
- StrCpy $1 "Software\Data Access Worldwide\Visual DataFlex"
- StrCpy $2 0
- ReadRegStr $2 HKEY_LOCAL_MACHINE "$1" "CurrentVersion"
- StrCmp $2 "" DetectTry2
- ReadRegStr $5 HKEY_LOCAL_MACHINE "$1\$2" "VDFRootDir"
- StrCmp $5 "" DetectTry2
- goto done
- DetectTry2:
- ReadRegStr $2 HKEY_LOCAL_MACHINE "SOFTWARE\Data Access Worldwide\Visual DataFlex\17.0" "CurrentVersion"
- StrCmp $2 "" NoJava
- ReadRegStr $5 HKEY_LOCAL_MACHINE "SOFTWARE\Data Access Worldwide\Visual DataFlex\17.0\Defaults $2" "VDFRootDir"
- StrCmp $5 "" NoJava done
- done:
- ;All done.
- NoJava:
- SetOutPath "$INSTDIR"
- File "VDF2012-17.0.22.8.Client.exe"
- ExecWait "VDF2012-17.0.22.8.Client.exe"
- SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement