automating UpdateGenerator.exe?

automating UpdateGenerator.exe?

Postby cecinit » 21.10.2012, 17:32

I've sorted out a couple of patterns that I want, & now I'd like
to automate the patch download portion. I'd like to set up a
scheduled task that rebuilds the update clients every so often.

I'm a little lost on how to do this. Is it possible to run UpdateGenerator.exe
in a batch job, or is there a command line file that can accept
parameters (like update.cmd) that can do the work?
cecinit
 
Posts: 42
Joined: 20.09.2012, 07:15

Re: automating UpdateGenerator.exe?

Postby harry » 21.10.2012, 17:38

harry
 
Posts: 737
Joined: 29.10.2009, 17:02

Re: automating UpdateGenerator.exe?

Postby cecinit » 21.10.2012, 22:50

Thanks, that seems to be working.

The UI (updategenerator) has one feature that I don't see in the script -
the ability to broadcast a specific client to its own (usb) target directory.
I can sort of see how this is done from the results, and there's this in the Autoit script:
Code: Select all
If IniRead($inifilename, $ini_section_misc, $misc_token_minimize, $disabled) = $enabled Then
    $result = RunWait(@ComSpec & " /D /C CopyToTarget.cmd " & $stroptions & " """ & $strpath & """" & $strswitches, @ScriptDir & "\cmd", @SW_SHOWMINNOACTIVE)
  Else
    $result = RunWait(@ComSpec & " /D /C CopyToTarget.cmd " & $stroptions & " """ & $strpath & """" & $strswitches, @ScriptDir & "\cmd", @SW_SHOW)

It looks like the scripting of CopyToTarget.cmd similar to downloadupdates.cmd. Looks like /cleanup will clean the target.

I'm not picking up any specific how-to from the forum so I want to make sure I'm not missing
something essential - any advice appreciated.
cecinit
 
Posts: 42
Joined: 20.09.2012, 07:15

Re: automating UpdateGenerator.exe?

Postby cecinit » 22.10.2012, 15:20

It looks like the scripting of CopyToTarget.cmd similar to downloadupdates.cmd. Looks like /cleanup will clean the target.


This pattern seems to work very well, I've tested it against the GUI & the results are the same:
Code: Select all
call %dlpath%\copytotarget.cmd wxp enu %tarpath%\WXP         /includedotnet /includemsse /includewddefs /cleanup
call %dlpath%\copytotarget.cmd ofc enu %tarpath%\WXP         /cleanup


Had to use "glb" for w60- and w61-
cecinit
 
Posts: 42
Joined: 20.09.2012, 07:15


Return to Download

Who is online

Users browsing this forum: No registered users and 211 guests