How can I configure what .NET version should be installed by windows installer in VS 2017 - c++

Currently I am working on a project that needs .NET 4.0 to work properly but when I configure the windows installer and try to install it is trying to install the latest version of .NET. So how can I configure the windows installer to install the .NET version on which the project was created. Also I would like to know how to include the Visual C++ Redistributable in my installer.

When you create a setup project and add primary output of a project to the setup project, the setup project automatically detect dependencies including Microsoft .Net Framework. To see if the detected dependency is correctly what you need, you cam see the following locations:
First of all, right click on Dependencies and click on Refresh Dependencies.
Check prerequisites for your project:
Right click on setup project and choose Properties.
In Properties dialog, from the Configurations combo box choose the configuration, and repeat the following steps for both Debug and Release.
Click on Prerequisites... button to open Prerequisites.
In the Prerequisites dialog, check the desired .Net Framework version.
Press OK and Make sure you repeat above steps for both Debug and Release.
Check Launch Conditions for your setup project:
Right click on setup project and from View select Launch Conditions:
Then under Launch COnditions node, select .Net Framework node and right click and select Properties Window.
In Properties Window check the Version property for .Net Framework launch condition.

Related

check if specific plugin install in eclipse

I wrote a new plugin to Eclipse, and also installed it.
Now- I want to check programmatically (C++ via QT) if the plugin was installed correctly.
so I want to find a way to retrieve all the plugins that installed on my eclipse.
any idea?
in Eclipse go to Help menu, click About Eclipse, Installation Details and click the plugins tab. That should get you an overview.

Change a configuration property for Teamcity

I am fairly new to teamcity 7.1, but I installed teamcity and then found that I needed to install a new version of Windows SDK from 6.0A to 7.1 due to the ldap.h file. When I run the msbuild for our C++ application I get the ldap not found error.
I believe this is related to needing the newer SDK. Anyway I notice on the Agent properties of
WindowsSDKv6.0A v6.0A
WindowsSDKv6.0A_Path C:\Program Files\Microsoft SDKs\Windows\v6.0A
Should I just add the 7.1 ? or is there a way to replace this configuration property all together?
The buildAgent.properties file does not list any of the configuration properties that exist.
The existing configuration properties are detected automatically by Teamcity agent.
According to Teamcity's document PredefinedBuildParameters-AgentProperties:
TeamCity automatically detects a number of applications including the
presence of .NET Framework, Visual Studio and adds the corresponding
system properties and environment variables
And in table of the same page, it shows:
WindowsSDK This property is defined if the corresponding
version of Windows SDK is installed. (Supported versions are 6.0,
6.0A, 7.0, 7.0A, 7.1)
So try to restart Teamcity agent to see if it can pick up the newly installed SDK automatically.
If it can't, try to add the 7.1 properties in the buildAgent.properties file, and then restart the build agent.
And to tell msbuild to use the correct SDK:
Go to "Start" menu and search "Windows SDK 7.1 Command Prompt"
In the prompt, type "cd setup"
In the prompt, type "WindowsSdkVer.exe -version:v7.1"

How can I configure KDevelop to build before executing?

In most IDEs (e.g. Visual Studio, all the java IDEs, etc) by default the sources are build when the user selects to execute or debug the application. How can I configure KDevelop to do the same?
Go to the Run->Launch Configurations menu item.
There you can configure a launch configuration, with arguments, working directory, etc.
At the bottom, there is a dependencies block, where you can specify a build target that should be run before the execution of the launch configuration.

How to create a MFC Application to run setup.exe(msi installer)?

I have java application (.jar files) and created a batch file to execute the application.
Also, I created a Setup project using Visual Studio 2005 (Setup.exe, .msi).
However, it requires JRE to run. I have downloaded the jre installer (exe file) then would like to bundle it by creating a simple MFC application that calls the two installer (jre installer & Setup.exe).
Here's the list of MFC application functionality that want to create:
1) Upon execution (double click) of the MFC application, want to check if the JRE & my Java application are already installed.
2) If the JRE was found installed, get the installation path, display it to MFC's textbox then disable the textbox and JRE install button. Same with my Java application if found installed.
3) Upon clicking the install button (either JRE or my application), would like to execute the installer.
Any guidance on the right direction is appreciated.
EDIT: target OS Windows XP up
Why not use a JRE prerequisite for your installer? Perhaps this will help: Adding Custom prerequsites to visual studio setup project
This way you don't need an application which launches installers.

Customize web deployment package in Visual Studio 2010

I have a WCF DataService build in VS 2010, targetting .Net 4.0. This all works fine. I've created a deployment package and have the application deployed to a web server using MSDeploy and a zip file. When I set up an automated build on a TFS Build Agent the contents of the deployment package changed. I no longer get the strong named assemblies in my deployment package. These excluded assemblies are projects within the solution and are built on the Build Server.
I don't see a lot of configuration options for the deployment package, but I would like to know why the build server creates a different package than my workstation, using the same settings.
I am using "Only files needed to run this application", I have ticked "Exclude generated debug symbols" and "Exclude files from App_Data folder". I _do_not_ include database packages. I do create a zip file (which is missing the strong named assemblies)
Thanks for any information you may have explaining why this occurs. Then maybe I can solve the problem.
Beezler
On the build server I've ungaced the assemblies I was concerned about and that got my deployment package to the state I want it. So it appears the deployment package does not include the GACed assemblies, which is a good thing. I would still like to know how to override this behavior on certain referenced assemblies.
Thanks,
If you want to include a DLL files for a GAC assembly do the following:
In your project, expand the "References" folder
right-click on the reference you want to include the DLL and click "properties" to bring up the properties pane
set "Copy Local" to "True"
That's it! When publishing your project, it will include the DLL in the bin folder for that reference!