Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 12704

Multiple-package batch distro installation question

$
0
0

So we are going through a change of anti-virus company-wide and to accomplish this I have written a distribution package batch that scans the registry for three different GUIDs I've identified and if they are present it uninstalls the current software, if it found at least one and uninstalled it then calls a reboot.  This part works fine so far (I was actually expecting it to report a fail in LD because it calls a reboot from within the script--I didn't think it would give an exit code back to landesk, but it seems to work fine).  Anyway, the new antivirus has the prerequisite that the old one has been uninstalled, and it does this with a LD query.  So here is my issue:

 

I want to setup a distribution task to uninstall the old antivirus (if it's present--if it's not the script exits with a sucess return code) and if present then force an inventory scan following uninstallation (the PC will reboot at the end of this script if it found something to uninstall), THEN run my msi distribution package for the new antivirus installer.  As I mentioned the new A/V package I've set a prereq that it must NOT have the old one installed...problem is, that value doesn't get updated until the next time the inventory software scan runs and so the new A/V install task will fail.

 

I would like to integrate a full inventory scan into my batch that uninstalls the current A/V product--so I can set the logic to check if an uninstall happened and then force the update if it did...the problem is that I'm finding old/bad references to how to accomplish this.  I don't particularly want to use absolute path references, but I can if necessary I suppose, using the 32-bit program directory path environment variable to handle the 64-bit machines...

 

Any suggestions on the best way to handle this, and an example of the proper call in a batch to perform the scan?

 

Thanks!!


Viewing all articles
Browse latest Browse all 12704

Trending Articles