MSI Deployment- Switches failing

(imported topic written by hbkrules6991)

Hi All.

I am deploying a backup utility that must be deployed via an msi file using switches. The action is as follows

download http://server:52311/Uploads/05de48be87d8f7c166d348db2fcfcef93d057bc1/Backup_AgentSetupmsi.tmp

continue if {(size of it = 27892847 AND sha1 of it = “05de48be87d8f7c166d348db2fcfcef93d057bc1”) of file “Backup_AgentSetupmsi.tmp” of folder “__Download”}

extract Backup_AgentSetupmsi.tmp

wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID=%username% FIRSTBACKUP=1

The application is successfully installing, but it is not successfully registering the account as that user, which is what the LDAPID=%username% switch is supposed to do. Can you tell me by the above action if the switches are even running?

Thanks…

(imported comment written by BenKus)

Can you tell me which user that “%username%” is supposed to refer to? the currently logged in user? If so, remember that the agent runs these commands as the local system account and so the %username% is probably “LocalSystem”.

I can give you the relevance so you can look up the current user in BigFix, but what do you want to do if multiple users are logged in?

Ben

(imported comment written by hbkrules6991)

Hi Ben

Correct the %username% is the user that is logged onto the system and there would only be one at a time since it is a users Windows XP machine. If you could please give me the relevance I will try my luck at that.

Thanks…

(imported comment written by hbkrules6991)

OK I’m figuring I need to add name of current user to my action statement but I am not sure where. My co-worker simply created an exe out of the msi file and used BF to push out the client months ago. He is out of out of the office so I may have to wait until he comes back if it is dtermined we cannot use BF to push it out due to the needed switches

(imported comment written by BenKus)

Try this:

download http://server:52311/Uploads/05de48be87d8f7c166d348db2fcfcef93d057bc1/Backup_AgentSetupmsi.tmp
continue if {(size of it = 27892847 AND sha1 of it = “05de48be87d8f7c166d348db2fcfcef93d057bc1”) of file “Backup_AgentSetupmsi.tmp” of folder “__Download”}

extract Backup_AgentSetupmsi.tmp

// This next line will fail if there are multiple users logged on or if no users are logged on.
continue if {number of logged on users = 1}

wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID={name of logged on user} FIRSTBACKUP=1

(imported comment written by hbkrules6991)

Thanks Ben…

here is what i get now in the log file.

Command failed (Relevance substitution failed) wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID={name of logged on user} FIRSTBACKUP=0 (fixlet 24294)

I do not think it likes the {name of logged on user} statement because it fails on this one as well

continue if {number of logged on users = 1}

Just wanted to confirm these statements will indeed run on v6.0, as we have not yet upgraded to 7

(imported comment written by BenKus)

Ah… Yes… that relevance only works in 7.0+…

For 6.0, change it to:

download http://server:52311/Uploads/05de48be87d8f7c166d348db2fcfcef93d057bc1/Backup_AgentSetupmsi.tmp
continue if {(size of it = 27892847 AND sha1 of it = “05de48be87d8f7c166d348db2fcfcef93d057bc1”) of file “Backup_AgentSetupmsi.tmp” of folder “__Download”}

extract Backup_AgentSetupmsi.tmp

// This next line will fail if there are multiple users logged on or if no users are logged on.
continue if {exists current user}

wait “{pathname of system folder & “\msiexec.exe”}” /qn /i “{(pathname of client folder of current site) & “__Download\Backup_AgentSetup.msi”}” LDAPID={name of current user} FIRSTBACKUP=1

And you should upgrade to 7.0 or 7.1 when you get a chance…

Ben

(imported comment written by hbkrules6991)

Ben, thank you VERY much. She works now. And we plan on upgrading the BF server to 7.1 in Nov, and then obviously the clients after that…thanks again…