SCCM Detection for batch files
I'm trying to deploy Java using some of the tools here. One great tool I want to run as a dependency is a batch file that uninstalls all versions of Java. The only want to do this is to add it as an application through SCCM, but SCCM requires that all applications be detected of it's presence to continue. How would I go about doing this if msi & registry keys aren't really in the mix (or maybe they are)?
The JavaUninstall.bat can be found here http://www.itninja.com/blog/view/deploying-java-7-through-gpo
3 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
Set objFSO = CreateObject("Scripting.FileSystemObject")
strFolder = "<folder location>"
If not (objFSO.FolderExists(strFolder)) Then Wscript.Echo "Ok"
End If
As long as the check returns something (in this case, the text Ok, the check is considered to be successfull. - bherman 10 years ago