Reboot required after 1st Action

(imported topic written by amitspradhan)

Hi,

I am trying to perform an upgrade of our existing ePo agents on all systems. To do this, I have the below 2 actions running,

  1. Unistall the older agent.

  2. Install the new agent.

download http://172.10.18.34:52311/Uploads/df0dd8f8f2b076611ffbf26a3d78fc22f05d68a3/big219C.tmp

continue if { (size of it = 2630508 and sha1 of it = “df0dd8f8f2b076611ffbf26a3d78fc22f05d68a3”) of file “big219C.tmp” of folder “__Download”}

extract big219C.tmp

wait __Download\frminst.exe /forceuninstall /silent

download http://172.10.18.34:52311/Uploads/e1cdd90643bd9bdc6fb949325305f3a77823809c/big11A3.tmp

continue if { (size of it = 3698712 and sha1 of it = “e1cdd90643bd9bdc6fb949325305f3a77823809c”) of file “big11A3.tmp” of folder “__Download”}

extract big11A3.tmp

wait __Download\FramePkg.exe /install=agent /forceinstall /silent

For the second action to run and complete succesfully, it is a mandate that there is a reboot done post the 1st action.

Just wondering how do I do this intermediate reboot and set my post action tasks after my first action…can someone help me on this…

Regards,

Amit

(imported comment written by larry.lotspeich91)

I’m curious as to why you would need to uninstall and reboot to upgrade your EPO agent? I have never had to do this and we have been using EPO since version 2. You should be able to use your second action and upgrade in place.

(imported comment written by amitspradhan)

Hi Larry,

We tested ths with 2 different installables, one which was set for authentication to the respective domain (since we have a few physically and logically seperated networks), while the other which is a generic package and there is no authentication needed. The previous version installed is the one with authentication, wherein we observed that when we tried removing it, it did not clearoff all the reg entires thereby not reinstalling the new package. Post reboot everything worked fine…

Not sure which package of 3.6 do you have, in case you have one which doesnt require a rebot, can you share the installable with me, I can test it on our network hee…

Regards,

Amit

(imported comment written by BenKus)

Hey Amit,

You can try to separate your Fixlet into two Fixlets… One to uninstall and one to install… then put them in a baseline and put a restart task in between the two… I think that will work and if it does, please let us know.

Ben

(imported comment written by dgibson91)

When we update our agents, we don’t need to uninstall the previous version first.

Have you tried simply :

download http://172.10.18.34:52311/Uploads/e1cdd … ig11A3.tmp
continue if { (size of it = 3698712 and sha1 of it = “e1cdd90643bd9bdc6fb949325305f3a77823809c”) of file “big11A3.tmp” of folder “__Download”}
extract big11A3.tmp
wait __Download\FramePkg.exe /FORCEINSTALL /INSTALL=AGENT /SILENT

Also, i’m not sure why you download the old frame installer, it should be on the PC already. If you need to uninstall it first, try this :

wait “{value “Uninstall Tool” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\Shared Components\Framework” of registry as string}” /UNINSTALL=AGENT /SILENT

OR, this should work too:

wait “{value “Installed Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Agent” of registry as string}\FrmInst.exe” /UNINSTALL=AGENT /SILENT

I have read that forceuninstall creates a new Agent GUID, not sure if this is what you want or not.

Here is an action we have used to uninstall, clean up any files left behind by the uninstall, then re-install:

parameter “CMAdir” = “{value “Installed Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Agent” of registry as string}”

//Download new CMA
download http://172.10.18.34:52311/Uploads/e1cdd … ig11A3.tmp
continue if { (size of it = 3698712 and sha1 of it = “e1cdd90643bd9bdc6fb949325305f3a77823809c”) of file “big11A3.tmp” of folder “__Download”}
extract big11A3.tmp

//Uninstall
wait {parameter “CMAdir”}\FrmInst.exe" /UNINSTALL=AGENT /SILENT

//Delete Framework folder if anything is left behind.
if {exists folder parameter “CMAdir”}
dos rmdir /Q /S "{parameter “CMAdir”}"
endif

//Delete anything left in the data folder
if {exists folder (value “Data Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\Shared Components\Framework” of registry as string)}
dos rmdir /Q /S "{value “Data Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\Shared Components\Framework” of registry as string}"
endif

//Finally install the new CMA
wait __Download\FramePkg.exe /FORCEINSTALL /INSTALL=AGENT /SILENT

Hope this helps.