New Posts  All Forums:Forum Nav:

help with vb.net application

post #1 of 9
Thread Starter 
Hello. If I write a program on vb.net and I want to launch it from a computer that does not have visual studio, how can i launch this program.
My System
(13 items)
 
  
CPURAMHard DriveOS
2 AMD Turion(TM) 64X2 2GHz 2GB Hitach ATA 250GB Windows Vista Home Premium 
MonitorKeyboardMouse
NVIDIA MCP67M Standard 101/102 - key Synaptic PS/2 port Touch pad 
  hide details  
Reply
My System
(13 items)
 
  
CPURAMHard DriveOS
2 AMD Turion(TM) 64X2 2GHz 2GB Hitach ATA 250GB Windows Vista Home Premium 
MonitorKeyboardMouse
NVIDIA MCP67M Standard 101/102 - key Synaptic PS/2 port Touch pad 
  hide details  
Reply
post #2 of 9
Compile the program into an executable. Move the executable to the computer without Visual Studio. You will need to have the .net SDK installed on the other computer in most cases.
GAMR
(15 items)
 
  
CPUMotherboardGraphicsGraphics
6600K ASUS Z170-A ASUS 970 Strix ASUS 970 Strix 
RAMHard DriveHard DriveHard Drive
Crucial Ballistix Elite Samsung 850 EVO Intel 320 6400AAKS 
Hard DriveCoolingMonitorPower
6400AAKS Cooler Master Hyper 212 EVO ASUS VG24QE EVGA SuperNova 650 G2 
CaseMouseMouse Pad
Antec 1200 Razer Abyssus 3.5G QCK+ 
  hide details  
Reply
GAMR
(15 items)
 
  
CPUMotherboardGraphicsGraphics
6600K ASUS Z170-A ASUS 970 Strix ASUS 970 Strix 
RAMHard DriveHard DriveHard Drive
Crucial Ballistix Elite Samsung 850 EVO Intel 320 6400AAKS 
Hard DriveCoolingMonitorPower
6400AAKS Cooler Master Hyper 212 EVO ASUS VG24QE EVGA SuperNova 650 G2 
CaseMouseMouse Pad
Antec 1200 Razer Abyssus 3.5G QCK+ 
  hide details  
Reply
post #3 of 9
Are you trying to edit it? Or just trying to run it? If you're trying to run it, just do what was stated above. If you're trying to edit it, you can use notepad, or textpad, or any number of editors. You just will not have the compiler support. You can also download the express edition on the other computer from here:

http://www.microsoft.com/express/download/default.aspx
post #4 of 9
Quote:
Originally Posted by decompiled View Post
Compile the program into an executable. Move the executable to the computer without Visual Studio. You will need to have the .net SDK installed on the other computer in most cases.
He is right with the exception you don't need the .NET SDK you need to have the .NET framework on the PC in question. The .NET framework is an update for Windows XP and is installed on Windows Vista by default.
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
post #5 of 9
Thread Starter 
The one thing that I did until I got your answer I went to the debug folder and open the application. Do you think it is ok to do that or I should necessary do what you did? How do I compile the program into an executable?
My System
(13 items)
 
  
CPURAMHard DriveOS
2 AMD Turion(TM) 64X2 2GHz 2GB Hitach ATA 250GB Windows Vista Home Premium 
MonitorKeyboardMouse
NVIDIA MCP67M Standard 101/102 - key Synaptic PS/2 port Touch pad 
  hide details  
Reply
My System
(13 items)
 
  
CPURAMHard DriveOS
2 AMD Turion(TM) 64X2 2GHz 2GB Hitach ATA 250GB Windows Vista Home Premium 
MonitorKeyboardMouse
NVIDIA MCP67M Standard 101/102 - key Synaptic PS/2 port Touch pad 
  hide details  
Reply
post #6 of 9
Quote:
Originally Posted by consadrgh View Post
The one thing that I did until I got your answer I went to the debug folder and open the application. Do you think it is ok to do that or I should necessary do what you did? How do I compile the program into an executable?

The file you clicked in the debug folder is the executable - so that's perfectly ok to do.
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
RAWR
(13 items)
 
Home Server
(11 items)
 
 
CPUMotherboardGraphicsRAM
i7-4790k msi z97 gaming 7 gtx 760 4gb 32GB GSkill  
Hard DriveHard DriveCoolingOS
Kingston HyperX 3K 120GB SSD Hitachi 2TB Cooler Master Hyper 212+ Windows 8.1 Pro 
MonitorKeyboardPowerCase
Vizio M492-b2 Logitech Wireless  Corsair HX620 NZXT Phantom White 
Mouse
Logitech Wireless 
  hide details  
Reply
post #7 of 9
When you debug, u test the app, so yeah its THE app in question....

*but this was already stated *
post #8 of 9
just make sure the .NET Framework is installed on the target machine, and its the version you are compiling for (2.0,3.0,3.5 w/e)

when you run the app inside of visual studio the exe is compiled and run (in a vshost version for debugging and "edit and continue" ability) The exe will be wherever your project compiles it to (release folder by default iirc) Just copy the exe to the target machine and run it there, it will be JIT compiled and it will run. If it has references and dependencies copy those over as well, or embed them in the exe when you compile it
Chuckle2Tits
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 2.66 45nm D0 Foxconn BloodRage x58 EVGA GTX 285 6 GB Corsair Dom. DDR3 1600 
Hard DriveOptical DriveOSMonitor
1x300 GB WD Velociraptor Asus 16/48 DVD/CD ROM SATA Windows 7 Pro 64 bit Viewsonic VX2255wmb 22" LCD 
KeyboardPowerCaseMouse
Logitech USB wired Silverstone Decathalon 850 PolymorphiX (PMX_v1s) ms optical, wired 
Mouse Pad
ancient piece of crap :P 
  hide details  
Reply
Chuckle2Tits
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 2.66 45nm D0 Foxconn BloodRage x58 EVGA GTX 285 6 GB Corsair Dom. DDR3 1600 
Hard DriveOptical DriveOSMonitor
1x300 GB WD Velociraptor Asus 16/48 DVD/CD ROM SATA Windows 7 Pro 64 bit Viewsonic VX2255wmb 22" LCD 
KeyboardPowerCaseMouse
Logitech USB wired Silverstone Decathalon 850 PolymorphiX (PMX_v1s) ms optical, wired 
Mouse Pad
ancient piece of crap :P 
  hide details  
Reply
post #9 of 9
First, need to compile a executable file. Then depending on version of .net you are using, you just make sure the correct .net framework installed on target machine. Use the Redistributable Package instead of the SDK Package to reduce the footprint. Vista has .net 2.0 installed so you don't need install. Net1.1, 3.0 and 3.5 needs to install. This is assuming you don't use third party components. Otherwise, you need to install these components or drop a setup project to the existing project to create a .net setup package. It will incldue all necessary files inside the package.
Edited by linskingdom - 9/1/08 at 6:40pm
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming