
Run VB app directly from CD without running setup
Scott & Peter,
I'm afraid it isn't as simple as this what you suggest ;-)
First make sure you use VB5 (as VB6 needs newer versions of some
system-dll's), take the VB5 runtime dll with you (I saw indeed that on some
NT-systems this will not work, maybe because of another version in systemdir
?)
If you are lucky you have dll's which doesn't need to be registered, if your
using COM-dll's you have to REGSRV32 the dll's.
If you register the dll's , you are actually creating a little install app,
so when closing the app, you have to unregister the dll's, think about the
fact your app or Windows can crash while running (although it is very
unlikely ;-))
If you are using MDB's, make sure you open it exclusively and read-only,
oherwise the Jet will try to create a LDB on the same place where the MDB
resides, if on CD => cannot write on CD
What reportwriter are you currently using ?
Hope this helps, please correct me when wrong (I'm currently developing in
Clarion, where things are somewhat different).
--
Regards,
Peter Quick
Tekton IT
Software Developer (Clarion, VB, SQL Server)
Quote:
> If I get you right, you want to run a program from CD...
> You can copy *all* the runtime files needed for the app into the same
folder
> as the executable on the CD and then (sometimes not Windows NT) it will
work
> fine.
> Peter
> > Is there a way that I can write a VB app and run it from a CD without
> having
> > to install anything on a users machine?
> > Most of my app works by just copying the files to a CD, but I can't
print
> or
> > display a report (I get Error # 713, which I also can't find!).
> > Thanks in advance,
> > Scott Murray