![]() |
Development Lifecycle »
Installation »
General
Intermediate
License: The Code Project Open License (CPOL)
Deploy your Application or Component Using Windows InstallerBy Prabhakar ManikondaAn article on creating setup programs without having the knowledge of setup scripts |
Windows, .NET, Visual Studio, Dev
|
||||||||||
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
Title: Deploy your Applications and Components Using Windows Installer Author: Prabhakar Manikonda Email: email2prabhakar@gmail.com Environment: Visual Studio .Net 2003, Windows 32 bit Platforms. Keywords: Windows Installer, Deploying your application or component, Visual Studio .Net, Easy Setup Program Level: Intermediate Description: An article on creating setup programs without having the knowledge of setup scripts. Section Software Deployment using Visual Studio Setup and Deployment SubSection Microsoft Visual Studio .Net
Open the Visual Studio IDE, and select File->New ->Setup and Deployment Projects. Select the Setup Wizard. Give the File name and location where to store that project as shown in the below figure.
Welcome to Setup Project Wizard will appear. It is a simple Four Steps Wizard. Click on the Next Button. In the second step on the wizard it will ask the type of the setup. Choose appropriate here I has chosen setup for windows application and click Next.
In the third step of this wizard it will ask to add your developed application or component and other files that you need to place in the clients machine, for example say documentation files
Now It will display as shown below figure.
You can find these editiors in the solution explorer each as a button as shown below,
Allows you to specify conditions that must be met in order to successfully run an installation.

As shown in above figure, User InterfaceManagement Editor is used to specify and set properties for predefined dialog boxes that are displayed duging the installation on the target system.

The Customer Information Dialog is important to protect your software.
for that first set the Show SerialNumber property to true ( false by default).
there will be a template for the serial key called SerialNumberTemplate:-
Valid editable characters for the SerialNumberTemplate property are:
| Character | Meaning |
|---|---|
|
# |
Requires a digit that will not be included in the validation algorithm. |
|
% |
Requires a digit that will be included in the validation algorithm. |
|
? |
Requires an alphanumeric character that will not be included in the validation algorithm. |
|
^ |
Requires an uppercase or lowercase character. Numeric digits are not valid here. |
|
< |
Any characters to the left of this character will not be visible in the dialog box. |
|
> |
Any characters to the right of this character will not be visible in the dialog box. Required as a terminator if the < character is used. |
note that any other character is treated as a literal constant.
The Default template is <###-%%%%%%%>, Which create two text boxes separated by a dash surrounded by spaces.
The first has # which means that use must enter three numbers but those numbers will not be participating in the validation algorithm.
The Second box had seven digits,
% means that it will be involving in the validation. we apply modulo 7 to the sum of these required digits and if it equate to 0 algorithm returns true and the user can proceed to next dialog box.
Example:-
<###-%%%%%%%>,
124 - 7134501 is one of the key by which the user can proceed to next dialog box.
the first three digits 1, 2 and 4 can be any digits as they will not participate in validation.
the next seven digits 7134501 when you sum them you will get 21 and if you apply 21%7 you will get 0 so this is ok. Like wise you have to proceed.
You can add the dialog boxes like end user license agreement dialog and serial key dialog as shown.
Step 5
When you build the application, you will find the install program for your software or component in the projects debug directory.
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 3 Sep 2006 Editor: |
Copyright 2006 by Prabhakar Manikonda Everything else Copyright © CodeProject, 1999-2009 Web22 | Advertise on the Code Project |