Use ClickOnce to locally package and release the WPF application, clickoncewpf
Environment:
1) VS 2015 Windows10 x64. net framework 4.5.2
Key points:
1) The installation mode and settings can be used offline.
2) Select the installation location for the required system components and download the required system components at the same location as the application.
3) because the installation environment of the installation package may not have the. net framework4.5.2 environment, You Need To package. net framework 4.5.2 as follows:
.
Export to C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452 directory. If the DotNetFX452 directory does not exist, create the directory. 32-bit System
The directory is C: \ Program Files \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452.
C.copy ndp452-kb2901167-x86-x64-allos-chs.exe to the C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452 \ zh-Hans directory. 32-bit System
Is the C: \ Program Files \ Microsoft Visual Studio 14.0 \ SDK \ Bootstrapper \ Packages \ DotNetFX452 \ zh-Hans directory.
4) after completing the preceding steps, you can release the SDK successfully.
Package custom Resources
In general, we need to package some custom resources to the installation package, such as the default configuration file and images. The procedure is as follows:
1) First, add resources to the project;
2) copy the resource attribute to the output directory to always copy, and change the generated operation to the content;
3) Go to the release page of the Project Properties and click the application file. The resource is automatically included in the list.