[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

VB Script for Registry Modifications

Posted on 2013-01-29
6
Medium Priority
?
179 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

649 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