Solved

VB Script for Registry Modifications

Posted on 2013-01-29
6
154 Views
Last Modified: 2013-02-03
I would like a VB script that would allow me to modify the suggested registry files in this document. http://support.citrix.com/article/CTX325140 ... I can get part of it but I'm not sure how to create a script that will get multiple files with similar names. In any event, I'm interested in a script that will remove the suggested registry files mentioned in the document.

Thanks in advance.
0
Comment
Question by:jrobison
  • 3
  • 3
6 Comments
 
LVL 25

Expert Comment

by:SStory
ID: 38830892
Why not just uninstall using Revo Uninstaller. It was made to make sure registry entries and files don't get left behind.

http://download.cnet.com/Revo-Uninstaller/3000-2096_4-10687648.html

If files do get left behind, like config files and data files, which some don't uninstall as a precaution, a simple

rmdir /s <foldername>

can be executed or placed in a .bat file and executed.
0
 
LVL 25

Expert Comment

by:SStory
ID: 38830895
If not, here's how to delete a registry key with vb script.

http://technet.microsoft.com/en-us/magazine/2006.08.scriptingguy.aspx
0
 
LVL 1

Author Comment

by:jrobison
ID: 38831687
SStory .. I'm familiar with the scripting piece of it .. You could also create a reg file and use something like this [-HKEY_CLASSES_ROOT\KeyName] .. However I'm looking for something a little more sofisticated and would prefer a vb script with a few condition variables ( i.e If key exists then do this etc .. )  

Thanks for the input though.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 25

Expert Comment

by:SStory
ID: 38832109
No problem. Revo works great and takes care of all of this.

There is also the reg.exe file in system32 folder

REG delete <whatever>

I'd just try deleting it and if it isn't there it won't delete anything.

As for conditionals

You should be able to use IF THEN ELSE END IF in vbs. And the object in my second link should give you access to methods for checking key existence, etc.

Thanks
0
 
LVL 1

Accepted Solution

by:
jrobison earned 0 total points
ID: 38832154
I found exactly what I was looking for at this URL ... Did exactly what I wanted it to. Excellent reference.

http://www.gregorystrike.com/2010/05/24/vbscript-to-uninstall-old-citrix-clients/
0
 
LVL 1

Author Closing Comment

by:jrobison
ID: 38848291
The URL referenced was exactly what I needed to resolve my request.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now