+ Post New Thread
Results 1 to 9 of 9
O/S Deployment Thread, Deplying an App with Command Line in Technical; Hi Guys, Just a quick one - where is the best place to deploy an app using MDT when needing ...
  1. #1

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,259
    Thank Post
    962
    Thanked 324 Times in 192 Posts
    Blog Entries
    11
    Rep Power
    164

    Deplying an App with Command Line

    Hi Guys,

    Just a quick one - where is the best place to deploy an app using MDT when needing to use a command line? The command I want to put in there installs Windows Movie Maker Live 2012. The command works from the desktop but I want to automate it.

    Any help appreciated,

    Gareth

  2. #2
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,183
    Thank Post
    206
    Thanked 221 Times in 190 Posts
    Rep Power
    72
    If the installer is located on a network share somewhere (such as a subfolder of netlogon), just create a .cmd batch file and stick your install command line in that. Then in MDT add an application and point it to the cmd

    I have a few which are similar

  3. #3

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,259
    Thank Post
    962
    Thanked 324 Times in 192 Posts
    Blog Entries
    11
    Rep Power
    164
    That easy?

  4. #4
    jamesfed's Avatar
    Join Date
    Sep 2009
    Location
    Reading
    Posts
    2,185
    Thank Post
    133
    Thanked 340 Times in 287 Posts
    Rep Power
    84
    Easy task that one most of what you will need to know (command line switches to only install Movie Maker) is here - Deploy Windows live movie maker / Live Essentials 2011 | Compit.se

    Make sure you get the offline installer of Windows Live Essentials and then import it as a application with a set of source files in MDT (right click applications and import).

    Simple stuff

  5. #5
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,183
    Thank Post
    206
    Thanked 221 Times in 190 Posts
    Rep Power
    72
    Pretty much.

    Attached is a screenshot of one of my apps. This one isn't quite as basic as what can be done but it shows 3 things:

    1) The command line in MDT which launches the .cmd file
    2) The contents of the .cmd file
    3) The installer package which I have also put with the cmd to save having to stick it in a share
    klite.jpg

  6. #6
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,183
    Thank Post
    206
    Thanked 221 Times in 190 Posts
    Rep Power
    72
    Just to clarify the above, I created the .cmd file and put it into a folder along with the installer. Then in MDT go to add an application with source file, point to the folder just created and set the install command to be the name of the .cmd file.

    Easy as

  7. #7

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,259
    Thank Post
    962
    Thanked 324 Times in 192 Posts
    Blog Entries
    11
    Rep Power
    164
    Yeah - just done all of that and the install failed. Troubleshooting now.

    Did you put your installer on a seperate server?

    Gaerth

  8. #8

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,259
    Thank Post
    962
    Thanked 324 Times in 192 Posts
    Blog Entries
    11
    Rep Power
    164
    Yeah - just done all of that and the install failed. Troubleshooting now.

    Did you put your installer on a seperate server? Where is your cmd stored? On your mdt server in that .applications directory?

    Gaerth

  9. #9
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,996
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106
    I would set up a folder like suggested in in post 6 and put both your install cmd/vbs there and the actual application in there. Then import in and it will put it on your server. Post your script as well if you like and I will run my eye over it been doing packages for the last couple of days so I can spot anything obvious. There is also some good examples of VB script for these MDT installs as well from one of the John Ardwick Deployment books which you can use which plays nicer with MDT as it will do logging and use some of the functions already declared in MDT.

SHARE:
+ Post New Thread

Similar Threads

  1. ems launch via command line with variable
    By zbjsy in forum Windows Server 2008 R2
    Replies: 10
    Last Post: 2nd April 2012, 05:15 PM
  2. Replies: 3
    Last Post: 18th January 2011, 02:30 PM
  3. Command LIne
    By wesleyw in forum Windows
    Replies: 4
    Last Post: 12th October 2006, 11:10 AM
  4. Command line installs? heeellllppp
    By contink in forum How do you do....it?
    Replies: 2
    Last Post: 2nd October 2006, 04:27 PM
  5. Command line tool for share permissions
    By NetworkGeezer in forum Windows
    Replies: 8
    Last Post: 19th June 2006, 06:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •