1. Sql server express is installed or not
2. Dot net frame work 3.5 is installed or not
3. J# redistributable package is installed or not
Thanks in advance,
Regards

Moderator: DosItHelp
Code: Select all
@echo off &setlocal
set "dotNETpath=%SystemRoot%\Microsoft.NET\Framework\v3.5"
if exist "%dotNETpath%" (
echo Dot net frame work 3.5 is installed.
) else (
echo Dot net frame work 3.5 not found.
)
pause
Code: Select all
REG QUERY \\machine\hklm\software\microsoft\windows\currentversion\uninstall >>output.log
Code: Select all
@echo off &setlocal
call :IsRegKey "HKLM\SOFTWARE\Adobe\Acrobat Reader" &&(
echo Acrobat Reader is intalled.
)||(
echo Acrobat Reader is Not intalled.
)
pause
goto :eof
::~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:IsRegKey Key -- succeeds if Key exists
:: -- Key [in] - registry key
:$created 20060101 :$changed 20080219 :$categories Registry
:$source http://www.dostips.com
reg query "%~1">NUL 2>NUL
EXIT /b