Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install msi package, asking for .Net framework 4

Tags:

c#

.net

msdeploy

I recently upgraded my system to Windows 7 Enterprise. I have created an install package for a console application built with .Net framework 3.5 in VS2010. But when I try to install the msi on an XP machine, it gives me this warning that .Net Framework 4 is required.

Steps I tried to resolve the error:

  1. Right click on Project and set the Target Framework to .Net Framework 3.5 in Application tab.
  2. Right click on Project, Select Publish > Prerequisites > a) Selected .Net Framework 3.5 SP1 and b) Windows Installer 3.1
  3. Right click on Setup Project, Prerequisites > a) Selected .Net Framework 3.5 SP1 and b) Windows Installer 3.1
  4. Rebuild Setup Project to create msi.

All my above steps are futile since I am still getting a warning when I am installing the msi on an XP machine.

Has anybody got better idea to resolve this issue?

like image 507
Dee Avatar asked Jul 26 '12 10:07

Dee


1 Answers

I think I have found the solution to this problem.

Right click on Setup Project > View > Launch Conditions. Over here, it was already referring to .Net Framework, Right click on it > Properties, change the version to .Net Framework 3.5. It solved the problem.

like image 147
Dee Avatar answered Sep 17 '22 07:09

Dee