I have created a simple windows forms visual studio 2010 project in windows 7 32 Bit.
I need to run the .exe file in the release folder under windows xp.
What files to I need to bundle with my EXE to get this to work?
You may well need the Visual Studio 2010 redsitributables
You don't need anything extra. You just need to be sure if required .NET Framework is installed on the target platform which is XP in this case. Other than that, I suggest you to use Visual Studio's Package and Deployment Wizard to make a setup. But even without Package and Deployment Wizard, if you use release output (not debug), just copying executable should be enough to run on XP platform. Be sure that you don't use anything unsupported by Windows XP (like DirectX 11, Direct2d etc.).
p.s: you may need some additional files like manifest files. but that completely depends on your project. Package and Deployment Wizard should take care of these as well.
Related
I downloaded Visual Studio Community 2017 because I need to build a command line tool to perform some administrative tasks on Windows 7. Is this possible and if so, what project should I select?
When I create a new project I can not choose "Universal Windows" projects, because these are restricted to Windows 10. A project I can create is a Class Library (.NET standard), but I have no way of executing this as it is a library and won't run from a Main() method, nor am I able to add a Unit Test project, because that is only available for Universal Windows.
I installed a load of extra .NET framework versions, the Windows 8 jdk, I searched for project templates online, created a "Blank Solution" from "Other project types", etc
So the question is basically, how do I build anything that runs on Windows 7?
I am going to answer my own question again. I set up Visual Studio for "universal Windows platform" development, because it sounded suitable for the simple app that I wanted to build, but the universal Windows platform is all new and aimed at Windows 10. My bad. After I added ".NET desktop development" via the Open Visual Studio Installer I now have my beloved Console Application project.
I just installed .NET framework 4.5, the Windows 8 SDK, and the Windows 8 DDK on 2 different machines (one at home managed by me, one at work originally setup by IT) both with Visual Studio 2010 Professional SP1 already installed, and both running Window 7 Professional.
I had an old C++/Win32 application in Windows XP that used both the Windows SDK and DDK. I updated it for Windows 7 and Visual Studio 2010 project settings. However, it would not build because some of the SDK/DDK include and library files are new, and it couldn't find them with Platform Toolset set to "v100" in Visual Studio.
Manually adding the Include and Lib folders to the project made it build and run correctly.
Is there some way that I can add the newly installed SDK and DDK to Visual Studio 2010's "Platform Toolset" list? I thought it was supposed to do this automatically, but neither of the machines I use have it in their list after install and reboot.
After researching this quite a bit, I finally found a solution. It doesn't look like it can be added to "Platform Toolset" via any simple method, but at least you don't have to add the paths on every single project you want to use the API. This worked for me, and allowed me to build Microsoft's "USBView sample application" written for VS2012. The way Microsoft recommends (from the official Microsoft Visual C++ Team blog) is:
For a single project:
http://blogs.msdn.com/b/vcblog/archive/2012/03/25/10287354.aspx
This seems to work with the final SDK release as well.
To apply those settings across multiple projects:
http://blogs.msdn.com/b/vcblog/archive/2012/11/23/using-the-windows-8-sdk-with-visual-studio-2010-configuring-multiple-projects.aspx
Hello I have created a DLL file using visual C++ 2010, that runs a C script that i have written.
I have then created a user interface using visual C# 2010 and linked everything together.
On my machine the resulting exe application runs perfectly.
However when i try to put the folder, containing BOTH the exe and the dll, on other computers.. it runs on some computers, but on others it does not.
the error i receive has to do with "Cant find dll file or assembly".
All computers have windows 7 64bit installed.
My question is: Is there a requirement for the application to run? (files or something that should be installed on all machines???)
I have noticed the following (after alot of looking) that:
the computers that run the application HAVE visual studio 2010 installed
the computers that do not run the application DO NOT have visual studio 2010 but have visual studio 2008 installed..
all computers have .NET framework 4.5 installed.
Do you think the visual studio has anything to do with this?!!? isnt the point having a stand alone application is to make the app run on any machine?
Is there a way to fix it so that the app will run on any computer regarding having visual installed or not?
thank you all..
You can use Dependency Walker to check what dll the program can't find.
Just load the .exe into the program.
You might also find that you will need to install the Visual Studio 2010 Redistributable on those computers that you are deploying to.
I have a new PC running Windows 7 and Visual Studio 2010, and need to register a legacy typelib (.tlb) to interface with an existing legacy application. However, regtlib.exe does not seem to be part of Windows 7 (I don't think it was part of Vista either), and regtlibv12.exe, available as part of Visual Studio 2005, seems to have disappeared with Visual Studio 2008 (and certainly Visual Studio 2010).
Microsoft forums and knowledge base articles refer to RegAsm.exe. I've tried RegAsm.exe, but that will only create and register a typelib from an existing dll or assembly (which I do not have). I can't believe there is no way to register an existing typelib on Windows 7. Any help would be most appreciated.
Well, I guess I can answer my own question (and for anyone else who has the same problem):
Apparently, regtlibv12.exe is part of Visual Studio 2010 (contrary to what I read on various Microsoft forums), but it is located in the Windows\Microsoft.NET\Framework\v4.0.30139 folder (not the v2.0.50727 folder). Using that executable I was able to successfully register the legacy typelib (.tlb).
It comes with .Net framework installation. On my machine I found it as:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\regtlibv12.exe
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regtlibv12.exe
There is also C:\WINDOWS\REGTLIB.EXE that seems to be part of a standard Windows 7 installation.
From a Developer Command Prompt for VS2013, you can use the regtlib.exe command.
To find the Developer Command Prompt for VS2013 you can try looking under Start -> All Programs -> Visual Studio 2013 -> Developer Command prompt for VS2013.
I have a project that suffers from a Visual Studio bug shown here
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=356321
It means that I can't build the installer project on my windows 7 machine
(the workaround presented doesn't work for me, regcap.exe crahses when I try to run it)
Now I plan to build the installer on a remote XP machine or in XP mode. Can I do this without installing the full Visual Studio? What is the command line to build from a .vdproj file?
The obvious choice that comes to mind is using msbuild, but unfortunately it doesn't support building from .vdproj files. Another option without using Visual Studio is to use Team Foundation Build, if you have it installed or can afford to install it on one of your machines.
Ugly work around: move to wix - http://wix.sourceforge.net/