Setup Project
Setup Project
The File System provides the essential tools to work with the application folder, user's
desktop, and the user's programs menu.
The first thing we want to do here is to include the relevant files and folders we wish to
install on the user's machine. This is accomplished by right clicking the Application
Folder and selecting 'Add'. The following screenshot is an example of something similar
you may see.
Figure 7: Add Project Output
Now to add project output files to this folder, Click Project Output.
Merely add one or more of the files that is vital for your application by clicking on
File…. Now that you have you files in place.
Most applications have prerequisites: Components such as the .NET Framework runtime
must be available on a target computer in order for the application to run. The
deployment tools in Visual Studio include the capability to automatically detect the
existence of components during installation and install a predetermined set of
prerequisites — a process known as bootstrapping.
• Click OK to continue.
We need these prerequisites
-.Net FrameWork .02
-windows installer
-Crystall Reports for .Net FrameWork
-SQl Server 2005 Express Edition
Add a new Installer Class to the project by clicking on Project, Add Class, select the Installer
Class template, you may enter any name, the name we will use in this procedure is
MyInstallerClass.
-Right Click on the Setup Project and Click View.
/TargetDir="[TARGETDIR]\"
cmd.ExecuteNonQuery()
cmd.Dispose()
conn.Dispose()
Catch ex As Exception
MsgBox("xxxxx" & ex.Message)
End Try
End Sub