Geeks With Blogs

Cogito Ergo Code If I don't put it here - I will surely forget! January 2009 Entries
Unity App.Config Settings
Unity is a great Dependency Injection/Inversion of Control Framework, but every now and then I forget the format for configuring it inside an app.confg file. Here is a typical example of Unity usage. I have defined a rather simplistic IDataManager interface and created a bunch of different implementations of it. FakeDataManager - this really just throws errors and allows me to test my system against an unreliable database backend. It has a default contructor (IDataManager manager = new FakeDataManager();) ......

Posted On Thursday, January 22, 2009 3:39 PM

WIX .NET Conditions
It is useful to check for a number of conditions when installing an application. These are some of the ones I use all the time. <!-- you have to have admin priviledges to install this service --> <Condition Message="You need to be an administrator to install this product.">Privileged<... <!-- .NET Framework 2.0 must be installed --> <Condition Message='.NET Framework 2.0 must be installed prior to installation of this product.'> MsiNetAssemblySupport >= "2.0.50727" ......

Posted On Thursday, January 22, 2009 8:49 AM

WIX Variables
Anytime you go beyond a very simple Installer script, you will need to pass in variables into WIX (e.g. selecting assemblies from the \Release\ or \Debug\ folders, or retitling the MSI for a "Debug" build installer). Your WIX Script (WixVarDemo.wxs) might Include a few variables like this: <File Source='..\Solutions\bin\$(... ... /> ... <Directory Id="ProgramMenuDir" Name='Howard' LongName="Howard$(var.FOLDE... You would compile the script (and pass the variables ......

Posted On Tuesday, January 20, 2009 2:40 PM

Copyright © Howard Ricketts | Powered by: