Running a VB Program from CD

  • Thread starter Thread starter Damien Eagles
  • Start date Start date
D

Damien Eagles

Just wondering if anyone out there has managed to statically link a VB
Program. I want the exe and all dependencies to be included in one file
so that it can run from CD without needing to install it first and
register all the Dll's. Its possible to do this with Visual C++ but so
far from what I've read VB doesn't support it. I thought someone might
know of a third party tool that can do it. Any ideas???
 
Damien,

* Damien Eagles said:
Just wondering if anyone out there has managed to statically link a VB
Program. I want the exe and all dependencies to be included in one file
so that it can run from CD without needing to install it first and
register all the Dll's. Its possible to do this with Visual C++ but so
far from what I've read VB doesn't support it. I thought someone might
know of a third party tool that can do it. Any ideas???

It's possible with C++, but /not/ with VB.NET and /not/ with VB Classic.
 
Hi Damien,

You cannot do this with VB.NET as the .NET Framework is required on the
current machine in order to run the compiled assembly. If it is VB Classic
then the best you could do would be to write a bootstrapper program in C/C++
that detected the required runtime files and if they did not exist then it
could attempt to copy/register them on the machine before finally calling
your VB exe.

Gary
 
Hi,

I read this thread and wondered: running a setup from CD is possible. Look
at the setup1.exe from VB6, when put on CD it will run anywhere, as long as
you include the runfile in the same folder on cd AND compile it with option
'small code'.

John
 
¤ Just wondering if anyone out there has managed to statically link a VB
¤ Program. I want the exe and all dependencies to be included in one file
¤ so that it can run from CD without needing to install it first and
¤ register all the Dll's. Its possible to do this with Visual C++ but so
¤ far from what I've read VB doesn't support it. I thought someone might
¤ know of a third party tool that can do it. Any ideas???
¤

About the only the versions of Visual Basic that would support something such as this are 3.0 and
prior.

The only other alternative would be a product called Bit-Arts Fusion, however I believe the product
is no longer supported by the vendor.

There is nothing for VB.NET.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Why not?


Paul Clement said:
¤ Just wondering if anyone out there has managed to statically link a VB
¤ Program. I want the exe and all dependencies to be included in one file
¤ so that it can run from CD without needing to install it first and
¤ register all the Dll's. Its possible to do this with Visual C++ but so
¤ far from what I've read VB doesn't support it. I thought someone might
¤ know of a third party tool that can do it. Any ideas???
¤

About the only the versions of Visual Basic that would support something such as this are 3.0 and
prior.

The only other alternative would be a product called Bit-Arts Fusion, however I believe the product
is no longer supported by the vendor.

There is nothing for VB.NET.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
¤ Why not?
¤

Because a rather significant runtime called the .NET framework needs to be installed first. If you
can assume it is already installed then there is a pretty good possibility that you can create a
VB.NET auto run program.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Paul,

It is the assumption part that I don't want to worry about. What I want to
know is if there is a way for the program to detect if the framwork is
installed on the machine that would be running the program.

Brad


 
¤ Paul,
¤
¤ It is the assumption part that I don't want to worry about. What I want to
¤ know is if there is a way for the program to detect if the framwork is
¤ installed on the machine that would be running the program.

Basically you would need a bootstrapping program to check if Mscoree.dll is installed. I think there
is a registry entry you can check as well. Of course the bootstrapping program cannot be written in
..NET, but there are tools available that would enable you to do this.

You can also check the MS doc on this topic:

http://msdn.microsoft.com/library/d...setupexebootstrappersamplewithapplication.asp


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top