Hadad
Hadad

Reputation: 344

setup project .net 4 prerequisite

I added .NET Framework 4 to my setup package as a prerequisite. When installing this package, an error reports that installing .NET 4 requires WIC "windows imaging component", which I've also added as a prerequisite.

But the installation failed due to a newer version of this component being already installed.

I want to ask how to check whether this WIC is installed or not and skip installing it when there is a newer version?

Upvotes: 4

Views: 501

Answers (2)

Mandoleen
Mandoleen

Reputation: 2661

At your package add check condition for the prerequisites so that if it is already installed then don't install.

Upvotes: 0

Morten Frederiksen
Morten Frederiksen

Reputation: 5165

You are correct. .NET does depend on this component. You could consider creating your own bootstrapper package using this: http://archive.msdn.microsoft.com/bmg

Upvotes: 1

Related Questions