Jump to content

SMS server to rollout a package using .cmd (batch file)


Recommended Posts

Posted

We are trying to install a package (Examdiff pro) using SMS server.

Now we have a working package wich uses a CMD file for installation (install.cmd).

Local it is working and Examdiff pro gets installed and automatically registered with the license key, however when we try it using SMS we get a time out (wich is set in SMS on a max of 5 minutes).

Anyone having a idea ?


Posted
We are trying to install a package (Examdiff pro) using SMS server.

Now we have a working package wich uses a CMD file for installation (install.cmd).

Local it is working and Examdiff pro gets installed and automatically registered with the license key, however when we try it using SMS we get a time out (wich is set in SMS on a max of 5 minutes).

Anyone having a idea ?

More than likely one of the lines in your cmd has a problem. When using SMS always specify for the package to download locally then execute.

Post your script and I can help you with it.

Posted (edited)

Mhhh seems that we can't get all the cmd based packages to work.

Example of .cmd from ExamDiff Pro

@echo off
set INSTALLPATH=\\SMS1\packages$\Examdiff Pro
set TARGETPATH=c:\program files\ExamDiff Pro
"%INSTALLPATH%\setup.exe" /sp- /silent /dir="%TARGETPATH%"
copy "%INSTALLPATH%\password.bin" "%TARGETPATH%" /y

As Command Line in the package (SMS) I use

C:\WINDOWS\system32\cmd.exe /c "E:\Packages\Examdiff Pro\setup.cmd"

Also tried to use

C:\WINDOWS\system32\cmd.exe /c setup.cmd

We run SMS on Server 2003

But it gives a error code 1

Also with a simple copy and mkdir command we get a error

%comspec% /c mkdir "c:\program files\frhed"

Edited by Post
Posted

I think your script is making itself more complicated than it has to be.

Change it to this


"\\SMS1\packages$\Examdiff Pro\setup.exe" /sp- /silent /dir="c:\program files\ExamDiff Pro"
copy "\\SMS1\packages$\Examdiff Pro\password.bin" "c:\program files\ExamDiff Pro"

Let us know how that turns out. Also, just my recommendation try testing this in a lab environment first in virtual machines so you can use trial and error to figure it out and do it as many times as you need.

Also, make sure that the share and NTFS permissions on the share are set correctly.

Jim

Posted
I think your script is making itself more complicated than it has to be.

Change it to this


"\\SMS1\packages$\Examdiff Pro\setup.exe" /sp- /silent /dir="c:\program files\ExamDiff Pro"
copy "\\SMS1\packages$\Examdiff Pro\password.bin" "c:\program files\ExamDiff Pro"

Let us know how that turns out. Also, just my recommendation try testing this in a lab environment first in virtual machines so you can use trial and error to figure it out and do it as many times as you need.

Also, make sure that the share and NTFS permissions on the share are set correctly.

Jim

Yeah that :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...