Jump to content


  • 0
crb

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

Question

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

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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!

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.