(imported topic written by SystemAdmin)
I just started attempting to use the new software distribution site to manage installations. After I created my task using the wizard I wanted to modify the task to install one package if the system was 32bit and another if it was 64bit. I know I could just create two seperate tasks, but to keep things simple I would like to consolidate it into one.
I tried to add an if statement before the prefetch block statements, but I get the following message “Only comments and blank lines are allowed before prefetch block.”
So I tried to use the a normal prefetch command and then extract the file. The file was successfully downloaded to the client but, I get the following error in the client log “Unable to extrct archive file”. The file does not have the .tmp extenstion like I am use to using the old distribution wizard.
How can I extract files created with the bfswd extenstion? Or is there another way to modify the created task to allow an if statement?
The created task using the wizard looks like this:
//**Begin Preparation Marker
// Download all specified files
begin prefetch block
add prefetch item name=6E6F290E96E5D5A91B6C4289F6236B5374A54EC5 sha1=6e6f290e96e5d5a91b6c4289f6236b5374a54ec5 size=17427968 url=SWDProtocol://127.0.0.1:52311/uploads/6E6F290E96E5D5A91B6C4289F6236B5374A54EC5/AgentInstall64.msi.bfswd
end prefetch block
// All SWD Files will go into a folder in the clients __BESData folder. This folder get cleared on every restart.
parameter “baseFolder” = “__Download/”
// Move files into subfolders and unescape file names
move “__Download/6E6F290E96E5D5A91B6C4289F6236B5374A54EC5” “{parameter “baseFolder”}AgentInstall64.msi”
//**End Preparation Marker
I attempted this:
prefetch AgentInstall64.msi.bfswd sha1:6e6f290e96e5d5a91b6c4289f6236b5374a54ec5 size:17427968 http://server.domain.name:52311/Uploads/6E6F290E96E5D5A91B6C4289F6236B5374A54EC5/AgentInstall64.msi.bfswd
extract AgentInstall64.msi.bfswd