Why is package required?
ProgramAfter the development is complete, the client must make an installation package before it is finally delivered for use. Do not compress the files under release for delivery? Another important factor in packaging is that during software installation, you can check the running environment of the software, especially when using the software.. Net program. If the client does not install the framework, it cannot be used even if it is copied to the client. In addition, packaging facilitates program deployment. For example, you can restore the DB used by the program to the database during software installation.
First, we will give you the simplest package.
Create a blank solution
To package the test, we need to add a test project. Then, add the deployment project.
The solution includes the following items:
Next, right-click applicationsetup and select project output.
In the pop-up menu, select the project to be packaged
Now, compile and deploy the project. However, when the generated package file is installed, there is a nasty default company.
(If you need to set this parameter, click deploy project to view the Properties window, as shown in)
If you want to remove this item, right-click the deployment project and select
Select application folder and view the Properties window
Remove the manufacturer of defaultlocation.
Next, you need to generate a shortcut and use the custom icon.
In the file system window that just opened, right-click and add the icon
Right-click the Project Master output and create a shortcut
Drag and Drop the shortcut to the user's desktop folder in the directory (put it at the beginning-the Program is the same as the desktop)
Click this shortcut to view the icon properties in the Properties window and Click Browse
Select the icon you just added
OK, everything is done. Compile now
After the compilation is complete, right-click and choose install)
At this time, you will find the shortcut you just drag and drop on the desktop
Open debug under the bin of the deployment project and you will find that the installation program has been generated.
OK, I will write it here today. Next time I will talk about how to install the database during the installation process.