/build/static/layout/Breadcrumb_cap_w.png

SMS/SCCM Soure Install files UNC path problems

I am trying to deploy a package on our Primary SMS/SCCM Server using a batch file (install.bat) that looks like below:
1. echo off
2. START /wait file://smsserver/SMSpackageshare/abc.exe /s
3. START /wait file://smsserver/SMSpackageshare/def.exe /s

The package runs great anytime that I specify full UNC path to each of my executables in the batch file but it fails when I try to rely on just specifying file://smsserver/SMSpackageshare as the working directory/start in directory on my package-program properties and change the batch file to below.

1. echo off
2. START /wait abc.exe /s
3. START /wait def.exe /s
the installation fails because my executables cannot be located: The installation process actually run out of package run-time looking for the sorce install files..

Now, I really the latter to work because we have several regional distribution poinst and its not expedient for machines at those regional sites to install this package using the central primary server package share. They need to get it from their regional distribution points

My only option at this point is to start to modify each batch files for each regions to reflect each regional distribution point package share but that will be a lot of work to do ..

I need a universal batch file that can locate install files at the local distribution point package share.

Is there any way to acheive this? Some kind of SMS server name/Package share variable to specify in the UNC path? We dont use VBS in my environment so that limits my option..

0 Comments   [ + ] Show comments

Answers (4)

Posted by: admaai 13 years ago
Orange Senior Belt
2
Tried %~dp0?
Posted by: zerville 13 years ago
Senior Yellow Belt
0
%~dp0 looks very much like what I need!...Thanks I will give it a shot
Posted by: admaai 13 years ago
Orange Senior Belt
0
GEEZ and no points? tough crowd:)
Posted by: zerville 13 years ago
Senior Yellow Belt
0
2 solid points Admaai!... thanks again..It worked
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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