|
-
Mar 12th, 2009, 09:26 AM
#1
Thread Starter
Member
[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.
-
Mar 12th, 2009, 10:06 AM
#2
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.
-
Mar 12th, 2009, 10:21 AM
#3
Re: Compiled .exe won't run on other XP PCs?
 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.
-
Mar 12th, 2009, 12:08 PM
#4
Thread Starter
Member
Re: Compiled .exe won't run on other XP PCs?
 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.
-
Mar 12th, 2009, 12:25 PM
#5
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.
-
Mar 13th, 2009, 03:07 PM
#6
Member
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
-
Mar 13th, 2009, 03:35 PM
#7
Re: Compiled .exe won't run on other XP PCs?
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Mar 13th, 2009, 08:30 PM
#8
Re: Compiled .exe won't run on other XP PCs?
 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
-
Mar 13th, 2009, 08:46 PM
#9
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|