<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'SQL Server 2008 R2', 'virtual machines', 'setup', and 'evaluation edition'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=SQL+Server+2008+R2,virtual+machines,setup,evaluation+edition&amp;orTags=0</link><description>Search results matching tags 'SQL Server 2008 R2', 'virtual machines', 'setup', and 'evaluation edition'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Fun with software : uninstalling SQL Server 2008 R2 Evaluation Edition</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2010/10/25/fun-with-software-uninstalling-sql-server-2008-r2-evaluation-edition.aspx</link><pubDate>Tue, 26 Oct 2010 00:12:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:29823</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p style="font-weight:bold;font-style:italic;"&gt;Update 2012-07-23&amp;nbsp;&amp;nbsp;: &amp;nbsp;Note that much of these instructions also work for SQL Server 2012 Evaluation Edition, many of which will start expiring soon...&lt;/p&gt;&lt;p style="font-weight:bold;font-style:italic;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-weight:bold;font-style:italic;"&gt;Here we go 'round the uninstall bush...&lt;/p&gt;

&lt;p&gt;Today I spun up a rather aging VM so that I could take some screen shots from the 2008 R2 version of Management Studio.&lt;/p&gt;

&lt;p&gt;When I clicked on my shortcut, I received this error:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;img height="153" width="418" src="http://sqlblog.com/files/folders/29810/download.aspx"&gt;&amp;nbsp;&lt;/p&gt;
For searchability, here is the text (with an actual clickable link, imagine that): &lt;br&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
&lt;table bgcolor="#dedede" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div style="padding:8px 25px;font-family:consolas,lucida console,courier new,courier;"&gt;
&lt;p&gt;---------------------------&lt;br&gt;Microsoft SQL Server Management Studio&lt;br&gt;---------------------------&lt;br&gt;Evaluation period has expired. For information on how to upgrade your evaluation software please go to &lt;a title="http://www.microsoft.com/sql/howtobuy" target="_blank" href="http://www.microsoft.com/sql/howtobuy"&gt;http://www.microsoft.com/sql/howtobuy&lt;/a&gt;&lt;br&gt;---------------------------&lt;br&gt;OK&amp;nbsp;&amp;nbsp; &lt;br&gt;---------------------------&lt;/p&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/blockquote&gt;

&lt;p&gt;Of course what this meant was that, for this particular VM, I had installed an Enterprise Evaluation instance before the RTM bits for Developer Edition were available.&amp;nbsp; And clearly this happened more than 180 days ago, and I forgot about it.&lt;/p&gt;

&lt;p&gt;If you go the link (which ends up at &lt;a title="http://www.microsoft.com/sqlserver/en/us/default.aspx" target="_blank" href="http://www.microsoft.com/sqlserver/en/us/default.aspx"&gt;http://www.microsoft.com/sqlserver/en/us/default.aspx&lt;/a&gt;), there isn't really any information about converting evaluation software to licensed software (even if I already have licensed bits in hand).&amp;nbsp; In fact there is not really any information about Evaluation Edition at all, except for an offer to install a second trial instance on my machine.&amp;nbsp; I'm trying to remove one, but thanks anyway.&lt;/p&gt;

&lt;p&gt;So the first thing I do is to install a real, licensed version of SQL Server 2008 R2 Developer Edition.&amp;nbsp; I figure, if anything, it will at least give me a functional Management Studio again, even if I have an outdated Evaluation Edition engine lying around.&amp;nbsp; Nope, I run through install, and when I try to launch Management Studio, my evaluation period has still expired.&amp;nbsp; I plead to #sqlhelp on twitter, and I'm told I need to remove all of the 2008 R2 bits.&amp;nbsp; This was the first time I'd had any reason to uninstall 2008 R2; at my previous job, we had only just migrated to 2008 in production late last year.&amp;nbsp; I guess I should test cleanup more often.&lt;/p&gt;

&lt;p&gt;Now, removing SQL Server 2008 R2 turns out to be a much bigger challenge than you might expect.&amp;nbsp; Sure, you can go through the Control Panel and uninstall all of the components individually, but this is a hassle, and it still might not work very smoothly.&amp;nbsp; To clear a path, I've been uninstalling applications that might be related (e.g. Visual Studio), and even applications with no hope in hell of being related: Office 2010, Flash, Windows Live "Essentials"... I even uninstalled an instance of SQL Server 2008 (not an eval), and when I tried to remove the setup support files, I received this warning:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;img height="212" width="354" src="http://sqlblog.com/files/folders/29813/download.aspx"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Why on earth are the R2 Common Files dependent on SQL Server 2008 Setup Support Files?&amp;nbsp; And further to that, I'd like to know why, when I clicked No on this dialog, it seemed to remove the SQL Server 2008 Setup Support Files anyway.&amp;nbsp; It turns out there is some flag that removes the entry from the Programs and Features list, even if you don't go through with the uninstall.&amp;nbsp; All was returned to normal when I closed the window and opened it again.&lt;/p&gt;

&lt;p&gt;Anyway, let's see what happens when I try to remove R2 via the Control Panel.&amp;nbsp; I right-click the item in the list (and as you can see, "the list" is pretty short - and never mind the blurred out entries, I'll talk more about those soon, and they aren't related to R2):&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&amp;nbsp;&lt;img height="371" width="410" src="http://sqlblog.com/files/folders/29814/download.aspx"&gt;&lt;/p&gt;

&lt;p&gt;When I choose Uninstall/Change, I get this box, and I click Remove of course:&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&amp;nbsp;&lt;img height="255" width="304" src="http://sqlblog.com/files/folders/29815/download.aspx"&gt;&lt;br&gt;&lt;/p&gt;

&lt;p&gt;When I click Remove, I get the Setup Support Rules dialog (just like I do for a new installation), and then when I click OK, I get this lovely dialog (I trimmed it so I wouldn't have to shrink it, but you get the gist):&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&lt;img height="615" width="620" src="http://sqlblog.com/files/folders/29816/download.aspx"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight:bold;font-style:italic;"&gt;Why does this not seem like it will end well?&lt;/span&gt;&amp;nbsp; &lt;/p&gt;

&lt;p&gt;Because according to the dialog, nothing is going to be removed (usually you see actual features with checkboxes).&amp;nbsp; I should not even be able to see a Next &amp;gt; button.&amp;nbsp; But for fun, I'll click it anyway, since my only other option at this point is to Cancel.&amp;nbsp; I click Next &amp;gt; a couple of times, then a big shiny Remove button, and then after several seconds I get another even more lovely dialog, indicating that the uninstall has crashed:&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&lt;img height="188" width="611" src="http://sqlblog.com/files/folders/29817/download.aspx"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;And again for searchability (typo and all):&lt;/p&gt;

&lt;blockquote&gt;
&lt;table bgcolor="#dedede" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div style="padding:8px 25px;font-family:consolas,lucida console,courier new,courier;"&gt;
&lt;p&gt;TITLE: SQL Server Setup failure.&lt;br&gt;------------------------------&lt;br&gt;&lt;br&gt;SQL Server Setup has encountered the following error:&lt;br&gt;&lt;br&gt;No feature were uninstalled during the setup execution. The requested features may not be installed. Please review the summary.txt logs for further details.&lt;br&gt;&lt;br&gt;Error code 0x84B30002.&lt;br&gt;&lt;br&gt;------------------------------&lt;br&gt;OK&lt;br&gt;------------------------------ &lt;br&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/blockquote&gt;

&lt;p&gt;At this point I've spent more time on this than I would have if I had just built a brand new VM and.&amp;nbsp; But I was determined to see it through.&amp;nbsp; So I finally gave in and decided to go the msiexec.exe /x route.&amp;nbsp; I located all of the R2-related GUIDs in the following registry key:&lt;/p&gt;

&lt;blockquote&gt;
&lt;table bgcolor="#dedede" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div style="padding:8px 25px;font-family:consolas,lucida console,courier new,courier;"&gt;
&lt;p&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\&lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/blockquote&gt;

&lt;p&gt;Here is one example:&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&lt;img height="523" width="647" src="http://sqlblog.com/files/folders/29818/download.aspx"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;So I went through the entire list, and saved the following commands to a batch file:&lt;/p&gt;



&lt;blockquote&gt;
&lt;table bgcolor="#dedede" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div style="padding:8px 25px;font-family:consolas,lucida console,courier new,courier;"&gt;
&lt;p&gt;rem DisplayName&lt;br&gt;msiexec /x "{guid}"&lt;br&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/blockquote&gt;

&lt;p&gt;And I also added one that wasn't in the GUID list; there was a key under Uninstall called "Microsoft SQL Server 2008 R2" with the following properties:&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&lt;img height="90" width="611" src="http://sqlblog.com/files/folders/29820/download.aspx"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Here is what my final .bat file looked like. You'll note that I put the Setup Support Files last.&amp;nbsp; Also please note that your set of GUIDs may be different than mine... I'm just listing what I did as an example:&lt;/p&gt;


&lt;blockquote&gt;
&lt;table bgcolor="#dedede" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div style="padding:8px 25px;font-family:consolas,lucida console,courier new,courier;"&gt;
&lt;p&gt;rem SQL Server 2008 R2 Common Files&lt;br&gt;msiexec /x "{234F6B0D-10AE-4BB7-B2F3-E48D4861952D}"&lt;br&gt;&lt;br&gt;rem SQL Server 2008 R2 Common Files&lt;br&gt;msiexec /x "{36F70DEE-1EBF-4707-AFA2-E035EEAEBAA1}"&lt;br&gt;&lt;br&gt;rem SQL Server 2008 R2 Database Engine Shared&lt;br&gt;msiexec /x "{A2122A9C-A699-4365-ADF8-68FEAC125D61}"&lt;br&gt;&lt;br&gt;rem Microsoft SQL Server 2008 Setup Support Files &lt;br&gt;msiexec /x "{C0C690C8-F335-4BA4-A2AD-675EAD1DFA90}"&lt;br&gt;&lt;br&gt;rem SQL Server 2008 R2 Database Engine Shared&lt;br&gt;msiexec /x "{C942A025-A840-4BF2-8987-849C0DD44574}"&lt;br&gt;&lt;br&gt;rem Microsoft SQL Server 2008 R2 (64-bit)&lt;br&gt;msiexec /x "{20E42995-BBE9-4697-8394-FCDC4338706B}"&lt;br&gt;&lt;br&gt;rem Microsoft SQL Server 2008 R2 Setup (English)&lt;br&gt;msiexec /x "{C3E48238-5FA0-4C82-9509-36D47E371A29}" &lt;/p&gt;
&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/blockquote&gt;

&lt;p&gt;Running through these, I had several that returned a dialog about an unexpected error, but I ignored those and plowed through.&amp;nbsp; When I was finished, I ran the batch file again, and every line item raised this dialog:&lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;&lt;img height="151" width="366" src="http://sqlblog.com/files/folders/29821/download.aspx"&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;This is a good thing; it smells like I'm almost home.&amp;nbsp; So - finally - I try to run SQL Server 2008 R2 setup again.&amp;nbsp; To avoid some wasted time, I install only the Management Tools on my first run.&amp;nbsp; Though, if I'm being honest, even installing just the client tools takes several minutes.&amp;nbsp; Precious, Monday Night Football minutes.&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight:bold;font-style:italic;"&gt;And, believe it or not, we have success.&lt;/span&gt; &lt;br&gt;&lt;/p&gt;

&lt;p&gt;That was WAY too painful, and I'll never get that time back. Hopefully this post will prevent you from going down a similar rathole.&amp;nbsp; My advice: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Build VMs with the expectation that they may need to be paved over and rebuilt from scratch.&amp;nbsp; Keep SQL Server installation files, service packs, hotfixes, and slipstreamed sources handy on a non-virtualized machine or on removable storage.&lt;br&gt;&amp;nbsp;&lt;br&gt;&lt;/li&gt;

&lt;li&gt;Try everything in your power to avoid Evaluation Edition. Spend the $49 on Developer, and stop watching the clock or coming up with schemes to set your clock back to the 1980s.&amp;nbsp; Developer is not free like the eval, but it will be easier to migrate / replace than an expired evaluation.&amp;nbsp; I would have gladly spent $49 to not go through what I just documented here.&lt;br&gt;&lt;br&gt;&lt;/li&gt;

&lt;li&gt;When someone tells you to pave over your VM because R2 "does not uninstall nicely," listen to them.&amp;nbsp; I have two VMs that were in this state at the beginning of the day.&amp;nbsp; I'll let you guess how I'm going to deal with the second one.&lt;br&gt;&lt;br&gt;&lt;/li&gt;

&lt;li&gt;Because it bears repeating: avoid Evaluation Edition if there is any chance at all the software will be expected to outlast the 180-day trial period.&amp;nbsp; If you can't avoid it, when you're done evaluating, perform a thorough cleansing of your machine.&amp;nbsp; You never know how old software can learn new, frustrating tricks.&lt;br&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&amp;nbsp;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>