I created a setup installer in vs 2010 and it is in .net Platform 3.0. Because my app is 64 bit , I also made the setup installer x64 (solution explorer-> target platform). it compiled and build fine.
when I am ready to use it, I copied this installer file to another box and run it. It complains that I need .net platform 4.0. How is it possible? How to changed it back to 3.0? How to fix this?
Sometimes Visual Studio setup automatically adds a .NET Framework launch condition to the package. So you can try this:
select your setup project in Solution Explorer
click "Launch Conditions Editor" button in Solution Explorer top pane
modify or remove the .NET Framework launch condition
Related
I try to create an installer for my WindowsApplication. I use the Publish and it work.
I use Visual Studio 2019 and .NET Framework 4.7.2.
The problem is when i run the installer the application also run.
I want (if possible) avoid this behavior..I want to run only the installer not also the application after install.
there is some settings to define?
Thanks
I've created simple one line Console application for the 3.5 framework and was attempting to try out the "Visual Studio Installer" setup wizard project to install on a server. Both Console and "Setup Wizard"are for the .net 3.5 framework however when I try the setup.exe on the target server I get a message regarding 4.5 framework pre-requisites.
Visual Studio 2013
C# Console application
.net 3.5
Windows Server 2003 R2
Any ideas where this reference to 4.5 is likely to be coming from?
Thanks
As in the MSDN Forum answer:
https://social.msdn.microsoft.com/Forums/windows/en-US/54e20ea4-ddfa-4315-9a04-57daa74b6952/setup-wizard-tries-to-install-to-wrong-framework-version?forum=winformssetup
"If this the installer project extension that generated an MSI setup and a setup.exe, then in the setup project go to View => Editor=>Launch conditions, right-click the NET launch condition, Properties window, and choose the relevant one from the drop down in Version. "
I have a solution with .NET projects and a setup project(Visual Studio Installer 2010). My previous version of the same project was 1.7.9 and the new version is 1.8.4. I also create a shortcut on the desktop to one application in my MSI. I changed all the versions in the assemblyinfo.cs and also changed the product version in the Setup Project, the product code got changed automatically and the upgrade code is the same. The problem I'm facing is that the Targetdir is updated with 1.8.4 files. But on the desktop I see 2 shortcuts (1.7.9 & 1.8.4) and in control panel I see two versions of the same application. I have set the RemovePreviousVersion flag to true and also set the DetectNewerVersion to true. Can someone please help me out with this? After changing the assemblyinfo file why isn't it upgrading properly?
Visual Studio Setup Projects are a deprecated feature that hasn't seen any love since before Visual Studio 2008 was released. I understand it's a feature that ships with Visual Studio all the way up to 2010, but it's probably a much better idea to switch to another product, such as WiX (free and open source), NullSoft Installer a 3rd party commercial solution.
From what I gather, you did the correct things building your installer and setting up the configuration. You might want to check that the previous installer really has the same GUID you're expecting it to have.
When setting up a Setup Project in Visual Studio 2010 and even to I removing all the prerequistes .NET 4.0 is still required on the computer that runs the Installation. Deploying with ClickOnce works but is not an option, but at least it doesn't ask for .NET 4.0.
Is there a way to create a Setup Project in Visual Studio 2010 that doesn't require .NET 4.0 on installation?
Edit
This is one of the test configurations i've tested
And this is what it looks like when I run setup.exe or the .msi
Right click on the setup project in the solution explorer -> View -> Launch Conditions and set the appropriate .NET framework version:
I'm using Visual Studio 2010, .NET 3.5 for my project.
I'm trying to create a setup project which will also install .NET Framework 3.5 and a custom app (WinPcap) as prerequisites for my application.
I don't want to include .NET + WinPcap in setup.exe as a standalone installer.
Instead, I want to specify a local relative path for each prerequisite (like \Prerequisites\DotNet.exe) in which the installations will be contained.
This way I can still distribute my app in a 'standalone' if I wish and a minimal setup.
I've tried searching through this site and the web but I couldn't figure how to get the behavior I want.
Some guidance would be great, thanks.
This is not supported by Visual Studio. The package either has prerequisites or it doesn't have them.
A solution would be to create custom prerequisites which are downloaded from an URL. This way you can distribute a smaller installer and the prerequisites are downloaded only when needed.
Perhaps this will help you configure the prerequisites: Adding Custom prerequsites to visual studio setup project
Another solution is to build 2 separate packages: one with prerequisites and one without them.