Removing & installing MSI package

(imported topic written by SystemAdmin)

Hi,

1> I have created a action script to Install a MSI package

download http://10.0.22.140:52311/Uploads/d5ea7e9ea1caf77a5bf2ac7d7c545d51a0608465/CCAAgent-4500msi.tmp

continue if {(size of it = 5918339 AND sha1 of it = “d5ea7e9ea1caf77a5bf2ac7d7c545d51a0608465”) of file “CCAAgent-4500msi.tmp” of folder “__Download”}

extract CCAAgent-4500msi.tmp

wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\CCAAgent-4.5.0.0.msi”}” ALLUSERS=2 /qn /norestart /l*v “{pathname of folder “temp” of windows folder & “\MyLogFile.txt”}”

Here the action is shown as completed but the software is not installed when i have gone through the logs it says.

Reconfiguration success or error status: 1638.

MSI (s) (48:88)

13:05:48:822

: MainEngineThread is returning 1638

MSI (s) (48:7C)

13:05:48:822

: No System Restore sequence number for this installation.

Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel

2> Then i modifed the action to first removal of the prior version then install the same

download http://10.0.22.140:52311/Uploads/d5ea7e9ea1caf77a5bf2ac7d7c545d51a0608465/CCAAgent-4500msi.tmp

continue if {(size of it = 5918339 AND sha1 of it = “d5ea7e9ea1caf77a5bf2ac7d7c545d51a0608465”) of file “CCAAgent-4500msi.tmp” of folder “__Download”}

wait “{pathname of system folder}\msiexec.exe” /X{04010300-6D72-4D54-8686-91D884A27B5C} /qn

extract CCAAgent-4500msi.tmp

wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\CCAAgent-4.5.0.0.msi”}” ALLUSERS=2 /qn /norestart /l*v “{pathname of folder “temp” of windows folder & “\MyLogFile.txt”}”

but the action is getting failed during removing of prior version

Failed wait “{pathname of system folder}\msiexec.exe” /X{04010300-6D72-4D54-8686-91D884A27B5C} /qn

Please guide me for the same.

Thanks

Aakash

(imported comment written by NoahSalzman)

http://support.bigfix.com/cgi-bin/kbdirect.pl?id=1230

You want:

wait “{pathname of system folder}\msiexec.exe” /X

{{

04010300-6D72-4D54-8686-91D884A27B5C} /qn

(imported comment written by SystemAdmin)

Hi Noah,

I tried the action script my adding A curly bracket “{” the action is now getting completed.

But the i am getting error in the logs & the version of the software remains the same.

Here is the content of the log file

=== Verbose logging started: 4/5/2011 9:04:23 Build type: SHIP UNICODE 4.05.6001.00 Calling process: C:\WINDOWS\system32\msiexec.exe ===

MSI © (E4:68)

09:04:23:609

: Resetting cached policy values

MSI © (E4:68)

09:04:23:609

: Machine policy value ‘Debug’ is 0

MSI © (E4:68)

09:04:23:609

: ******* RunEngine:

******* Product: C:\Program Files\BigFix Enterprise\BES Client__BESData\actionsite__Download\CCAAgent-4.5.0.0.msi

******* Action:

******* CommandLine: **********

MSI © (E4:68)

09:04:23:609

: Client-side and UI is none or basic: Running entire install on the server.

MSI © (E4:68)

09:04:23:609

: Grabbed execution mutex.

MSI © (E4:68)

09:04:56:328

: Failed to connect to server. Error: 0x800706BA

MSI © (E4:68)

09:04:56:328

: Failed to connect to server.

MSI © (E4:68)

09:04:56:328

: MainEngineThread is returning 1601

=== Verbose logging stopped: 4/5/2011 9:04:56 ===

or is there any other action script to uninstall the application

(imported comment written by JackCoates91)

Hi,

I just googled that error code and it looks like you need to reregister the msiexec service.

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=msiexec+0x800706BA

msiexec /unreg
msiexec /regserver