hi all,
I need to deploy one software and I choose to use batch. after testing, it does not check prerequisetes and I have to install Microsoft Visual C++ 2008 Redistributable Package first: question whether there is way to check whether Microsoft Visual C++ 2008 Redistributable Package install or not in the script below;
if exist "%programfiles%\Rightfax\client" goto :EOF
if exist "%programfiles(x86)%\rightfax\client" goto :EOF
::check for the OS version
IF %PROCESSOR_ARCHITECTURE% == AMD64 goto WINDOWSX64
IF %PROCESSOR_ARCHITECTURE% == x86 goto WINDOWSX86
:WINDOWSX86
vs2008_vcredist_x86.exe /qn
msiexec.exe /i "RightFax Product Suite - Client.msi" /qn REBOOT=ReallySuppress
RUNBYRIGHTFAXSETUP=2 CONFIGUREFAXCTRL=1 CONFIGUREFAXUTIL=1 CONFIGUREOUTLOOKCLIENT=1
ADDLOCAL="FaxUtil,FaxCtrl,OutlookAdvancedAddIn" INSTALLDIR="C:\Program Files\RightFax"
RFSERVERNAME=server
:WINDOWSX64
vs2008_vcredist_x64.exe /qn
msiexec.exe /i "RightFax Product Suite - Client.msi" /qn REBOOT=ReallySuppress
RUNBYRIGHTFAXSETUP=2 CONFIGUREFAXCTRL=1 CONFIGUREFAXUTIL=1 CONFIGUREOUTLOOKCLIENT=1
ADDLOCAL="FaxUtil,FaxCtrl,OutlookAdvancedAddIn" INSTALLDIR="C:\Program Files(x86)\RightFax"
RFSERVERNAME=server
-------------------------------------------
thank you for your help.