C# .NET - How to customize MSI Installer using C#

Asked By Ravi G
09-Jan-10 07:16 AM
We have created an MSI Installer using C#.
In the Installer we have the following screens:
1. Welcome screen
2. Installation Folder screen
3. Confirmation screen
4. Installation progress screen
5. Installation Completed screen

All the above screens are provided by the MSI Installer by default.

************* Query ****************************

We have requirement to validate the LICENSE keys before installation starts (Installation Folder screen). The License Key will in binary format palced in the same folder as MSI.
So we would like to get the control from Welcome screen to validate the license key. Please let us know if there is any way to get the control.

Thanks in advance.

You can use custom Actions to validate license keys.  You can use custom Actions to validate license keys.

09-Jan-10 10:36 AM
Or choose the Orca Tool to validate for license information like a serial number. There is a Microsoft Support article http://support.microsoft.com/default.aspx?scid=kb;en-us;Q253683, that talks about the steps involved in using Orca to customize windows installer that validates a serial number.

Also, there is an http://www.codeproject.com/KB/install/msinetserial.aspx on Code Project that throws more light on the same concept that is briefed in the Support article link above. And also provides you downloadable source code. 

I would even look at an alternative solution to Visual Studio: Wiks to be able to deliver a wholly customizable windows installers, which are pretty highly configurable and reliable. 

Hope it helps.
Create New Account
help
visual studio installation problem Actually, my OS is Windows Xp with service pack2.I added service pack3 to install visual studio2010.after that i tryed to installed, but am getting SETUP FAILED due to "Windows Installer 4.5 Update (x86) " due to this other are not processing. and am getting below one in log file as error cause: Microsoft Windows Installer 4.5 Update (x86) - Windows XP: [2] CGenericComponent::Install() expects the setup file for Microsoft Windows Installer 4.5 Update (x86) - Windows XP, but the file is not available. [08 / 10 / 11 with HRESULT -2147467259. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Windows Installer 4.5 Update (x86) - Windows XP is not installed. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Visual F# 2.0 Runtime was not attempted to be installed. [08 / 10 / 11, 14:26
NET 2003 Professional I had VS .NET 2003 Professional installed on my machine and also Visual Web Developer 2005 Express Edition. Both work and after a few days both stopped working This step-by-step article describes two methods that you can use to remove Microsoft Visual Studio .NET 2003 from your computer. Back to the top Back to the top Remove Visual Studio .NET 2003 by using the Add or Remove Programs tool loadTOCNode(2, 'summary'); To remove Visual Studio .NET 2003 by using the Add or Remove Programs tool in Control Panel, follow these double-click Add or Remove Programs . 3. In the Currently installed programs list, click Microsoft Visual Studio .NET 2003 , and then click Change / Remove . Follow the onscreen instructions to remove Microsoft
how to deploy application respected sir , i have made an windows application in visual studio 2005 and now want to make it executable file please help in vb.net default install it on the target computers. Here we will be learning the deployment using the Visual Studio .NET Deployment tools. Before the practical demo I must tell you the various project editors that used in for the deployment. Deployment Project Editors Visual Studio .NET allows you to specify files to be included in a deployment project and to you can also customize the user interface that is displayed when a user executes the .msi file. To accomplish this there are six editors in deployment projects: • File System • Registry • File the edit menu. The Registry Editor When an application is installed, you can add registry keys and values to the registry of the target computer. For example, you can set values
different programs. But if i load my program on fresh install machine which has only visual studio and sql server, it works very well. So if anyone can know what can be adds one or two trivial properties, then compiles and sells it as a new control? Visual Basic's licensing support protects your investment. When you add licensing support to your control component, a license key is compiled into it. This key covers all the controls in the component. Running your Setup program transfers the license key to another computer's registry, allowing your controls to be used for development. Simply copying your .ocx file to another computer and registering it does not transfer the license key, so the controls cannot be used. To add licensing support to your control project MyProject> Properties to open the Project Properties dialog box. Select the General tab, check Require License Key, then click OK. When you make the .ocx file, Visual Basic will create a .vbl file containing the registry key for licensing your control component