Click to See Complete Forum and Search --> : Problem with VB6
CatchItBaby
Feb 15th, 2009, 01:36 PM
yesterday i have made a project Autologin in Forum........
i m using
Operating system :- XP sp2
Internet Explorer :- IE 6.0
and visual basic 6.0
i had made a .exe file of project and send to my friend
and when my friend run exe file it is not working but when i m tried in my pc it is working well.......
my friend cpu configration
Operating System :- Vista
Internet Explorer :- IE 7
==========
How to make Vb 6.0 Compatible to all Version of operating systems.......
== ?
MartinLiss
Feb 15th, 2009, 02:03 PM
I moved your thread to here where we talk about problems associated with distributing applications.
In order for your friend to use your program you will most likely need to create an installation package.
CatchItBaby
Feb 15th, 2009, 02:05 PM
ok
Thanks for moving Thread
Installation package what is that ?
how to use....any idea......
dilettante
Feb 15th, 2009, 02:35 PM
A fairly comprehensive overview can be read at Best practices for deploying Visual Basic 6.0 applications (http://support.microsoft.com/kb/830761). You won't go through all of those steps or require all of the tools described for simple hobby applications, but it gives an idea of what the process is all about.
VB6 ships with a Package and Deployment Wizard which is probably fine for most simple applications. Because the PDW is frozen in time (1998) it has not had improvements as issues have come up and Windows has changed, so sometimes you have to apply some wisdom that only comes with experience (and reading several MS KB articles produced over the years). But for simple things it works ok.
The VB6 documentation covers basic use of the PDW.
The issue is that most VB6 programs can't be deployed just by compiling the EXE and copying it to another system. They might need external DLLs and OCXs that are not included in Windows. Old versions of Windows might lack recent enough versions of the VB6 runtime components that fixed many bugs over the years. The programs might need a folder structure built to hold the EXE, data files, etc. They might need INI files and registry keys set up, or data files put in place. Start Menu shortcuts might be needed.
The list can go on and on.
A deployment package bundles these requirements together. The package is taken to new computers and processed by installation software. This software might be the Windows Installer service if you package as an MSI file, or it might involve a setup EXE that makes API calls to the older installation API. Some packagers like the PDW produce a setup bootstrap (setup.exe), an install script (setup.lst), and one or more source archives (proj.cab) that hold the information to be deployed.
Nightwalker83
Feb 16th, 2009, 02:21 AM
and when my friend run exe file it is not working but when i m tried in my pc it is working well.......
You would expect your program to work correctly on your computer since you would have all the files associated with the working of it! Make sure you include all the files needed in the setup package (.dll, .ocx, other setups, etc) so other people are able to run the program on their computer without problems.
CatchItBaby
Feb 16th, 2009, 04:33 AM
I have tried with Package and Deployment Wizard after creating package i m trying to install in my computer but it givving me error that
File not found ..."c:\windows\system32\mshtml.tlp"
What to do.........
CatchItBaby
Feb 16th, 2009, 04:57 AM
and i m tried this software too......
http://www.advancedinstaller.com/user-guide/tutorial-professional.html
it install the application but when i m seen the c:\programefile\mysoftwarename
it show the whole project in that folder.......
and i don't want to show the souce code...........
Plzz help me as soon as possible..........
thanks
Nightwalker83
Feb 16th, 2009, 09:49 PM
You can download "mshtml.tlp" and add it to your project's setup! With the the software you posted about in post #7 make a duplicate of the whole project folder then delete the source code from the duplicate folder and place it in software you mention above.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.