Thread: Programs Only Run on My Machine!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    If you have the Express edition you will need to find a third party install program that can analyze the dependencies of your code and include them in the install binary data.

    All versions of MSVS save for Express have the Setup and Deployment Wizard which will create executables and MSI's that will correctly install your application for use on another computer. It can auto-register DLL's for use on another machine and it will allow you to specify if you want to place an icon on the user's desktop. It will also allow you to specify how your program looks on their programs menu, how the application folder is laid out, what registry entries you wish to create for the program, etc., etc.

  2. #2
    Registered User
    Join Date
    May 2008
    Location
    Australia
    Posts
    230
    Ok uh, so I installed the Redistribution Package: Download details: Visual C++ 2008 Redistributable Package (x86)

    Even know the C++ Runtime files are located on the machine, it still cannot run my program... I checked with depends.exe and nothing else appears to be missing (like libssh2.dll, it doesn't mention that or anything because the libssh2.lib is compiled into the program I'm guessing).

    I'm using Express by the way So what else could this be? I thought installation the redistribution package would fix everything...
    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.

  3. #3
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    If you've got SP1 installed for Visual Studio, you'll need the SP1 version of the redistributable. Since you're linked to the CLR as well, the computer will have to have the relevant version of the .Net framework installed as well.

    If the manifest isn't embedded either (Project Properties->Linker->Manifest->Embed Manifest, that's from memory so it might be slightly different), you'll need to have that as well when you run the exe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How come Dev C++ cant run some programs??
    By Sephiroth in forum C Programming
    Replies: 41
    Last Post: 09-17-2005, 05:35 AM
  2. School Mini-Project on C/C++ (Need Your Help)..
    By EazTerence in forum C++ Programming
    Replies: 4
    Last Post: 09-08-2005, 01:08 AM
  3. Creating a Virtual Machine
    By Chronom1 in forum C++ Programming
    Replies: 7
    Last Post: 10-05-2003, 11:11 AM
  4. how do i run external programs from source?
    By tameritoke in forum C++ Programming
    Replies: 1
    Last Post: 05-23-2003, 02:44 PM
  5. how to compile & run c programs in unix?
    By Unregistere in forum C Programming
    Replies: 2
    Last Post: 10-09-2002, 10:53 PM