Hi..
I have some questions regarding C#.
I was doing an application that plays video by using the Media Player SDK. By the way, I am using Visual C# 2005.
After doing the application, it works on my computer. But when I try to use it in another computer, it doesnt work..
There are 2 reasons which causes it not to work and the reasons are:
1) I forgot to copy the AxInterop.WMPLib.dll file needed for the program to work.
2) the other computer doesn't have .NET 2.0 installed.
My questions are
1) When i want to transfer the program into another computer, i copy the 1 file from the bin\debug folder.And because i only copy one file (program file) and not the other files such as .dll files, the program doesn't work. Is there any way to maybe ganerate all the files the program needs into one file so that I only transfer 1 file into another computer instead of a folder with several files..?
2) If I use Visual C# 2005 to write my program, how can I write it in such a way that it can be used on a computer that does not have .NET 2.0..? For example, the video player application which uses AxInterop.WMPLib.dll. How can I make it in such a way that it don't neet to use .NET framework..?
Loading
JoJoPosted Oct 29, 2007, 10:22 PM
AlanPosted Oct 29, 2007, 1:48 PM
The only way to run any C# application without the appropriate version of the .NET framework being present is to use an expensive third party linker which packages your application together with only those parts of the framework which it actually uses. There are two here:
http://www.bitfactorysoftware.com/Products/SoftInstallNet/Overview.aspx
http://www.remotesoft.com/linker/
This is unnecessary for running an application on a Vista machine because the framework is already pre-installed as part of the OS.
JoJoPosted Oct 29, 2007, 12:48 PM
Thanks for the reply..
Well, since the program that I am doing is just to play video, is there a way for me do do it without using .NET..? What C# software can i use that is without the .NET framework..? That way, other computer can use it without having to install .NET right..?
Thanks..
Scott LyslePosted Oct 28, 2007, 6:18 AM
You could build a deployment package (an installer). Open your project, then go to the file menu, select "Add", and then select "New Project". When the "Add New Project" dialog appears, select "Other Project Types" and then select "Setup and Deployment". From the displayed options, select "Setup Wizard". Follow the directions, this may be used to generate an installer with all included dependencies packed up in that installer.
Rather than including the .NET framework with the installer, the installer can check the version and direct the end user to download the framework verson required by the application.