Action Script to download multiple items using prefetch

(imported topic written by johnclinibm)

How would I create in an action script downloading two (or more) items in the prefetch block?

This doesn’t work for me, and the files are in the correct location to download:

begin prefetch block

add prefetch item url=http://URL.com/sandbox/file1.webloc; url=http://URL.com/sandbox/file2.dmg

end prefetch block

(imported comment written by Mark_Macherey)

take a look at this post using a manifest file, also you must have a size= and sha1= unles you use a “
add nohash prefetch item
” which still needs add nohash prefetch item [name=] [size=] url=

uploading files to a site and referring to them in a fixlet

you can also just grab each file

begin prefetch block

add prefetch item name=file1.exe sha1=795da85717611bc3bc990f957358b5391dda74fc size=130416856 url=http://fileserver1:52312/shared/Component_Install/file1.exe

add prefetch item name=file2.exe sha1=001ded7b10f063ae29b946c8ea9874f4e6d26503 size=5571 url=http://fileserver1:52312/shared/Component_Install/file2.exe

add prefetch item name=file3.exe sha1=b34a7736cbadbcfb33aeb487b909ce497ee60f5b size=12800 url=http://fileserver1:52312/shared/Component_Install/file3.exe

end prefetch block

or combine with a “;”

begin prefetch block

add prefetch item name=file1.exe sha1=795da85717611bc3bc990f957358b5391dda74fc size=1856 url=http://fileserver1:52312/shared/Component_Install/file1.exe; name=file2.exe sha1=001ded7b10f063ae29b946c8ea9874f4e6d26503 size=5571 url=http://fileserver1:52312/shared/Component_Install/file2.exe; name=file3.exe sha1=b34a7736cbadbcfb33aeb487b909ce497ee60f5b size=1200 url=http://fileserver1:52312/shared/Component_Install/file3.exe

end prefetch block