Reputation: 1
This question may seem really dumb, my apologies for having very minimal programming experience. We just need to make an inventory system exe given to us run and "work" on some computers.
The exe file itself is an inventory system made using Visual Basic 6. It runs fine on computers that have visual basic 6 installed.
However, on computers without VB6, we encounter crashes. The exe's themselves run fine but as soon as we perform something (logging in/clicking buttons/etc.), we get runtime errors 339. On one machine it says, "Component 'MSCOMCT2.OCX' or one of its dependencies not correctly registered: a file is missing or invalid. on another machine, we have a similar error but points to MSFLXGRD.OCX
I figured these problems may be caused by missing system files/dependencies and we need to first install those. How do I make an installer wizard (similar to those Windows app installers that installs system files alongside the actual app) for installing these missing dependencies?
Upvotes: 0
Views: 1062
Reputation: 2364
I used to use (and contributed to) the WiX toolkit for this purpose.
This will build a standard .msi
installer for you. Start with the heat
program which will inspect your software and generate much of the WiX project for you, be sure to use the -svb6
option.
You will need to source the appropriate merge modules for VB6 as well, which will provide the components you are missing.
Upvotes: 0
Reputation: 1144
You could do a lot worse than the free Inno Setup. I've used it for many VB6 projects and it's never failed me. There's a learning curve but it's a very flexible package.
Upvotes: 1