Solved

VB Script for Registry Modifications

Posted on 2013-01-29
6
160 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
User profile Size Report 3 84
Need script to search multiple files in one drive 13 55
Remove all hidden metadata properties of MS .Docx Files 7 46
Awk : two files math 8 20
Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

856 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