This can't be done on Windows 7 or Windows 8, because BitsAdmin.exe is deprecated for those OS.
Manage BITS (Background Intelligent Transfer Service) with Windows PowerShell
Using Windows PowerShell to Create BITS Transfer Jobs (Windows)
Quote
Previous versions of Windows provided command-line management of BITS using the BITSAdmin.exe tool. In Windows 7, BITSAdmin.exe is deprecated. Instead, you should use the Windows PowerShell cmdlets.
We must make changes inside installer.js to download files on the Web using Powershell !
From line 1338 we can add:
installer.js
if (getOSver()=="Win7" || getOSver()=="Win8")
cmdLine='Powershell Start-BitsTransfer -Source '+URL+' -Destination "%TEMP%\\'+Filename+'" -TransferType Download';
fsoCmd=true;
Add on line 1342:
if (getOSver()=="XP" || getOSver()=="Vista")
Tested on Windows 7 x86 and Windows XP. Works fine!
Example downloading WPI_v8.6.3.rar
config.js
prog[pn]=['WPI 8.6.3'];
uid[pn]=['WPI863'];
ordr[pn]=[3];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
pfro[pn]=['no'];
cmds[pn]=['{DOWNLOAD} http://www.wpiw.net/downloads/WPI_v8.6.3.rar'];
desc[pn]=['WPI 8.6.3'];
pn++;
WPI_Log.txt
WPI_Log.txt (on Windows XP and IE8)
WPI Downloading files from the Web
Thanks and regards
*Edit: However there is a trouble using the link given by the OP ! The redirection inside the link : ..\Temp\redir?.. give an error to open the Temp file !
WPI_Log.txt (partial)
samedi 2 février 2013 22:17:30
Programme: Avast Free
ID unique: AVASTFREE
Ordre: 000001
Catégorie: Applications
samedi 2 février 2013 22:17:32 - cmd1 Téléchargement réussi (Code de retour 0): http://dw.com.com/redir?edId=3&siteId=4&oId=3000-2239_4-10019223&ontId=2239_4&spi=6f9090653428d3331f2257339658eb21&lop=link&tag=tdw_dltext<ype=dl_dlnow&pid=12808071&mfgId=85737&merId=85737&pguid=UK9hpwoOYJMAACcZHcoAAAAq&destUrl=http2F2Fs2F122F802Favast_free_antivirus_setup.exe3D1353706996_003427b3fdf5573511c347f24070bd023Dlink3D30003D22393D43D33D6f9090653428d3331f2257339658eb213D128080713D100192233Davast_free_antivirus_setup.exe
samedi 2 février 2013 22:17:32 - cmd1 *** Echec *** (Code de retour 999): "C:\Users\Antoine\AppData\Local\Temp\redir?edId=3&siteId=4&oId=3000-2239_4-10019223&ontId=2239_4&spi=6f9090653428d3331f2257339658eb21&lop=link&tag=tdw_dltext<ype=dl_dlnow&pid=12808071&mfgId=85737&merId=85737&pguid=UK9hpwoOYJMAACcZHcoAAAAq&destUrl=http2F2Fs2F122F802Favast_free_antivirus_setup.exe3D1353706996_003427b3fdf5573511c347f24070bd023Dlink3D30003D22393D43D33D6f9090653428d3331f2257339658eb213D128080713D100192233Davast_free_antivirus_setup.exe"
samedi 2 février 2013 22:17:32 - Installation terminée.
Note: We must use a direct link !
*Edit: post and command updated
This post has been edited by myselfidem: 15 February 2013 - 03:39 AM