简体   繁体   中英

Clickonce WPF application with custom and default prerequisites

I have a .Net 4 WPF ClickOnce app that has .NET Framework 4, VC++ 2013 Runtime Libraries and Windows Installer 4.5 as prerequisites.

I now have to add VC++ 2010 Libraries.

I have followed the steps here to create a custom prerequisite package. In visual studio, the package shows up in my prerequisite list. However, the installer is not attempting to install the VC++2010 package.

product.xml

package.xml

I have downloaded the vcredist_x86.exe into the package directory, however I am unsure what to set under "Specify the install location for prerequisites", since I am now mixing custom and default pre-reqs.

Any assistance would be much appreciated!

Edit: I have logged my clickonce installation and see nothing referencing the VC++ package at all. No errors or anything.

The following configurations worked without having to include the package in the deploy.

package.xml package.xml

product.xml product.xml

I placed the files above in a new directory:

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\vcredist_x86-2010\product.xml
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\vcredist_x86-2010\en\package.xml

Note: I did not include the vcredist_x86.exe package anywhere in the bootstrapper directory - it is downloaded during installation.

先决条件对话框

Before the installer is run, on a fresh Windows 8.1 install;

安装前

Prompt for prerequisites;

提示

After installer, both C++ Runtime Libraries installed;

安装后

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM