Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 749
Julien Avatar asked Jun 26 '14 16:06

Julien


1 Answers

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.

Prerequisites Dialog

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

Before install

Prompt for prerequisites;

prompt

After installer, both C++ Runtime Libraries installed;

after install

like image 81
Shawn McGough Avatar answered Oct 02 '22 01:10

Shawn McGough