Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?

I have created a small desktop application using .NET 4 for generating an authentication string. It runs fine on my Windows 7 computer, however when I deployed it to our QA guy on his Vista machine, it gave him an error saying he needed to install .NET 4... FAIR ENOUGH. We installed .NET 4, however the next error said that "Microsoft.Web.Infrastructure.dll" was missing from the GAC. Crap. So I poked around a bit and found this:

enter image description here

I then set Publish Status of Microsoft.Web.Infrastructure.dll to Include and published again. This time it gave him an error about "System.Web.Mvc"! So I knew I was on to something. So I went and did this:

enter image description here

However, now when he runs it it just says it can't download files required to run the application, and will not specify what they are!

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?

Note: I think Razor and MVC are included because this windows desktop app project is dependent on some other projects in this solution that are using MVC. (Basically this desktop app is using some of the Models.)

Edit: Here is the end result (README was added by me not VS)

enter image description here

like image 942
MetaGuru Avatar asked Nov 21 '25 09:11

MetaGuru


1 Answers

As it turned out, the second screen shot view with everything set to Include was the proper way and worked fine while the first screen shot caused missing DLL errors during install. It really was just an FTP upload user error that had the installer looking for a folder that was not there, which is why the second version did not work the first time.

like image 186
MetaGuru Avatar answered Nov 23 '25 18:11

MetaGuru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!