Solved

VB Script for Registry Modifications

Posted on 2013-01-29
6
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
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 dynamically set the form action using jQuery.

728 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