ammad
asked on
Running Simple Program on Different MAchine
TAke a look at this simple program
using System;
using Microsoft.Win32;
using System.IO;
namespace WinRegInVCNET
{
class Class1
{
static void Main(string[] args)
{
RegistryKey key = Registry.LocalMachine.Open SubKey("So ftware", true);
RegistryKey newkey = key.CreateSubKey("YourNAme ");
newkey.SetValue("1","Abc") ;
Directory.CreateDirectory( @"C:\Test" );
Console.Read();
}
}
}
After Compiling this file i got .exe with 6 kb in size that run very well on my system, But when i try to run that .exe (Only Exe)on other machine whcih havent have .net frame work install, gives error message regarding missing resources,Isnt there is any way to deploy(just runnable) such .exe on other operating system like win98 , winxp and all others.( I have win2000 professional).
using System;
using Microsoft.Win32;
using System.IO;
namespace WinRegInVCNET
{
class Class1
{
static void Main(string[] args)
{
RegistryKey key = Registry.LocalMachine.Open
RegistryKey newkey = key.CreateSubKey("YourNAme
newkey.SetValue("1","Abc")
Directory.CreateDirectory(
Console.Read();
}
}
}
After Compiling this file i got .exe with 6 kb in size that run very well on my system, But when i try to run that .exe (Only Exe)on other machine whcih havent have .net frame work install, gives error message regarding missing resources,Isnt there is any way to deploy(just runnable) such .exe on other operating system like win98 , winxp and all others.( I have win2000 professional).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nice Job My Doubts are clear, Clr is just like Jvm for java class files.
AW