Video Screencast Help

Batch file is not working properly

Created: 12 Aug 2014


I am running this batch file in Win 7. After this one folder will be created in "start programs" with one shortcut to run an application. in my batch file i am trying to install 2 msi packages but here only first msi is getting installed. What is the reason for that.

My batch file code is a follows

@echo Removing Old versions of IndCas Controls:
@echo .
@ECHO Removing Old version of IndCas
RMDIR "%ALLUSERSPROFILE%\start Menu\Programs\RBCI Individual Cas\" /S /Q

@echo Installing updated IndCas:
MD "%ALLUSERSPROFILE%\Start Menu\Programs\RBCI Individual Cas"
COPY "\\s3w01234\Apps\MyProjects\ClientSetup_Migration\shortcut\*.*"  "%ALLUSERSPROFILE%\start Menu\Programs\RBCI Individual Cas" /Y

msiexec.exe /i "\\s3w01234\Apps\MyProjects\ClientSetup_Migration\Client Components\SQLNC\Win7\sqlncli.msi" ALLUSERS=1 /q /norestart
msiexec.exe /i "\\s3w01234\Apps\MyProjectsYYB0\ClientSetup_Migration\Client Components\PBCLTRT125.msi" ALLUSERS=1 /q /norestart

Here sqlncli.msi is getting installed and  PBCLTRT125.msi installation is skipped??? What is the reason. What am i missing in my batch file code??

Operating Systems: