Here I explained the step by step procedure to deploy windows application by extending PART - 1 of this Article
Windows Set Up And Deployment - PART-2
Setup and Deployment using The Previous PART-1 development Code of The Article
Part - 1 of the article can be read from
http://www.dotnetfunda.com/articles/article926-windows-setup-and-deployement-using-visual-studio--part-1-.aspxContinuation To Part-1.......
Step-1
Open Visual Studio->New
Project->In Project Types Select Other Project Types->In
Templates
Select Setup Project-> Assign Name as Your Choice ->I
Assigned SETUPMERLIN->
In Set Up Project we have File System Section-> In That we
have Three
Sub Folders Name as
1) Application
Folder 2) User’s Desktop 3)User’s Programs Menu

Step by Step I described
The Purpose of Each And
Every Folder
1)
Application
Folder:
a)This is
the heart of Setup and Deployment Folder, where we need to place exe
files, dependent dlls,dependent images,icons,Databse Files, dependent
File
Folders[Like doc,ppt,pdf] e.t.c
b)Keep
like Blind Identification-Place Files What ever the Targeted System
Needed.
c)What
ever the files Placed In Folder fall under Installed Location weather it
may be
a Program Files or it may be a Customized Installation Folder
2) User’s Desktop:
Place
Files What Ever You need on The Desktop after installing the setup file
in the
targeted Machine
3) User’s Programs Menu:
Place
Files What Ever You need on The User Programs[Windows-Start-All
Programs] Menu
after installing the setup file in the targeted Machine
Step-2
Right
Click on Application Folder->Select Add->Select File

Step-3
It opens Add
File Dialog Box-Go to the Project Folder What we did in The Previous
PART-1(I Named My Project as MerlinSetUpProject)-Below The File
Location
In My PC where the code Available

Step-4
Go to Bin\Debug
Folder add
all files [.exe’s, .dll’s, .mdb, .acs] what client system needed,
here
select files like MerlinSetUpProject.exe, AxInterop.AgentObjects.dll,
Interop.AgentObjects.dll,
Interop.AgentServerObjects.dll,
merlin.acs, myDataBase.mdb.and Click On Open

Step-5
Add Images what
you
needed, here I need icon for .exe file For User Desktop Shortcut as well
as
Programs Menu Short Cut.
Right
Click on Application Folder->Select Add->Select File-Add
MyIcon.ico [Add
What ever U want as Short Cut Image] from Desktop-Then it will add to
Application Folder

Step-6
Now
My
application Folder Looks with the Following Content

Step-7
Now Right Click On The MerlinSetUpProject.exe
and Click on Create Shortcut to MerlinSetupProject.exe..Create
Two
Short Cuts for this exe

Step-8
After creating
shortcuts
Application Folder contains the following two files as Marked Below

Step-9
Now drag and drop one
short Cut
File in User Desktop Folder and One in User’s Programs
Menu
Folder.->Open User Desktop Folder and User’s Programs Menu and
Rename
Short Cut exe file Name as your choice –which were depicted in following
Screen
Shots

Do The
same For User’s Programs Menu Folder
Step-10
Assign
Icons For Short Cuts
a) Click on User’s Desktop Folder
–Right Click on Shortcut –Click Properties Window->In Properties
Window
Select Icon Property ->Select Browse

b) Click Browse

c) After Clicking Browse->Icon
Dialog will Opens->Click On Browse->

d) Item In Project Dialog
Will Open

e)Click On Application Folder-

f)Select MYICON.ICO and Press Ok-Again Click OK

Step-11
Repeat
the same step-10
for the User’s Programs Menu Folder
Step-12
Now
Build the
Project
Then Set Up is
Ready To Use.
Note: Open –Set up Project in
Your Hard
Disk-It Consist of Bin\Debug Folder which is depicted in The
Following
Screen. Which consists of Windows Installer Package.

You can deliver
this .msi
to the clients and Install
Before going to
install
this Microsoft Installer Package @ Client we need the following
Pre-Requisites
to Be Installed
Microsoft Windows
Installer 3.1
.Net Framework 2.0 /3.5
Finally Our .msi package.
Installation
Procedure
In Client Desktop
Step-12-a
Double
click on SETUPMERLIN.msi
package ->It will opens the screen as follows

Step-12-b
Click On Next
Step-13-c
Select Every One
For Using All Users In Windows->Click Next->Next ->Close

Step-13-d
Installation
Completed Successfully-See my Desktop and Programs Menu is Having
Shortcut
Icons of Merlin Project
Desktop

Program Menu

Summary and
Conclusion
- In This
Article I
Explained and Covered 100% Round Trip In Windows Deployment By Using
Microsoft
Access Database. It is even same for Sql Server.
- For Sql Server
it is a
mater of Constructing Connection String Dynamically That’s it
- I explained
Merlin COM
Component In Brief
- I hope This
Article
Helps for Beginners to Advanced Learners