<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>when setup isn't just xcopy : bugs</title><link>http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx</link><description>Tags: bugs</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Creative Commons Add-in for Microsoft Office v1.0.1 released.</title><link>http://blogs.msdn.com/robmen/archive/2006/06/27/648499.aspx</link><pubDate>Tue, 27 Jun 2006 14:02:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:648499</guid><dc:creator>robmen</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/robmen/comments/648499.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=648499</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.flickr.com/photos/86802561@N00/171850781/"&gt;&lt;img src="http://static.flickr.com/49/171850781_917fd33ebc_o.png" width="124" height="78" alt="Creative Commons Add-in for Microsoft Office" style="float:left"/&gt;&lt;/a&gt;As promised, the &lt;a href="http://blogs.msdn.com/robmen/archive/2006/06/22/644031.aspx"&gt;first two issues reported&lt;/a&gt; with the &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=113b53dd-1cc0-4fbe-9e1d-b91d07c76504"&gt;Creative Commons Add-in for Microsoft Office&lt;/a&gt; have been fixed.  You can go to the &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=113b53dd-1cc0-4fbe-9e1d-b91d07c76504"&gt;download page&lt;/a&gt; and get the new version.  The installation experience is identical to the previous version and the add-in looks the same.  The only changes from v1.0.0 to v1.0.1 were to ensure the Creative Commons license with the correct jurisdiction is downloaded and to have the add-in run correctly when PIAs for Word, Excel, and PowerPoint are not all installed.&lt;/p&gt;
&lt;p&gt;The third issue appears to be something with scaling on high DPI systems.  The 3Sharp guys spread the dialog out a little bit to help out a little bit.  At this time, I do not believe that we are planning another release of the add-in.&lt;/p&gt;
&lt;p&gt;I should also note that you do not need to uninstall the previous version of the add-in before installing the new version.  The installation will automatically upgrade the previous binaries if necessary.&lt;/p&gt;
&lt;p&gt;While no one likes to immediately rollout an update, the events of the last few days have provided me the opportunity to document the story behind the upgrade of the add-in. If all goes well, the next post on this topic from me will actually be about how we built the installation for the add-in.&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=648499" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category><category domain="http://blogs.msdn.com/robmen/archive/tags/setup/default.aspx">setup</category></item><item><title>Supporting the unsupported Creative Commons Add-in for Microsoft Office.</title><link>http://blogs.msdn.com/robmen/archive/2006/06/22/644031.aspx</link><pubDate>Fri, 23 Jun 2006 09:52:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:644031</guid><dc:creator>robmen</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/robmen/comments/644031.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=644031</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.flickr.com/photos/86802561@N00/171850781/"&gt;&lt;img src="http://static.flickr.com/49/171850781_917fd33ebc_o.png" width="124" height="78" alt="Creative Commons Add-in for Microsoft Office" style="float:right"/&gt;&lt;/a&gt;Tonight I had hoped to be continuing the &lt;a href="http://blogs.msdn.com/robmen/archive/2006/06/20/641202.aspx"&gt;story about the creation&lt;/a&gt; of the &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=113b53dd-1cc0-4fbe-9e1d-b91d07c76504"&gt;Creative Commons Add-in for Microsoft Office&lt;/a&gt;. Unfortunately, after a couple days of downloads a few bugs have worked back to those of us working on the add-in. I thought I'd share the known issue list with you and where we are at with them so far.&lt;/p&gt;
&lt;p&gt;1.  &lt;b&gt;Incorrect Non-Generic Jurisdictions&lt;/b&gt; - there was apparently some disconnect on each end of the web service implementation and licenses outside of the Generic jurisdiction were not working.  The 3Sharp guys already have a fix for the add-in and the Creative Commons guys are going to tighten up the server-side validation.  Of course, that means both of them are waiting for me to get the setup built and rolled out again.&lt;/p&gt;
&lt;p&gt;2.  &lt;b&gt;PIA Dependency Problems&lt;/b&gt; - the Creative Commons Add-in is currently bound to the Word, Excel and PowerPoint PIAs.  The tight binding means the add-in has problems loading if all three Office applications are not installed together.  &lt;a href="http://www.drmwatch.com/drmtech/article.php/3615591"&gt;Bill Rosenblatt&lt;/a&gt; was incredibly helpful as we tracked down why the add-in wasn't working for him (It turns out Bill had Word and Excel 2003 but PowerPoint 2002, this mismatch of PIAs confused the add-in).  I'm currently working with the 3Sharp guys to implement a solution for this problem.&lt;/p&gt;
&lt;p&gt;3.  &lt;b&gt;Funky Wizard Rendering&lt;/b&gt; - there has been one report that the controls in the wizard are very large and do not fit in the dialog box.  We are all pretty stumped on this one but Martha has an e-mail out to the guy with the problem so hopefully with a bit more information we'll track this one down.&lt;/p&gt;
&lt;p&gt;Technically speaking the Creative Commons Add-in for Microsoft Office is an &amp;quot;unsupported technology preview&amp;quot;.  However, those of us that have been working on this little tool really want you to be able use it.  If you hit any issues please send email to &amp;quot;ccfeedbk at microsoft.com&amp;quot;.&lt;/p&gt;
&lt;p&gt;Finally, expect a Creative Commons Add-in for Microsoft Office v1.0.1 release soon that will address issue #1 above and hopefully fix #2 as well.  I'll post more updates on my blog as soon as I have them.&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=644031" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category><category domain="http://blogs.msdn.com/robmen/archive/tags/setup/default.aspx">setup</category></item><item><title>MSN Toolbar Suite Beta setup built by the WiX toolset.</title><link>http://blogs.msdn.com/robmen/archive/2004/12/14/284839.aspx</link><pubDate>Tue, 14 Dec 2004 08:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:284839</guid><dc:creator>robmen</dc:creator><slash:comments>11</slash:comments><comments>http://blogs.msdn.com/robmen/comments/284839.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=284839</wfw:commentRss><description>&lt;p&gt;Since it appears lots of other people are talking about the &lt;a href="http://beta.toolbar.msn.com/"&gt;beta of the MSN Toolbar Suite&lt;/a&gt; (Scoble is tracking many of them &lt;a href="http://radio.weblogs.com/0001011/2004/12/13.html#a8887"&gt;here&lt;/a&gt; and &lt;a href="http://radio.weblogs.com/0001011/2004/12/14.html#a8888"&gt;here&lt;/a&gt;) so I thought I'd take a look at it.&amp;nbsp; Besides, I'm tired tonight and not up to writing anything superbly technical.&amp;nbsp; Anyway, I downloaded the bootstrapper that kicked off the install.&amp;nbsp; It was obviously a Windows Installer package so I went rooting around for their MSI file to see what I could see.&amp;nbsp; I finally found a copy of it (in the Windows Installer cache that I will talk about some other night) and popped the MSN Toolbar Suite's MSI file open in Orca.&lt;/p&gt; &lt;p&gt;At first, I was pretty excited because the installation package was written using the &lt;a href="http://wix.sourceforge.net/"&gt;WiX toolset&lt;/a&gt; (albeit a version of WiX built about four months ago).&amp;nbsp; Unfortunately, as I investigated deeper, I saw some non-ideal authoring.&amp;nbsp; For example, the Directory table has a number of entries where the short and long names for the directory are identical.&amp;nbsp; This bloats the package for no reason.&amp;nbsp; More recent builds of the WiX toolset print out a warning to inform the setup developer about that kind of unnecessary duplication.&amp;nbsp; Also, I noticed a large number of invalid identifiers in the MSI file.&amp;nbsp; Those also would have been caught if built by a more recent build of the WiX toolset.&amp;nbsp; &lt;/p&gt; &lt;p&gt;As you can see, the WiX toolset is slowly getting smarter about bad authoring.&amp;nbsp; I've even considered adding a &amp;quot;-pedantic&amp;quot; switch to candle.exe many times to catch things that just shouldn't be done in an MSI file.&amp;nbsp; However, for now there is plenty of error checking to tighten in the WiX toolset without the &amp;quot;-pedantic&amp;quot; switch.&amp;nbsp; But, I digress...&lt;/p&gt; &lt;p&gt;Fortunately, none of the errors described above are fatal with the current versions of the Windows Installer available so the Beta installed just fine (it's indexing my machine right now).&amp;nbsp; However, to ensure future compatibility with the Windows Installer at least the identifier issue should be fixed.&amp;nbsp; Also, fortunately, this release is just a beta package so there is still time for all of the issues to get fixed.&amp;nbsp; Finally, a few of the MSN Toolbar Suite guys are coming up to Redmond this week (they are down at the Silicon Valley campus) and they've scheduled lunch with me to talk about how they are using the WiX toolset.&amp;nbsp; I'll raise these issues with them again there.&lt;/p&gt; &lt;p&gt;Oh, and I agree with &lt;a href="http://www.atrevido.net/blog/PermaLink.aspx?guid=900f7ae9-9ec8-4dd7-9c01-4a36878fbe2c"&gt;Michael Giagnocavo&lt;/a&gt;, &amp;quot;What's with the shortcut on the desktop?&amp;nbsp; Don't do that!&amp;nbsp; The desktop is the user's space.&amp;nbsp; At least ask for permission to stick stuff there.&amp;quot;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=284839" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category><category domain="http://blogs.msdn.com/robmen/archive/tags/wix/default.aspx">wix</category></item><item><title>Update on the status of the Office Local Installation Source.</title><link>http://blogs.msdn.com/robmen/archive/2004/09/24/234029.aspx</link><pubDate>Fri, 24 Sep 2004 20:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:234029</guid><dc:creator>robmen</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/robmen/comments/234029.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=234029</wfw:commentRss><description>&lt;p&gt;A &lt;A href="http://blogs.msdn.com/robmen/archive/2004/02/04/67797.aspx"&gt;while ago&lt;/a&gt; I asked for help tracking down what appeared to be a bug in &lt;a href="http://office.microsoft.com/"&gt;Microsoft Office System 2003&lt;/a&gt;'s &lt;a href="http://www.microsoft.com/office/ork/2003/two/ch3/DepC06.htm"&gt;Local Installation Source&lt;/a&gt; (aka: LIS, codename: LocalCache) feature that meant the Windows Installer still required the original source media when patching.&amp;nbsp; Many people answered my plea and with their help at least one of the bugs causing the problem was tracked down and killed.&amp;nbsp; It has been a while since I got back to this issue and people continue to send me requests for help so I thought I'd post a follow up that tries to summarize everything that I know about the issue at this point in time.&lt;/p&gt; &lt;p&gt;First, all of the issues related to LocalCache that I will cover here apply only to Office 2003.&amp;nbsp; Office XP and any version of Office before that do not have the LocalCache feature.&amp;nbsp; If you are having issues with Office XP or earlier the only useful piece of information I have for you is my next point.&lt;/p&gt; &lt;p&gt;Second (and I seriously considered making this my first point), if you have reached the point where you are being prompted for the original source media (for example, the Office installation asking for SKU011.CAB) then you will have to find the source media.&amp;nbsp; I am very sorry but I know of no way to get back into a good state without providing the original source media for your copy Office.&amp;nbsp; Over the last few months, I have heard many tales of loss and despair where the common theme was no longer having access to the original CDs and/or network installations.&amp;nbsp; You have my sympathies but all I can offer now is that this problem has renewed my desire to solve the issue at the root cause (the installation technology itself).&amp;nbsp; At least, in the near future expect an explanation here about what causes the source media prompt and why LocalCache came to be.&lt;/p&gt; &lt;p&gt;Third, after you have found the original media I would suggest enabling the LocalCache using the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=10fa7aa3-695b-42c3-9045-b812ba0fed3e&amp;amp;DisplayLang=en"&gt;Local Installation Source Tool (listool.exe)&lt;/a&gt;.&amp;nbsp; I discussed the listool.exe in more detail in a &lt;A href="http://blogs.msdn.com/robmen/archive/2004/05/28/144005.aspx"&gt;previous blog entry&lt;/a&gt;.&amp;nbsp; I suggest using the listool.exe to get back in a good state because it does a number of checks to make sure that your LocalCache is valid.&amp;nbsp; After using listool.exe to fix your LocalCache, you should not see a prompt for the source media again assuming two things: you do not clear the cache yourself and you install &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9C51D3A6-7CB1-4F61-837E-5F938254FC47&amp;amp;displaylang=en"&gt;Office 2003 SP1&lt;/a&gt;.&amp;nbsp; See the next two points for more details.&lt;/p&gt; &lt;p&gt;Fourth, many people that contacted me about Office 2003 requiring the original source media during patching had cleared their LocalCache.&amp;nbsp; There are many ways to clear the LocalCache but three seemed to be most common.&amp;nbsp; First, you can &lt;a href="http://robm.members.winisp.net/images/localcache_endofinstall.png"&gt;check the box at the end of the Office installation&lt;/a&gt; that said, &amp;quot;Delete installation files&amp;quot;.&amp;nbsp; Second, you can use the &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;310312"&gt;Disk Cleanup Tool&lt;/a&gt; and &lt;a href="http://robm.members.winisp.net/images/localcache_diskcleanupwizard.png"&gt;check the &amp;quot;Office Setup Files&amp;quot; box&lt;/a&gt;.&amp;nbsp; Finally, you could &lt;a href="http://robm.members.winisp.net/images/localcache_msocache.png"&gt;delete the &amp;quot;MSOCache&amp;quot; directory&lt;/a&gt; that appears on one of your drives (note: playing around with this directory is highly discouraged).&amp;nbsp; To be clear, clearing the LocalCache makes it almost certain that you will be prompted for the original source media during patching or other repair operations.&amp;nbsp; That is why I highly recommend using the listool.exe to ensure LocalCache is enabled and then do not clear the cache.&lt;/p&gt; &lt;p&gt;Fifth, you need &lt;a href="http://officeupdate.microsoft.com/"&gt;Office 2003 SP1&lt;/a&gt; to kill off a bug that was causing the LocalCache to inadvertently be cleared.&amp;nbsp; K tracked this down to a case where if rollback occurs during repair or patching (due to an error or user cancel) then too many files could be removed from the cache.&amp;nbsp; The goal was to have only the files requested to the cache for repair or patching to be removed when a rollback occurred.&amp;nbsp; But the bug caused all files necessary for the repair or patching to be removed.&amp;nbsp; The first file to be removed is usually the SKU###.CAB (for example, SKU011.CAB) that is almost always needed for any repair or patching operation.&amp;nbsp; K fixed the bug in Office 2003 SP1 by just removing the code since caching files during a repair or patching is an edge case and it is very difficult to correctly calculate which files were added to the cache during the repair or patching operation.&amp;nbsp; It is safer to leave a couple extra cabinets in the cache than to remove too many cabinets.&lt;/p&gt; &lt;p&gt;Finally, if you'd like more help trying to fix your LocalCache I suggest checking out the microsoft.public.officeupdate newsgroup.&amp;nbsp; There is some great information out there.&amp;nbsp; In particular, I find &lt;a href="http://www.tech-archive.net/Archive/Office/microsoft.public.officeupdate/2004-07/0477.html"&gt;this post&lt;/a&gt;, &lt;a href="http://www.tech-archive.net/Archive/Office/microsoft.public.officeupdate/2004-07/0445.html"&gt;this post&lt;/a&gt;, and &lt;a href="http://www.tech-archive.net/Archive/Office/microsoft.public.officeupdate/2004-07/0403.html"&gt;this post&lt;/a&gt; are particularly pertinent.&amp;nbsp; Sloan Crayton was the &lt;a href="http://go.microsoft.com/fwlink?linkid=5521"&gt;Product Support Services&lt;/a&gt; (PSS) engineer I worked with for a number of years in Office and I have kept him in the loop with all the information I've gathered from my blog here.&amp;nbsp; He usually has the best answers for any of your Office installation issues.&lt;/p&gt; &lt;p&gt;Best of luck and check back here in the future if you'd like the story behind LocalCache (and how it was supposed to help prevent source media prompt problem).&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=234029" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category><category domain="http://blogs.msdn.com/robmen/archive/tags/setup/default.aspx">setup</category></item><item><title>Weird parsing problems using the Windows Installer XML (WiX) toolset?</title><link>http://blogs.msdn.com/robmen/archive/2004/07/08/177407.aspx</link><pubDate>Thu, 08 Jul 2004 15:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:177407</guid><dc:creator>robmen</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/robmen/comments/177407.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=177407</wfw:commentRss><description>&lt;P&gt;If you are using the &lt;A href="http://wix.sourceforge.net/"&gt;Windows Installer XML toolset&lt;/A&gt; to compile very large .wxs files, you may have hit a bug where candle.exe or light.exe essentially &lt;A href="http://sourceforge.net/mailarchive/message.php?msg_id=8544019"&gt;complain that your XML is invalid&lt;/A&gt;.&amp;nbsp; This was &lt;A href="http://sourceforge.net/mailarchive/message.php?msg_id=8558657"&gt;tracked down&lt;/A&gt; to a bug in the &lt;A href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemXmlXmlReaderClassTopic.asp"&gt;XmlReader class&lt;/A&gt; where XML processing instructions are not always parsed correctly.&amp;nbsp; Back then I was told the bug would be fixed in the .NET Framework 1.0 SP3 or .NET Framework SP1.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Well, I just noticed that the &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=12721880-cb9f-4481-9610-987de96532e7&amp;amp;DisplayLang=en"&gt;.NET Framework 1.1 Service Pack 1 Tech Preview&lt;/A&gt; was recently released.&amp;nbsp; If you are daring (or desperate) you can try the Tech Preview, it should contain the fix for XmlReader bug.&amp;nbsp; Of course, the Tech Preview is not release quality code so you might encounter other problems.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;In any case, my understanding is that the .NET Framework 1.1. SP1 and .NET Framework 1.0 SP3 should be released later this year.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Update:&amp;nbsp; Found a link with more information about the &lt;A href="http://msdn.microsoft.com/netframework/downloads/updates/sptechpreview/default.aspx"&gt;.NET Framework Service Pack Tech Previews&lt;/A&gt;]&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=177407" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category><category domain="http://blogs.msdn.com/robmen/archive/tags/wix/default.aspx">wix</category></item><item><title>VBScript (and Jscript) MSI CustomActions suck</title><link>http://blogs.msdn.com/robmen/archive/2004/05/20/136530.aspx</link><pubDate>Fri, 21 May 2004 06:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:136530</guid><dc:creator>robmen</dc:creator><slash:comments>22</slash:comments><comments>http://blogs.msdn.com/robmen/comments/136530.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=136530</wfw:commentRss><description>&lt;p&gt;Today was one of those days where you finally get around to looking at the time and wonder where the heck the hours went.&amp;nbsp; It wasn't even like I really got a lot done.&amp;nbsp; I think my &lt;a href="http://www.google.com/search?hl=en&amp;amp;ie=UTF-8&amp;amp;q=define%3Acontext+switch"&gt;context switch&lt;/a&gt; costs have been really high lately.&amp;nbsp; It feels good to finally be home chilling out to the &lt;a href="http://www.discogs.com/release/238907"&gt;Perfecto Chills albums&lt;/a&gt;.&amp;nbsp; I thought I'd relate a short story to you why VBScript (and Jscript for that matter) should not be used for CustomActions in an MSI.&lt;/p&gt;
&lt;p&gt;Today, I realized it was 15:39 when a fellow developer, we'll call him Joe, called me at work.&amp;nbsp; My first thought was, &amp;quot;Jeez, it's almost 4 o'clock and I haven't got anything done!&amp;quot;&amp;nbsp; My second thought was, &amp;quot;I bet Joe is screwed.&amp;quot;&amp;nbsp; Joe only calls me when the &lt;a href="http://wix.sourceforge.net/"&gt;WiX toolset&lt;/a&gt; has completely failed or he has hit the wall with the Windows Installer.&amp;nbsp; Today, Joe had hit the wall.&lt;/p&gt;
&lt;p&gt;&amp;quot;Rob, have you been tracking the email thread about the CustomAction of mine that is failing?&amp;quot;&amp;nbsp; I had seen this thread earlier in the day and remembered Joe mentioning something about a VBScript CustomAction.&amp;nbsp; &amp;quot;A little bit, you're not really using VBScript for your CustomAction, are you?&amp;quot;&lt;/p&gt;
&lt;p&gt;That was it.&amp;nbsp; Joe was attempting to debug some rather complex issues with a VBScript CustomAction interacting with some COM components during an install.&amp;nbsp; Everything seemed to work fine if he ran the VBScript (slightly modified) in the cscript.exe or wscript.exe hosts.&amp;nbsp; However, when the script executed in the Windows Installers &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/scripting.asp"&gt;ActiveScript engine&lt;/a&gt; it failed in rather mysterious ways.&lt;/p&gt;
&lt;p&gt;Interestingly enough, a Windows Installer developer attached one of the many emails that I send to people when they are having problems using VBScript for CustomActions.&amp;nbsp; In those emails, I always suggest that script never be used for CustomActions in MSI.&amp;nbsp; So, Joe called me and asked, &amp;quot;So what can I do, Rob?&amp;quot;&lt;/p&gt;
&lt;p&gt;My answer was simple, &amp;quot;Joe, there is a reason I recommend never using VBScript for CustomActions.&amp;nbsp; It's because there isn't really a whole lot you can do when you get into this kind of situation.&amp;quot;&amp;nbsp; Then I provided him a few ideas that started with attempting to get the script debugger to somehow attach and try to then debug over to the COM component and ended up suggesting getting the command-line debugger attached to the COM component on load.&amp;nbsp; None of which is trivial.&lt;/p&gt;
&lt;p&gt;What I don't understand is why people completely disregard dire warnings that certain technologies should not be used in certain circumstances.&amp;nbsp; Yes, I understand it is extremely easy to write CustomActions in VBScript.&amp;nbsp; No, that doesn't make it a good thing to use in your install.&lt;/p&gt;
&lt;p&gt;So, I'm blogging here tonight at the end of a very long day to share with you three reasons, I recommend you not use VBScript or Jscript for CustomActions:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; &lt;b&gt;Robust code is difficult write in script.&lt;/b&gt;&amp;nbsp; Setup code must operate on machines that are in an unknown state. &amp;nbsp;In such hostile environments, there are many different ways that code can fail.&amp;nbsp; Properly recovering from error conditions is very important (even if it just results in rollback).&amp;nbsp; &amp;quot;On Error Resume Next&amp;quot; is not conducive to proper error handling in code.&amp;nbsp; For this reason alone, &lt;a href="http://office.microsoft.com/"&gt;Microsoft Office&lt;/a&gt; banned all script CustomActions from their MSI files.&amp;nbsp; I am admittedly biased but I believe Office has one of the most impressive, smooth, and stable setup programs for the Windows platform, especially considering its complexity.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; &lt;b&gt;Debugging script in the Windows Installer is difficult.&lt;/b&gt;&amp;nbsp; Some might even argue it is impossible to debug script CustomActions.&amp;nbsp; As Joe is going to find out for the next few days, debugging the interactions between the Windows Installer, the scripting engine, and any other objects is a non-trivial task because the tools are so primitive.&amp;nbsp; There are many tools for C/C++ code that can have very low impact on the machine if you are tracking a particularly skittish bug.&amp;nbsp; Maybe I'm only called in when bugs are really hard, but there have been many times I was thankful for &lt;a href="http://msdn.microsoft.com/library/en-us/ddtools/hh/ddtools/dbgblurb_25bn.asp"&gt;ntsd&lt;/a&gt; and &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q286470"&gt;pageheap.exe&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; &lt;b&gt;Anti-virus products kill them.&lt;/b&gt;&amp;nbsp; This one just killed me.&amp;nbsp; A couple years after Office banned the use of scripting for CustomActions, &lt;a href="http://msdn.microsoft.com/vstudio/"&gt;Visual Studio&lt;/a&gt; shipped their first MSI setup.&amp;nbsp; They decided it would be okay if there were a few script CustomActions.&amp;nbsp; When customers got the product, &lt;a href="http://support.microsoft.com/directory/"&gt;PSS&lt;/a&gt; started getting reports of the Visual Studio setup mysteriously failing and rollingback.&amp;nbsp; After some very long calls, PSS discovered that if the users' anti-virus programs were disabled the installations would succeed.&amp;nbsp; Turns out many of the top name anti-virus programs considered the scripts hosted by the Windows Installer to be virus and would kill the scripts off failing the Visual Studio install.&lt;/p&gt;
&lt;p&gt;Anyway, hope you enjoyed the stories and remember, &amp;quot;VBScript and Jscript suck for CustomActions.&amp;quot;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=136530" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category><category domain="http://blogs.msdn.com/robmen/archive/tags/setup/default.aspx">setup</category></item><item><title>Did you LocalCache and find that Office still requires the installation CD when patching?</title><link>http://blogs.msdn.com/robmen/archive/2004/02/04/67797.aspx</link><pubDate>Thu, 05 Feb 2004 07:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:67797</guid><dc:creator>robmen</dc:creator><slash:comments>46</slash:comments><comments>http://blogs.msdn.com/robmen/comments/67797.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=67797</wfw:commentRss><description>&lt;p&gt;&lt;i&gt;Update 09/24/2004:&amp;nbsp; I am no longer looking for more information related to this issue.&amp;nbsp; Please see &lt;A href="http://blogs.msdn.com/robmen/archive/2004/09/24/234029.aspx"&gt;this blog entry&lt;/a&gt; for the latest information about LocalCache issues.&amp;nbsp; Thank you to all who provided information that helped determine just how prevalent this issue is and where to go searching for the bug.&lt;/i&gt;&lt;/p&gt; &lt;hr /&gt; &lt;p&gt;Last year I posted a &lt;A href="http://blogs.msdn.com/robmen/archive/2003/12/23.aspx"&gt;blog entry&lt;/a&gt; that mentioned my work on the &lt;a href="http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/office/office2003/reskit/ork03/html/DepC06.asp"&gt;local installation source&lt;/a&gt; (LIS) feature (that I call "LocalCache") for the &lt;a href="http://office.microsoft.com/"&gt;Microsoft Office 2003 System&lt;/a&gt;.&amp;nbsp; That blog entry generated quite a few comments where people mentioned that &lt;a href="http://office.microsoft.com/officeupdate/default.aspx"&gt;patches to Office&lt;/a&gt; were still requiring the installation CD.&amp;nbsp; Then I saw a link from &lt;a href="http://radio.weblogs.com/0001011/2004/01/28.html#a6427"&gt;Scoble's blog&lt;/a&gt; to this &lt;a href="http://www.dylangreene.com/blog.asp?blogID=371"&gt;blog entry&lt;/a&gt; where people were complaining that they needed the original Office CD to install updates.&amp;nbsp; Finally, &lt;a href="http://www.kurtzeborn.com/wlentry.cfm?m=01&amp;amp;d=11&amp;amp;y=2004&amp;amp;u=9"&gt;K&lt;/a&gt; (who is the developer in Office that took over LocalCache when I moved to Windows) mentioned over break that his new laptop required the installation CD when demonstrating how installing a patch from &lt;a href="http://office.microsoft.com/officeupdate/default.aspx"&gt;Office Update&lt;/a&gt; shouldn't require the original source media.&amp;nbsp; Needless to say, it appears there is something not quite right with LocalCache out in the wild. &lt;p&gt;So K and I spent this last Monday morning trying to reproduce the problem on some machines other than his laptop.&amp;nbsp; Unfortunately, after several attempts we never had the problem occur.&amp;nbsp; Independently, one of the Office testers also tried to reproduce the problem with the MSDN Universal CD (where I first heard of the problem) and couldn't get it to occur then either.&amp;nbsp; PSS hasn't had a lot of people calling in about this one and don't think there is an issue here.&amp;nbsp; However, I think that there haven't been may calls because customers are (unfortunately!) used to requiring the original installation CD when patching. &lt;p&gt;K and I are going to beat on this problem a bit longer (we thought we found something that might be the issue on Monday but didn't pan out).&amp;nbsp; So, I'm out here asking that if you installed Office 2003 and have subsequently tried to install the patches and the patches required the original installation media, would you please &lt;A href="http://blogs.msdn.com/robmen/contact.aspx"&gt;contact me&lt;/a&gt;?&amp;nbsp; Just send your email address and I will likely get back to you asking for a bit more information about your machine's configuration and how you installed Office 2003. &lt;p&gt;I really want to kill off this bug (or at least understand what is going on if there turns out not to be a bug) and any help you can provide will be much appreciated.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=67797" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category></item><item><title>WordBlogX and its setup</title><link>http://blogs.msdn.com/robmen/archive/2003/09/09/56463.aspx</link><pubDate>Tue, 09 Sep 2003 09:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:56463</guid><dc:creator>robmen</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/robmen/comments/56463.aspx</comments><wfw:commentRss>http://blogs.msdn.com/robmen/commentrss.aspx?PostID=56463</wfw:commentRss><description>&lt;body xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;p&gt;
        It somehow seems appropriate that my first post to a blog destined to focus on setup
        should be about setup bugs in the tool used to write to the blog.&amp;#160; Namely, my &lt;a href="http://blogs.gotdotnet.com/ptorr/"&gt;housemate&lt;/a&gt;&amp;#160;just &lt;a href="http://blogs.gotdotnet.com/ptorr/PermaLink.aspx/e26ea857-c879-4e57-bbfe-667e04cd703a"&gt;released
        WordBlogX&lt;/a&gt;&amp;#160;and when I tried to set it up I hit several issues trying to configure
        it on my machine.&amp;#160; Amusingly, this gets me &lt;a href="http://blogs.gotdotnet.com/ptorr/PermaLink.aspx/2f77921a-bf11-42e5-83a8-3e9e176b5277"&gt;recognition &lt;/a&gt;in
        his blog. 
    &lt;/p&gt;
    &lt;p&gt;
        Anyway, things appear to be moving along and Word is new happily green squigglying
        (and red squigglying that) comma splices and fragment sentences.&amp;#160; Now, we can
        get on with the show!
    &lt;/p&gt;
&lt;/body&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=56463" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/robmen/archive/tags/bugs/default.aspx">bugs</category></item></channel></rss>