starting with Visual Studio 2012, Microsoft has completely wiped out its original installation and deployment tools, and instead lets everyone install a third-party packaging tool, "InstallShield Limited Edition for Visual Studio", note that this version is free, only need to register under the mail, there will be a registration code. I don't know what Microsoft is trying to do, but since he asked us to use it, we'll use it. (In fact, back in VS2010, Microsoft put InstallShield Limited Edition for Visual Studio in it, just when the home product is still there ).
Because InstallShield Limited Edition for Visual Studio has too few tutorials and materials, I decided to write this article today, specifically for C # projects, including packaging integrated Microsoft. NET Framework and so on. Everyone from the official download of the latest version of InstallShield Limited Edition for Visual Studio, is supported VS2010, VS2012, VS2013 (calf in WIN7, WIN8 installed Normal, But the WIN8.1 are not going to fit in anyway ... )
How to download the registration:
Register with your e-mail, will be free to send a registration code, do not need to crack
1. A basic three-tier project was built to test the packaging
2, according to the actual situation, fill in the basic information of the program
3, this step is very important, see:1) set to Simplified Chinese, otherwise the installation path has Chinese words will be a problem 2) set the default installation path 3) modify the default font 4) each time you upgrade, RePack, just click on the "..." button on the right side of this line, the code will be rebuilt and the old version will be automatically overwritten when installed
4. Select the. NET Framework I want 4.0
5, do not do anything here
6. Add files and programs to be packaged
7. Right---attribute (properties)
8, very Important:1) If you are. NET Project program DLL, EXE, then follow the default settings, do not change, or error 2) If you are OCX or ActiveX, etc. need to register the DLL, then select "Self-registration"
9. Set Shortcut
10. Registry configuration:
1) Open this2) Now this test project, do not need to write the registry information, so I do not change anything. If your project is going to write a registry, fill it out.
11, Installation interview (Installation Interface dialog box configuration):1) Open this 2) I will not change, everyone according to their own needs to adjust. 3) If you want to modify, click this
12, modify the Installation Procedures, dialog box, background, etc.
13 . To this step, the most important question remains: how to package the. NET Framework into a program:1) solution, click "Specify Application Data"--double-click "Redistributables"--Tick "Microsoft. NET Framework 4.0 Full"--when checked, it will be automatically networked to download, Download speed is relatively slow, after the end, the right will become "installed locally" A). NET 4.0: If everyone is too slow, then go to the Internet to download: Dotnetfx40_full_x86_x64.exe, and then put on this path: C:\Program Files (x86) \installshield\2013le\ Setupprerequisites\microsoft. Net\4.0\full This can save a lot of time, but besides this, it also needs to download something else, but you can save this part of the time
B). NET 3.5 SP1: Download the Dotnetfx35.exe, and then put it in this path:C:\Program Files (x86) \installshield\2013le\setupprerequisites\microsoft. net\3.5 Sp1\full
14, the final setting:1) solution, click "Prepare for Release"--double click "Releases"--click on "Singleimage"--Tab click "Setup.exe"--find "InstallShield Prerequisites Location ", set it to" Extract from Setup.exe "
15, packaging completed, operating effects such as:1) The packaged program is placed in this place:Xxx\express\singleimage\diskimages\disk1\setup.exe (70.9MB, relatively large)
All by Flydoos 2013-11-19
InstallShield Limited Edition for Visual Studio 2013 Graphics Tutorial (teaches you how to pack.) NET program)