/build/static/layout/Breadcrumb_cap_w.png

Command Line error

What is wrong with this command line in a batch file?

setup.exe /s /f1.\pacs.iss
xcopy "drsys.ini" "c:\drs\sys\data" /y /c /i

I ran this batch file locally and the app installed fine, but when I push it via SCCM, it fails to install and give me a timeout error on clients.

0 Comments   [ + ] Show comments

Answers (5)

Posted by: Thegunner 15 years ago
Second Degree Green Belt
0
Have you got the Xcopy.exe in the same place you are running the commandline?

Put a 'Pause' at the end of the batch file and see what it is saying
Posted by: nheim 15 years ago
10th Degree Black Belt
0
Hi darklord,
most likely its the path of the *.iss file.
Let the batch write a log. Use output redirection to do it.
Something like this:
setup.exe /s /f1c:\<yourpathgoeshere>\pacs.iss > yourlog.txt
xcopy "drsys.ini" "c:\drs\sys\data" /y /c /i >> yourlog.txt
Regards, Nick
Posted by: darklord12 15 years ago
Senior Yellow Belt
0
Thanks for the tip. When I run the batch file I mention above, this time from the server that contain the package, I get this error message on the command line:

\\sccmServer\pkgsource$\software distribution\PACS'
CMD.exe was started with the above path as the current directory.
UNC paths are nots supported. Defaulting to Windows directory.

How can I change the command lines so that SCCM knows that the .iss file and .ini files are in the current directory? In other words, what is an alternate way to point to the source package on the server without using UNC path? pkgsource is the name of the drive letter 'Z' on sccmServer.
Posted by: kiptek 15 years ago
Second Degree Green Belt
0
take a look @ the contents of this .CMD file... the msi & transforms will be pathed from the location of the .CMD file:


%windir%\system32\msiexec /i "%~dp0MyMsiInstall.msi" TRANSFORMS="%~dp0MyTransform.mst" /qb!- /l*v "C:\MyLogDir\MyLog.log
Posted by: Foleymon 15 years ago
Orange Senior Belt
0
setup.exe /s /f1c:\\pacs.iss > yourlog.txt

You might want to try that line like this.

setup.exe /s /f1"c:\<yourpathgoeshere>\pacs.iss" /f2"c:\temp\logfile.log"

The quotes " " are needed right after the f1 with no spaces
Same with the f2
f2 will generate your log file.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ