Skip to content

Task Sequence Install software command line "C:\Program.exe" "using filles from package"

Featured Replies

1st off I hope this is the correct Forum for such topic.

 

I have a program that has multiple steps the first task sequence installs someting to "c:\program" Directory. The second Needs to call the program from the C:\Program\program.exe against a directory with files in it within the package. For my command line I have tried

 

C:\program\program.exe -p %~dp0\directory\directory

C:\program\program.exe -p "%~dp0\directory\directory"

C:\program\program.exe -p \\smsserver\smspkgd$\000etcpkg\directory\directory

 

 

I have created a bat file

SETLOCAL

 

Set thisdir = %~dp0

 

C:\program\program.exe -p %thisdir%\directory\directory

 

Nothing ever works. Does anyone know how to from a create a program within a package that tells SCCM to run the local program from the C:Drive but get additional needed files from within the Install software task sequence that has a package Specified?

 

Any help or Thoughts will be tested.

Thanks, Craig Blake

If the 1st program installs to a local location then all you need to do is deploy that file from a precreated package with the files in it

Start /Wait %~dp0setup.exe /parameters

 

The second part then calls those files to install the rest from the local machine (if 1st step has been successful)

start /wait "C:\Directory\setup.exe" /parameters

 

Put all together in a package(files + command file or bat file), distribute and deploy to a collection

 

The bat file can now be:

Start /Wait %~dp0setup.exe /parameters

start /wait "C:\Directory\setup.exe" /parameters

 

You could specify to run from DP or download locally until you get it to work for you!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.