Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 507 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Visual Studio 2010 setup and deploy the MSI installer to work for .NET 4.0 full applications over client?

#1
My application (unfortunately) requires the full 4.0 [.NET][1] framework. It appears there is no way through the Visual Studio setup and deploy projects to create and post a single file that ensures end users will download and install the full .NET version. The MSI will mislead users into downloading the client version and put the user into an endless cycle of "This setup requires .NET framework version 4 ... The .NET framework can be obtained from the web. Would you like to do this now?"

Alternatively, running `setup.exe` will do what I need (that is, ensure .NET 4.0 full installs from the web), but imposing two files on a user to install my software is unacceptable to me (and anyone trying to keep things simple for [skittish][2] customers).

So is the .NET MSI installer useless for applications that require the full version?

(Oh and another piece of joy from Microsoft: Microsoft has sworn their staff to secrecy as to what version results from the .NET 4.0 Web installer. I only know from experience it's the client version).

[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#2
Try changing the "Launch Conditions" of the MSI in the project settings:

![Enter image description here][1]

When I did that, I was directed to *[.NET Framework][2]* on the Visual Studio area on MSDN which has a link to the [.NET][3] 4 web installer (`dotNetFx40_Full_setup.exe`).

A more involved solution would be to ship `dotNetFx40_Full_setup.exe` with your MSI file and detect the framework version yourself during the install process and run the `setup.exe` if required; you would then continue with your install when the framework is installed.

[1]:

[2]:

[To see links please register here]

[3]:

[To see links please register here]

Reply

#3
The problem is caused by "Launch Conditions"...when you do "Add Launch Condition" it doesn't bother to detect the framework "profile" being used by your Project/"Primary Output"....and always defaults to a condition that points to ".NET Framework 4 Client Profile" and `InstallURL =

[To see links please register here]

`.

So when you need your Setup to have a dependency on the ".NET Framework 4 Full Profile" change the `Version` property to ".NET Framework 4" and make sure you manually update the `InstallUrl` to `http://go.microsoft.com/fwlink/?LinkId=186913`, because it fails to change the Url when it should.

This will then take them to the web page with the "Web Installer" for the "Full Profile" .NET 4 Framework, rather than the "Client Profile" one.

You could alternatively set `InstallURL` to `http://go.microsoft.com/fwlink/?LinkID=186916` for the "Full .NET 4 Standalone/Offline Installer".

It's also worth changing the Prerequisites in your Setup project.

![enter image description here][2]
![enter image description here][3]


[2]:

[3]:
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through