Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Packages reporting as successful when they didn't actually install

$
0
0

I have been having some difficulty lately in getting accurate monitoring results from SCCM 2012 package deployments containing a batch file. The batch file fails for various reasons, mostly being that there is another program waiting for installation. So, what ends up happening is that the install portion of the batch file just blows through and the rest of the commands follow. SCCM reports the installation was successful.

Am I doing something wrong in the batch file or package settings? Here is the text of the batch:

@echo off
rem -----Created by Roy C. Padrick, Feb. 3, 2015------
echo #### Uninstalling Femap v11.1.0. ####
cmd /C MsiExec.exe /I{2BC3157D-CA1A-4EAA-9E6E-34017A81DFCE} /qn remove=all
cmd /C del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\College of Engineering\NEi Nastran\FEMAP v11.1.0 32-bit.lnk"
echo #### Installing FEMAP 11.1.1. Do Not Close. ####
msiexec /i %~dp0FEMAP.msi /qn /norestart
echo #### Cleaning Up. Do Not Close. ####
rem -----This sets the language to English-----
cmd /C del "C:\Program Files (x86)\FEMAP\FEMAPv1111\feres1111.dll"
rem -----This removes the desktop icon-----
cmd /C del "C:\Users\Public\Desktop\FEMAP v11.1.1 64-bit.lnk"
rem -----This removes the tips from starting-----
cmd /C del "C:\Program Files (x86)\FEMAP\FEMAPv1111\tips.txt"
rem -----This moves the files to the correct folder-----
cmd /C xcopy "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\FEMAP v11.1.1 64-bit" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\College of Engineering\FEMAP v11.1.1" /E /H /R /X /Y /I /K
cmd /C rd "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\FEMAP v11.1.1 64-bit" /q /s
rem -----This sets the program to run as a network client-----
cmd /C %~dp0go_network.bat /q


Viewing all articles
Browse latest Browse all 4762

Trending Articles