This Question is Possibly Answered

1 "correct" answer available (20 pts)
6 Replies Last post: Oct 28, 2008 6:34 AM by ahe  
CraigB Rookie 8 posts since
Jan 28, 2008
Currently Being Moderated

Oct 27, 2008 10:51 AM

Remove Policy Registry Tag on Uninstall of Application

Hi All,

 

I was wondering if any of the LANDesk geniuses out there might have some suggestions on how I can approach this problem.

 

We deploy our packages using the policy method (linked to a AD group with a LDAP query) and this works very well for us (Post SP5). Our uninstall tasks use the push mechanisim. We have noticed that the registry key on the local client (HKLM\SOFTWARE\Intel\LANDesk\LDWM\AppHealing\Agent\AMClient\APM\PolicyCache\{Package-xxx}) to indicate a successful install is left behind. This prevents us from redeploying the application to the client

 

Is there anyway that we can create a vbscript that can pass in the package number detailed in the registry (in bold above) and delete it. I'm new to VBScripts and have learnt to manipulate registry keys (Add, Delete, Amend) but don't know how to read LANDesk data. We are hoping to use one VBScript for all our packages. Also, is it possible to pass in LANDesk data into VBScripts?

 

We are currently on 8.7 SP5.

 

Many thanks

Craig

Zman Master 1,600 posts since
Dec 14, 2007
Currently Being Moderated
1. Oct 27, 2008 11:38 AM in response to: CraigB
Re: Remove Policy Registry Tag on Uninstall of Application

LANDesk geniuses...isn't that an Oxymoron?

 

So this issues was reported to LANdesk and I believe addressed in 8.8 where the package ID was used as the reg key.  This will only prevent a PSP or required policy from being installed again.  So some ideas:

 

  • Upgrade to 8.8 - sorry had to list this 
  • Rather than scripting etc, you could just copy and paste the distribution package, and give it a new name. This will create a new IDN and will allow you to push again.
  • Create an optional policy for the users to reinstall. May or may not be an option depending on your requirements.
  • The other stuff is scripting. You could create a small autoitscript, batch file using REG, or vbscript to whack the key. The prereq would be the uninstall and the main package would be the key whacker. 

Sure somebody else will have some other ideas, but these should get the old juices flowing.

Zman Master 1,600 posts since
Dec 14, 2007
Currently Being Moderated
3. Oct 28, 2008 5:02 AM in response to: CraigB
Re: Remove Policy Registry Tag on Uninstall of Application

So it may be technically feasible to do this in vbscript or other scripting tools using ADO, I'm not sure it would be worth all the extra work when simply creating a new distribution task by copy and paste is much simpler and supportable. Also, I believe this goes away with 8.8. However, if you want to pursue:

 

http://www.technowledgebase.com/2007/06/12/vbscript-how-to-create-an-ado-connection-and-run-a-query/

 

It will be difficult to handle this in a multiple core environment.

 

Zman Master 1,600 posts since
Dec 14, 2007
Currently Being Moderated
5. Oct 28, 2008 5:55 AM in response to: CraigB
Re: Remove Policy Registry Tag on Uninstall of Application

So another thought would be to use the NAME key from the registry so you don't have to use any DB lookups.  So use Autoitscript or other language and search the registry for the NAME (this would be a command line argument so you don't have to write a lot of scripts), once you find the name check the TYPE for 1 (I think that is required), then whack the key.

ahe Expert 573 posts since
Dec 21, 2007
Currently Being Moderated
6. Oct 28, 2008 6:34 AM in response to: Zman
Re: Remove Policy Registry Tag on Uninstall of Application

Take a look on this thread too:

Application uninstall string from the registry

 

Regards

Axel

More Like This

  • Retrieving data ...
LANDesk Community powered by Jive Software's Clearspace ® Subscribe| Legal Notices| Investor Relations| Avocent| Privacy Policy © 2009 LANDesk Software