Hi,refer this :http://msdn.microsoft.com/en-us/library/k3bb4tfd(v=vs.80).aspxyou will get answer for all version 2005, 2008, 2010 and VB.Net C#.Netanother is use of third party application :www.installshield.com