Skip to main content

Posts

Showing posts from May, 2011

Silverlight install error 1603 - 'Windows Installer Clean Up' to the rescue

Came across this error today whilst trying to install Silverlight for an enterprise LOB app, and as you know if you come across this error the support documentation on MSDN is pretty useless. The machine had the default Silverlight v3 install and we were trying to install an instance of v4. So first thoughts was local admin rights - I didn't have them, after finding someone who did, it was still failing. Next attempt was following the steps defined here but even after uninstall\reinstall still no luck. I started to think this was going to be a long afternoon. Then I remember a great little tool which is no longer available for download from MSDN -' Windows Installer Clean Up ', great little tool for cleaning the registry and file system of installed applications, but in the wrong hands this can totally wreak a machine, the reason why MS pulled it from MSDN, article here . Fortunately for me there's a copy on the corporate network, it's got a rather strange file

Using ILMerge for Windows Phone 7

I needed to IL merge the WP7Contrib assemblies today and this was the first time I've need used the tool. So I wanted to document configuration required for WP7. Most of the information I found in the following posts, here & here , but neither specify the ' /targetplatform ' option for the WP7 platform which is the key piece of info. So for 32 bit you need: /targetplatform:v4,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone" And for 64 bit you need: /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone" So putting what I read together I was able to create the following: "%programfiles%\microsoft\ilmerge\ilmerge.exe" /targetplatform:v4,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone" /out:WP7Contrib.dll ..\..\ILMergeAssemblyInfo.dll WP7Contrib.Caching.dll WP7