Results 1 to 9 of 9

Thread: [RESOLVED] Compiled .exe won't run on other XP PCs?

  1. #1

    Thread Starter
    Member blueorange's Avatar
    Join Date
    Sep 2008
    Location
    Philippines
    Posts
    47

    Resolved [RESOLVED] Compiled .exe won't run on other XP PCs?

    I had this problem, I had already install and registered the .ocx on the targeted PC's but the .exe that I compiled on my PC won't run on these PCs but only on my PC, when I run the .exe on other xp PC's it will just exit without prompting for any errors or missing ocx. Then I install Visual basic 6 on 1st XP PC and compiled the .exe there, the .exe runs on that PC and i tried it to copy and run on 2nd XP PC, it wouldn't run even if I installed the visual basic 6 on that 2nd PC. What I mean is, I have to install every PC's with visual basic and then compile the source code (build the .exe) on every machine. Even if I compiled the source code on 1 machine and copy the compiled exe to another pc (with visual basic installed and even all the ocx that I used), the .exe won't run. It would run only on the pc where it was compiled. How do I fix this problem. I tried a test by making test .exe's of all the ocx that I used and it runs fine on my pc and other pcs and these test exe's were compiled only once and on my PC. I already installed Service Pack 6 for visual basic and the same thing happen.. I used Adodb, does the problem is with adodb. I used mysql as my database and already installed these targeted PCs with MySQL connector for visual basic 6. Do any of you have any Idea, what's the cause of this problem? I used some .tlb in my program? is it the culprit? how do I install/register .tlb to a targeted PC? I used also dlls but they are mostly dlls of microsoft like GDI32.dll. Thanks for your help...BTW, my pc is Microsoft XP with Service Pack 3.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Compiled .exe won't run on other XP PCs?

    TLBs do not need to be included with compiled exes, the TLBs are compiled into the exes. They do need to be included with uncompiled projects if you are sharing the raw source code.

    Have you tried using VB's Package and Deployment wizard to create a setup.exe file for your project, then installing that -- I think this is your answer.

    Why the app exits immediately without prompting for errors? No way for us to know for sure without the uncompiled application, but I am guessing that other dependencies do not exist on the other PC's, like the VB runtimes for example.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Compiled .exe won't run on other XP PCs?

    Quote Originally Posted by LaVolpe
    Have you tried using VB's Package and Deployment wizard to create a setup.exe file for your project, then installing that -- I think this is your answer.
    I'm certain of it.

    You can't just copy an exe from one PC to another. Your app will need to be bundled into a formal installation and setup package and the setup package shipped to all PCs that are appropriate.

  4. #4

    Thread Starter
    Member blueorange's Avatar
    Join Date
    Sep 2008
    Location
    Philippines
    Posts
    47

    Re: Compiled .exe won't run on other XP PCs?

    Quote Originally Posted by Hack
    I'm certain of it.

    You can't just copy an exe from one PC to another. Your app will need to be bundled into a formal installation and setup package and the setup package shipped to all PCs that are appropriate.
    I tried using the VB's Package and Deployment wizard, but the setup cannot be installed on the targeted PC's because this msgbox will appear that

    "Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files for you now.
    You will need to restart Windows before you can run setup again. Click cancel to exit setup without updating system files."

    I clicked OK and then the installer prompts to restart. After restarting the PC, I click the setup.exe again but this msgbox will still display and will do the same method as if updating the system files and prompt to restart the PC. I think it didn't update the files. Is there any other package deployment program other than the one included in VB that can do these things like look for dependency files in your program and create an installer?
    Last edited by blueorange; Mar 12th, 2009 at 12:11 PM.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Compiled .exe won't run on other XP PCs?

    For solution(s) to that P&DW error, and links to alternatives, and documentation, see our Application Deployment FAQ.

  6. #6
    Member
    Join Date
    Apr 2008
    Posts
    46

    Re: Compiled .exe won't run on other XP PCs?

    try packaging it with Inno Setup compiler and i did it by including the MSSCCPRJ file along with. Try and see

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Compiled .exe won't run on other XP PCs?

    Thread Moved
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Compiled .exe won't run on other XP PCs?

    Quote Originally Posted by blueorange
    I tried using the VB's Package and Deployment wizard, but the setup cannot be installed on the targeted PC's because this msgbox will appear that

    "Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files for you now.
    You will need to restart Windows before you can run setup again. Click cancel to exit setup without updating system files."
    A possible solution to this problem is to allow the user to download the updates to the files themselves instead of packaging old versions of the files in the setup package.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  9. #9

    Thread Starter
    Member blueorange's Avatar
    Join Date
    Sep 2008
    Location
    Philippines
    Posts
    47

    Re: Compiled .exe won't run on other XP PCs?

    thank you every one for your replies. I found the cause why the .exe won't run on another pc, the culprit is the .manifest that I included in the .exe. I deleted the .manifest and the .exe now runs on other pcs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width