About exe file
-
Hello, I'm not sure which topic to post this kind of problem. If I ask on the wrong board, please let me know. I write a windows form project with CLR supporting, and I want to package it into an exe file. I run the exe file in the Debug folder. It works on my computer, but not on other's computer which doesn't install .NET. But I want the exe file to be portable and without install. It seems that it needs a .NET environment. I try to install .net framework 2.0 to the computer which doesn't install Microsoft Visual Studio 2005. But I still can't open the exe file, too. Is it possible to create a exe file without install in Microsoft Visual Studio 2005? Thx for ur reply. Jane
-
Hello, I'm not sure which topic to post this kind of problem. If I ask on the wrong board, please let me know. I write a windows form project with CLR supporting, and I want to package it into an exe file. I run the exe file in the Debug folder. It works on my computer, but not on other's computer which doesn't install .NET. But I want the exe file to be portable and without install. It seems that it needs a .NET environment. I try to install .net framework 2.0 to the computer which doesn't install Microsoft Visual Studio 2005. But I still can't open the exe file, too. Is it possible to create a exe file without install in Microsoft Visual Studio 2005? Thx for ur reply. Jane
minihotto wrote:
But I want the exe file to be portable and without install.
Then don't use the .NET platform
minihotto wrote:
Is it possible to create a exe file without install in Microsoft Visual Studio 2005?
Yes. The MSDN documentation has information detailing deployment issues of Visual Studio C++ projects, well any type of Visual Studio project actually.
-
Hello, I'm not sure which topic to post this kind of problem. If I ask on the wrong board, please let me know. I write a windows form project with CLR supporting, and I want to package it into an exe file. I run the exe file in the Debug folder. It works on my computer, but not on other's computer which doesn't install .NET. But I want the exe file to be portable and without install. It seems that it needs a .NET environment. I try to install .net framework 2.0 to the computer which doesn't install Microsoft Visual Studio 2005. But I still can't open the exe file, too. Is it possible to create a exe file without install in Microsoft Visual Studio 2005? Thx for ur reply. Jane
A program written using /clr should run on any computer with .Net framework installed. Make sure that 1. The program in 100% .Net /clr then you can just install dotnetfx 2. Also check which version of .net are you targeting 3. If you are doing a mixed assembly, make sure you deploy appropriate CRT/OpenMP/ etc DLLs as well, you can distribute using vcredist.exe or MSMs. 4. And finally, you need to distribute applications built in Release mode not Debug mode. Debug DLLs cannot be distributed.