Setup project for wpf application
I am trying to build a setup-msi using visual studio for my wpf ap开发者_JAVA百科plication. The issue i am facing is that i force primary output from wpf project to the setup project and the dependencies are calcaluted automatically. I run the msi locally (on the machine i built the wpf app) and everything works fine.
The problems start when i try to install it on different machines. On other machines i run the installation process and it finishes justfine but when i try to run the application i get exceptions about assemblies that could not be found.(e.g System.Web , Version=4,0,0,0 could not be found etc)
I really suck building setup projects but can anybody give a hand?
P.S.: I also tried installShield... same results.
I would guess that the target machine only had .NET Framework 4.0 Client Profile installed. System.Web is in .NET Framework 4.0 Extended, which is installed with the full 4.0 Framework but not with the Client Profile.
Are you bootstrapping .NET 4 in your setup?
Check for the presence of "Microsoft .NET Framework 4 Client Profile" and "Microsoft .NET Framework 4 Extended" in Add/Remove Programs (XP) or Programs and Features (Vista/7) on the machines where the application ran fine and those where it gave that error.
Edit: .NET Framework Deployment Guide for Developers. That should help you figure out how best to deploy it.
精彩评论