Generating Wix file (*.wxs) from an MSI

For generating Wix file (*.wxs) from an existing MSI we can utilize dark.exe that comes with Wix. Following is the command for generating it C:\Program Files\Windows Installer XML v3\bin>dark.exe <MSI File Path> <Path for Wix File (*.wxs)>  


Ajax Instrumentation

1            Introduction .NET supports lot of API’s for doing instrumentation with help of trace, TraceSource classes etc, but there is nothing on the client side front in web apps to do the instrumentation. With so many applications been build using Ajax there is no way to instrument the java script code. In fact ASP.Net Ajax…


Custom Trace Listener and Provider model

A listener is an object that receives the trace output and outputs it somewhere; that somewhere could be a window in your development environment, a file on your hard drive, a Windows Event log, a SQL Server or Oracle database, or any other customized data store. You can think of a Trace Listener as a…


XML Serializable Dictionary

Typically generic dictionaries are not serializable. For serializing the generic dictionaries we can write custom xml serializable dictionary class by inheriting from Dictionary<TKey, TValue> and also implementing the IXmlSerializable interface.   Below code snippet contains the code of XMLSerializable dictionary.   using System; using System.Collections.Generic; using System.Text; using System.Xml.Serialization; using System.Runtime.Serialization;   namespace CustomType {…


Transactions in Commerce Server 2007 Catalog

  There is no inbuilt support for transaction for commerce server 2007 catalog. For e.g. if one product needs to be added in the one commerce server catalog and also same products needs to be related to the product in same catalog or in different catalog, this thing needs to be done in the transaction,…


Linking Custom Config File to Machine Config File

There is configSource attribute with help of which content of the Machine.config file can be redirected to the custom config file.   Below is the sample   <system.diagnostics configSource=”GlobalDiagnostics.config”> </system.diagnostics>   For the system diganostic section in machine.config file a seperate  config file is been created, file name is GlobalDiagnostic.config. Global diagnostic file can then contain…