Specific steps to package

Source: Internet
Author: User
Packaged

can refer to:
Specific steps to package (VS.NET2003+WIN2K):

1 new "Installation and Deployment Project"--> "Setup Wizard"

2 Select the Item--> in the menu to add the--> file (select "Create for Windows application. exe")--> Open

3 generally automatically adds dependencies to "detected dependencies" and if not, we will add them manually 4)
CRYSTAL_MANAGED2003.MSM (if there is a crystal report)
DOTNETFXREDIST_X86.MSM (. NET must be necessary)
... (if there is a reference to another DLL)

4) Manually add the files to include: Project--> adding--> merge modules (add your program files) (including dotNetFramework and MDAC27)
Located in: C:\Program Files\Common Files\merge modules\, * as necessary

The specific functions are as follows:
(Managed component MSM handles distribution of all managed components, including Windows Forms Viewer, Web Forms Viewer, and all Crystal decisions namespaces)
* CRYSTAL_MANAGED2003.MSM
Crystal_managed2003_chs.msm

(For all other files required to run the report, the database access MSM handles its distribution.) These include database, export, and chart drivers. )
* CRYSTAL_DATABASE_ACCESS2003.MSM
Crystal_database_access2003_chs.msm

(KeyCode MSM processing Crystal decisions Key number installation, note that add merge module, otherwise there is no "mergemouduleproperties" attribute)
* CRYSTAL_REGWIZ2003.MSM

(If the report file uses a Ado.net DataSet DataSet object, then the vc_user_crt71_rtl_x86_---. MSM and vc_user_stl71_rtl_x86_ MSM modules must also be package Included in the installation works.
And the "Module Retargetable folder" Item of the file installation properties of these two modules must be modified to become the system directory.
Vc_user_crt71_rtl_x86_---. MSM
Vc_user_stl71_rtl_x86_---. MSM
(many people often appear query error, may add this)

5 Open Solution--> right click on crystal_regwiz2003.msm properties, "License key" in "Mergemouduleproperties" Fill in: Aap5gks0000gde100ds (this is the password that you generate the registration number for the crystal. )

6 Build the solution (or press ctrl+shift+b directly)

So the entire distribution program has been done, and then the installer just done double click ...

-----------------------------------------------------------------------
Add Uninstall function when packing:

Method One:
1. Add file msiexec.exe (usually found under c:\windows\system32\) in the package item
2. Select an application folder in the file system view, press the right button on the Msiexec.exe, select the Create shortcut, and rename the shortcut to uninstall.
3. Change the arguments of this shortcut to "/x {Product ID}" and the value of the product ID is ProductCode The value of the package.

Method Two: (recommended)
1. In the installation package, write down the ProductCode (select Solution Explorer root such as Setup1, and then view the property label, not the property in the right key), use the following
2. Use Vs.net to build a new console program Uninst.exe file
' Power By:landlordh
' For 2000,xp,2003
Module Uninstall
Sub Main ()
Dim myprocess as Process = New process
If System.Environment.OSVersion.ToString.IndexOf ("NT 5") Then
Myprocess.start ("msiexec", "/x{2b65d4a9-c146-4808-ab4b-321fb0779559}") ' changed to its own ProductCode
End If
Myprocess.close ()
End Sub
End Module
3. Add the exe file of the console program Bin directory to the package program file and create a Uninst.exe shortcut in the program group

-----------------------------------------------------------------------
The MS Pluginstaller plug-in installed, with the vb.net with the packaging tools packaged, will automatically
The. NET Framework environment is typed in, and the following steps are set up to package MDAC as well.

Install MDAC using the Setup project
1. Ensure that the Visual Studio. NET Framework bootstrapper Plug-ins are installed.
2. Select the Setup project in Solution Explorer.
Point to Editor from the View menu and select Launch Conditions (Launch condition).
3. Select Requirements on target Machine (search target computer) node.
From the Action menu, choose Add Registry Launch Condition (add Registry Search).
4. Select the Search for RegistryEntry1 node. In the Properties window,
Select the RegKey property and type Software\Microsoft\DataAccess.
5. Select the Root attribute and select VSDRRHKLM.
6. Select the Value property and type FullInstallVer.
7. Select the property attribute and type Mdacsearch.
8. In the Launch Conditions Editor (Launch condition), add the Condition1 node.
Select the Condition1 node, in the Properties window, select the Condition property and select Mdacsearch>= "2.6".
9. Select the Setup project in Solution Explorer. On the Project menu, select Properties.
10. Set the Bootstrapper property to Windows Installer Bootstrapper (Windows Installer bootstrapper).
When you compile the Setup project, the. NET framework can redistribute packages and MDAC to be packaged together with the Setup.exe.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.