App Deployment with batch files

Author Message
skeegan

  • Total Posts : 75
  • Scores: 2
  • Reward points : 12200
  • Joined: 10/28/2009
  • Status: offline
App Deployment with batch files Wednesday, January 25, 2012 2:25 PM (permalink)
0
Hi There, I am trying to use a batch file to copy templates to a machine as well as DLL files.  In my batch file I use Xcopy and regsvr32 but it fails everytime.  Can someone tell me what I am missing here.  Basically I copy all the templates and batch file to my DP and then deploy the app to a collection and no go.  Here is what my batchfile does
 
c:
cd\
ren infoware infoware.ask
MD infoware
cd infoware
md startup
md templates
md data
xcopy \\share\Infoware\Aug2011\startup\*.* /s/e c:\infoware\startup
xcopy \\share\Infoware\Aug2011\templates\*.* /s/e c:\infoware\templates
xcopy \\share\Infoware\Aug2011\data\*.* /s/e c:\infoware\data
cd\
cd c:\program files
rd infoware /q /s
md infoware
cd infoware
md common
md "Word Extensions"
xcopy \\share\Infoware\Aug2011\common\*.* /s/e "c:\program files\infoware\common"
xcopy \\share\Infoware\Aug2011\wordlx\*.* /s/e "c:\program files\infoware\Word Extensions"
regsvr32 "c:\program files\infoware\common\infocalendar.dll" /s
regsvr32 "c:\program files\infoware\common\infooutred.dll" /s
regsvr32 "c:\program files\infoware\common\ioptions.dll" /s
regsvr32 "c:\program files\infoware\common\lsabget.dll" /s
regsvr32 "c:\program files\infoware\common\lsbcget.dll" /s
regsvr32 "c:\program files\infoware\common\lsmbget.dll" /s
regsvr32 "c:\program files\infoware\common\lsnbget.dll" /s
regsvr32 "c:\program files\infoware\common\lsnlget.dll" /s
regsvr32 "c:\program files\infoware\common\lsnsget.dll" /s
regsvr32 "c:\program files\infoware\common\lsntget.dll" /s
regsvr32 "c:\program files\infoware\common\lsqcget.dll" /s
regsvr32 "c:\program files\infoware\common\lsskget.dll" /s
regsvr32 "c:\program files\infoware\common\lsucget.dll" /s
regsvr32 "c:\program files\infoware\common\richedit.ocx" /s
regsvr32 "c:\program files\infoware\common\tabctl32.ocx" /s
regsvr32 "c:\program files\infoware\Word Extensions\1Point1.dll" /s
regsvr32 "c:\program files\infoware\Word Extensions\adusers.dll" /s
regsvr32 "c:\program files\infoware\Word Extensions\FindContactx.dll" /s
regsvr32 "c:\program files\infoware\Word Extensions\lxauthorlib.dll" /s
regsvr32 "c:\program files\infoware\Word Extensions\lxwordlib.dll" /s
regsvr32 "c:\program files\infoware\Word Extensions\multiprint.ocx" /s
 
#1
    chiners_68

    • Total Posts : 777
    • Scores: 5
    • Reward points : 60780
    • Joined: 10/31/2007
    • Status: offline
    Re:App Deployment with batch files Wednesday, January 25, 2012 2:42 PM (permalink)
    0
    what cmdline did you specify when setting up the deployment program? did you just point to the batch file?
    to run a batch file in a sccm program you need to use cmd /c  before the batch file i.e
     
    'cmd /c testing.bat'
     
    In windows you shouldnt really use batch files but rename to .cmd.
     
    #2
      skeegan

      • Total Posts : 75
      • Scores: 2
      • Reward points : 12200
      • Joined: 10/28/2009
      • Status: offline
      Re:App Deployment with batch files Wednesday, January 25, 2012 2:44 PM (permalink)
      0
      I just pointed to the batch file without using the CMD /C  I will try that
       
      #3
        cnackers

        • Total Posts : 1421
        • Scores: 61
        • Reward points : 37740
        • Joined: 9/22/2006
        • Location: Madison, WI
        • Status: offline
        Re:App Deployment with batch files Wednesday, January 25, 2012 3:45 PM (permalink)
        0
        Are you telling the program it needs a network drive mapped? Batch files won't support a UNC path by default
        My Blog
        Follow me on Twitter
        Microsoft MVP - System Center Configuration Manager
        Most Valued Community Contributor - 2011



         
        #4
          rodtrent

          • Total Posts : 1179
          • Scores: 39
          • Reward points : 20880
          • Joined: 3/29/2010
          • Status: offline
          Re:App Deployment with batch files Wednesday, January 25, 2012 4:12 PM (permalink)
           
          #5
            mcorsillo

            • Total Posts : 43
            • Scores: 4
            • Reward points : 7610
            • Joined: 12/6/2011
            • Location: Boston, MA
            • Status: offline
            Re:App Deployment with batch files Thursday, February 09, 2012 11:42 AM (permalink)
            0
            We can just run a .cmd through SCCM without the "cmd /c" though, yes?
             
            (probably a noob question but let's face it, I am kind of a noob with SCCM, which is why I'm here in the first place!)
             
            #6
              gkirton

              • Total Posts : 170
              • Scores: 6
              • Reward points : 23370
              • Joined: 1/19/2009
              • Status: offline
              Re:App Deployment with batch files Thursday, February 09, 2012 11:58 AM (permalink)
              0
              Would you not need cd c:\program files to be cd "c:\program files"?

              Failing that I would be putting extra lines in for loggin so you can see exactly which line it is failing at.
              <message edited by gkirton on Thursday, February 09, 2012 11:59 AM>
               
              #7
                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 1 guests.

                Icon Legend and Permission

                • New Messages
                • No New Messages
                • Hot Topic w/ New Messages
                • Hot Topic w/o New Messages
                • Locked w/ New Messages
                • Locked w/o New Messages
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9