CRegKey Visual Studio 2012 - visual-c++

I am trying to build a setup bootstrapper which needs to run on every OS from XP to 8. I need a way to detect if the .NET Framework is installed.
I am currently using CRegKey, but when upgrading to Visual Studio 2012 CRegKey does not seem to exist (atlbase.h). This MSDN article says that "This class and its members cannot be used in applications that execute in the Windows Runtime."
Is there another class I can use to read from the registry, or can I detect the installed .NET version another way?

Related

Build Visual Studio Project for Linux Systems

Is there a way to build a project in visual studio for linux sytems? This Github repository (https://github.com/nilaoda/N_m3u8DL-CLI) is very useful for my project, in this repository is just the visual studio project files (.sln ,c# source code etc.), I cloned it in my visual studio and want to build it but not as executable but for linux system? Is this somehow possible?
Looking at their documentation (translated to English), the application is built on the .NET Framework, which is only intended to work on Windows-based devices. Their documentation also states it's supported on Windows XP and up, and requires the .NET Framework 4.6 runtime, which Linux can't use.
If it was using .NET (previously .NET Core) you'd be in business, but as is, without a rewrite in .NET, you won't be able to run this or build it for Linux devices.

VS 2013 application does not running on VS 2010

I have make an application on visual studio 2013 and I want to run this application on visual studio 2010 and dotNet framework 4.0 on my windows xp system but when I run my application I am getting an error below:
To run this application, you first must install one of the following versions of .Net Framework; .Net Framework, Version=v4.5
And also .Net Framework, Version=v4.5 does not support on windows xp
Kindly suggest me what should I do, waiting for your reply.
Thanks.
in your project properties, go to the dropdown "framwork" and select version 4.

Which version of Windows and Visual Studio do i need to download for building Windows 8 Phone apps

I have purchased Windows 8.1 pro and downloaded Visual Studio Express 2012 for Windows Phone.
But when I try to run a simple app in the emulator but it says You need to Update Visual Studio Express 2012 to update 3 since it has some compatibility issues,i have downloaded the ISO file from the below link.
http://www.microsoft.com/en-us/download/details.aspx?id=39305
But when I try to install I get these errors:
What is the issue here ?
Setup Failed
1) The form specified for the subject is not one supported or known by the specified trust provider.
2) The form specified for the subject is not one supported or known by the specified trust provider.
So how to solve this issue here ?
If you want to create Windows 8.1 apps you should install Visual Studios 2013.

Create an installer from Visual Studio 2012 to run an application on another PC

I wrote an application with Visual Studio EXPRESS 2012 on a Windows 7 PC for research purposes. Now I want to run it on another PC (with Windows 8), which will be used by a medical group. Now my question is: HOW?
InstallShield LE doesn't work on Express... I tried to install Visual studio Express 2012 on the other PC (obviously the win8 version) using absolutely the SAME version number: 11.0.60610.01 Update 3; but it gives me an error importing the project and says that my project is "not compatible". What should I do?
As Wix cannot integrate directly into Visual Studio Express, you can install the Visual Studio Isolated Shell Environment along side the express edition.
Or you can use a stand alone Wix IDE like WixEdit to author the installer. I suspect that you've downloaded the wrong Visual Studio Express version.
The Visual Studio Express 2012 for Windows 8 is meant to build Windows 8 Store Apps, you probably need the Visual Studio Express 2012 for Desktop Applications version instead, even when building on Windows 8, the name is a bit confusing, I agree.
See also: https://stackoverflow.com/a/14676758/736079

Is it possible to use a later version of TFS Build than the server it connects to?

We have a TFS 2008 server used for source control, and a build agent connected to it that handles our continuous integration.
I'd like to be able to set up builds for projects that were created in a later version of Visual Studio, like 2012, whilst still being able to build projects that use Visual Studio 2008 (For example, we've some Windows Mobile code that we need to support)
Should this "just work"; do I need to install a separate build agent, or do I have to upgrade everything (and if so, for do I keep the Windows Mobile code building)?
As was said you need to use the same version of the Build Agent as TFS (with the exception that TFS 2012 also supports 2010 build agents).
However, you can still install any version of Visual Studio supported by your build server OS. So even though you are using 2008 Build Agent, you should be able to install Visual Studio 2012 and build projects with it.
The build agent/controller needs to be of the same version as the TFS server itself - you can't just upgrade the build controller (wee tried this before upgrading from 2010 to 2012).
So, if I read the compatibility matrix right, you will have to upgrade your environment.

Resources