Jump to content


  • 0
capriguy84

Deploy App by copying files

Question

Hello, I'd first like to thank the site community for being helpful as well as contributing to a better IT management.

 

I want to deploy an app with the following steps and I would like to create a task sequence for that.

 

1. Mkdir C:\Program Files\App.

2. Copy the source files to C:\Program Files\App. Does this need to be on a fileshare?

3. Run the install.exe from that dir.

 

 

Sounds easy. But can this be accomplished using TS? or should I write a VB script to execute it.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I dont have console with me but try with these steps :

 

create a TS step 1:run command line with action cmd.exe /c md "C:\Program Files\App"

Step 2: Create a package with what files u need to copy to above package,distribute it to DP's.

create TS action with command line xopcy * "C:\Program Files\App" and select the package above.

Step 3:To install the package,create a command line action with cmd.exe /c install.exe with above package as source.

 

for more info look at it http://www.windows-noob.com/forums/index.php?/topic/1735-using-offline-mode-in-windows-pe-using-usmt-4-via-a-task-sequence-in-sccm-2007-sp2/

Share this post


Link to post
Share on other sites

  • 0

A Package is also needed when you are using a task sequence, since you want to copy the setup source files to your systems. So i guess you mean a program instead of a task sequence.

Of course, this is possible. Just put the 3 Steps in a batch file and the call the batch in your program.

 

 

md "%programfiles%\app"

xcopy.exe ".\*" "%programfiles%\app" /D /E /C /I /Q /H /R /Y /S

pushd "%programfiles%\app"

install.exe

popd

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.