473,725 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

removing Beta versions

My PC was a completely screwed up mess. Nieither the unistall
tool or the manual uninstall at
worked. I also tried the VS 2005 beta cleanup tool at
http://blogs.msdn.com/astebner/archi...25/411974.aspx. This
tool was designed to remove Beta 1 in preparation for Beta 2. I
needed to remove Beta 1 in preparation for VS2005 Pro, not exactly the
same thing. No matter what I did VS2005 still crashed on startup;
though I think the 3 steps: uninstall tool, manual uninstall, and VS
2005 beta cleanup tool did move me closer.

In despiration I wrote me own tool to remove anything in the GAC
whose File Version included the word "beta" That was an extension of
what the VS 2005 beta cleanup tool did. To my shock it worked!

Here is the VS2003 code to remove "beta":

private void timer1_Tick(obj ect sender, System.EventArg s e)
this.timer1.Ena bled=false;
// test dll file info
// FileVersionInfo info =
FileVersionInfo .GetVersionInfo (@"C:\temp\Micr osoft.VisualStu dio.TextManager .Interop.8.0\8. 0.0.0__b03f5f7f 11d50a3a\micros oft.visualstudi o.textmanager.i nterop.8.0.dll" );
// fileVersion "8.0.40607. 16 (beta1.040607-1600)" string

string path=Environmen t.GetEnvironmen tVariable("Wind ir");
path+="\\assemb ly";
string [] dirs=Directory. GetDirectories( path);
foreach (string pp in dirs)
if (pp.Substring(p p.LastIndexOf(' \\')+1,3)=="GAC ")
string [] sdirs=Directory .GetDirectories (pp);
foreach (string spp in sdirs)
this.dirFiles(s pp);

using (StreamWriter sw=new StreamWriter(@" c:\temp\delete
foreach (string s in ddirs)
sw.WriteLine(s) ;
Environment.Exi t(0);


ArrayList ddirs=new ArrayList();
public void dirFiles(string path)
string [] dirs=Directory. GetDirectories( path);
foreach (string dir in dirs)
string [] files=Directory .GetFiles(path) ;
bool fileDeleted=fal se;
foreach (string file in files)
string fp=file;
FileVersionInfo info =
FileVersionInfo .GetVersionInfo (fp);
if (info.FileVersi on.ToLower().In dexOf("beta")>= 0)
Trace.Assert((( (TimeSpan)(Syst em.DateTime.Now-File.GetCreatio nTime(fp))).Day s>200),"File
too new");
File.Delete(fp) ;
fileDeleted=tru e;
files=Directory .GetFiles(path) ;
dirs=Directory. GetDirectories( path);
if (files.Length== 0 && dirs.Length==0 && fileDeleted)
ddirs.Add(path) ;

Here is the VS2005 Pro code to delete empty directories from the GAC
that I ran after I got VS2005 working with the above code:

private void timer1_Tick(obj ect sender, System.EventArg s e)
this.timer1.Ena bled=false;
string s;
using (StreamReader sr=new StreamReader(@" c:\temp\delete
while ((s=sr.ReadLine ())!=null)
if (s.Length > 0)
if (Directory.Exis ts(s))
Directory.Delet e(s);
string path = s.Substring(0,
s.LastIndexOf(' \\') - 1);
if (Directory.Exis ts(path))
string[] files = Directory.GetFi les(path);
string[] dirs =
Directory.GetDi rectories(path) ;
if (files.Length == 0 && dirs.Length == 0)
Directory.Delet e(path);

Environment.Exi t(0);

Jan 31 '06 #1
0 1376

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: ik | last post by:
ERROR after uninstalling SQL Server 2005 Express I get this message, SQLDMO has not been registered. Please re-run your setupand contact your system administrator. GREAT!!! ReInstalled SQL SERVER 2000 after playing around with SQL Server 2005...
by: juanv | last post by:
When I am try to remove a corrupt .NET 2,0 Beta. the controlPanel/AddRemove programs wizard tells me that the file netfx.msi is not valid. I have extracted the file from dotNetFx.exe from two different locations within MS (I was told that there are two different versions), but both versions failed. This is preventing me from installing the other express tools. juanv@microsoft.com
by: Marek Kurowski | last post by:
Yo! What mean when program is ALPHA or BETA version? I suppose it is not release version of program, but I don't know what it exactly mean. What it mean in your opinion? Marek Kurowski
by: Michael C | last post by:
While I think just about every IT expert out here agrees that the first commandment is Thou Shalt Not Install Beta Software in a Production Environment, the corollary to this would have to be that if you're naive enough to install a beta of anything on a production machine, you should *at the very least* least back it up. Even if you're installing an RTM version or Service Pack you should take precautionary steps in case something breaks...
by: Benjamin.Nitschke | last post by:
Today I installed Microsoft Visual Studio 2005 Beta 2 from the Visual Studio Beta Experience Kit. After installing (which takes way to long) when I open Visual Studio 2005 I only get a message box saying "A problem was encountered loading the Microsoft Visual Studio menu. Please run setup and select Repair". I did that and that took another hour to install and I still got the same problem. Can't see any log file or system event message...
by: Chuck | last post by:
I'm trying to install VWD Express Beta 2, but it's telling me that I need to uninstall MSDN Express Library 2005 Beta first. I uninstalled everything using the Add/Remove Programs control panel applet, and the Express Library is not showing up there. I also ran Registry Medic to clean up any registry problems that might have been causing this problem. Any other ideas on how can I resolve this issue? I'd like to get the beta 2...
by: Jon Ripley | last post by:
I am writing a plugin for APIViewer, a popular development tool, this plugin is in the form of a Visual Basic 6.0 DLL and is based on source code from the supplied SDK. Everything seems to work perfectly on my development machine but every one of the (wonderful) people helping me to beta test the plugin are getting the following error on the second and all subsequent versions of the plugin they receive: Run-time error '-2147221231...
by: Aziz | last post by:
Hi, I've recently contacted technical service of a web hosting company and asked them wheter or not they're gonna upgrade to PHP5 and MySQL5. Here's a quote from their response which confused me a little: "As php5 and mysql5 are still beta versions we don't install beta versions on production servers due to secure reasons, we install only current working versions on production servers"
by: dtsearch | last post by:
A new beta build offers 64-bit developer access to dtSearch's "terabyte indexer," and preliminary MS Word 2007 and Excel 2007 support (in both 64-bit and 32-bit versions) BETHESDA, MD (July 22, 2006) dtSearch Corp., a leading supplier of enterprise and developer text retrieval software, announces a native 64-bit beta version of the dtSearch Text Retrieval Engine for Win & ..NET. The dtSearch Engine lets developers add dtSearch's...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.