continue if {(size of it = 4061126 AND sha1 of it = “37d2f0a884a1ae07ef8c44aab20b514d7d03b978”) of file " Company%20Application%20Nameexe.tmp" of folder “__Download”}
dos "C:\Windows\System32\ __Download\Company Application Name.exe " /S /v/qn
I beleive this is due to the “Do you want to allow the following program from an unknown publisher to make changes to this computer?” prompt our Windows 7 computers get. (However, I could be wrong)
On the actually machine, with Windows 7, I have to right-click the command prompt and select Run as Administrator. Then I can use Company Application Name.exe" /S /v/qn and it works.
Am I missing a special command that’s specific to Windows 7?
Did you try it under a different version of Windows besides 7? Does it work under WinXP if you use the exact same action? Do you see an exit code in the BES logs? Do you see anything in the system or application event logs?
Since the BES client runs under the SYSTEM context, you’re already running the installer with elevated privileges, so I wouldn’t think that’s your issue.
continue if {(size of it = 4061126 AND sha1 of it = “37d2f0a884a1ae07ef8c44aab20b514d7d03b978”) of file " Company%20Application%20Nameexe.tmp" of folder “__Download”}
Am I missing something else? I’ve disabled UAC and deployed the following to my Windows 7 test machine, all the lines complete succesfully. But the application does not install.
continue if {(size of it = 4061126 AND sha1 of it = “37d2f0a884a1ae07ef8c44aab20b514d7d03b978”) of file " Company%20Application%20Nameexe.tmp" of folder “__Download”}
wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\Company Application Name.msi”}” /qn /norestart
Status stayed at Running
wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\Company Application Name.msi”}” /S /v/qn ALLUSERS=2
wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\Company Application Name.msi”}” ALLUSERS=2 /qn /norestart
You may also want to turn on logging:
wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\Company Application Name.msi”}” /l*v “{pathname of folder “temp” of windows folder & “\MyLogFile.txt”}”
The following completed but the application did not install
wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\Company Application Name.msi”}” ALLUSERS=2 /qn /norestart
I’m not sure what I’m looking for in the log, but I did notice
MSI (s) (B8:3C)
08:39:28:367
: Product: Company Application Name – Installation operation failed.
I think I may know the cause. I suspect the file in question is locked. Download the file to your Windows 7 machine, right click on it, go to properties and see if Unlock or Unblock whichever it is I forget, is avaliable. Once it’s been unlocked it should work fine and you can send me a 6-pack of Blue Moon as a reward.