Skip to content

Deploy App by copying files

Featured Replies

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.

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/

Don't forget to fill the "start in" option for step 3 with "%programfiles%\app". The "cmd /c" is not needed for this step.

  • Author

Is it possible to create the above steps within a package rather than in TS?

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

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.