(imported topic written by SystemAdmin)
We’ve uploaded a folder using the Mac Software Deployment Wizard. Within the folder is an application and a configuration file. When we deploy the task the application appears in the Application folder on the target computer but it doesn’t work (double click does nothing). Below is our action:
continue if {(size of it = 1059533 AND sha1 of it = “0a02d9151b88d10c88ce3698c399050c27a3ef14”) of file “CompanyRemoteAssistance.tmp” of folder “__Download”}
extract CompanyRemoteAssistance.tmp
if {not active of action OR exists file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}
delete “{pathname of file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}”
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
else
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
endif
We’ve even zipped the file and attempted to simply place it on the Mac and unzip it from there. But that’s giving us errors too. Below is the action and error
Action
continue if {(size of it = 1088765 AND sha1 of it = “858e577f083d340fe09fc174cfb16e7fbe92fdf9”) of file “Company Remote Assistancezip.tmp” of folder “__Download”}
extract Company%20Remote%20Assistancezip.tmp
if {not active of action OR exists file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}
delete “{pathname of file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}”
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
else
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
endif
Error
Completed
Failed
continue if {(size of it = 1088765 AND sha1 of it = “858e577f083d340fe09fc174cfb16e7fbe92fdf9”) of file “Company Remote Assistancezip.tmp” of folder “__Download”}
extract Company%20Remote%20Assistancezip.tmp
if {not active of action OR exists file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}
delete “{pathname of file whose (name of it ends with “.tmp”) of folder “__Download” of client folder of current site}”
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
else
wait /bin/sh -c “find {concatenation “\ " of substrings separated by " " of pathname of client folder of current site}/__Download/* -exec cp -rfp {”%7b%7d”} {concatenation “\ " of substrings separated by " " of “/Applications”} ;”
endif