VB app as CD autorun? 
Author Message
 VB app as CD autorun?

I've read some discussions about why you can't use a Visual Basic app as
a CD autorun program, because the runtime library needs to be available
and some OCXs need to be registered with Windows. But I still don't
understand one thing. For example:

I've made a small CD autorun program in VB that doesn't use any OCXs. If
I run Setup Wizard, all I see that it needs are these files:

  MSVBVM50.dll
  StdOle2.tlb
  OleAut32.dll
  OlePro32.dll
  AsycFilt.dll
  Ctl3d32.dll
  ComCat.dll

Now what's wrong with copying these files to the the same directory on
the CD as the autorun executable? Why wouldn't that work?

TIA



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?
Hi

Because it doesn't...

I know that's not very helpful, but i've been in this similar situation
myself and trust me, you won't get it to work :-(

However, the best way around this is to write (or get a programming pal to
write) a small program in a language such as C++ or Delphi that once autorun
has started tells the computer to run your setup program.

It really isn't very difficult to put this together, I used Delphi, you
don't really need any particular programming experience with Delphi just a
bit of time.

Hope this is in some way helpful.

Jem

--
Knowledge is power... Power is control
Control the power and use your knowledge to help others
? Jem 1999

Quote:

> I've read some discussions about why you can't use a Visual Basic app as
> a CD autorun program, because the runtime library needs to be available
> and some OCXs need to be registered with Windows. But I still don't
> understand one thing. For example:

> I've made a small CD autorun program in VB that doesn't use any OCXs. If
> I run Setup Wizard, all I see that it needs are these files:

>   MSVBVM50.dll
>   StdOle2.tlb
>   OleAut32.dll
>   OlePro32.dll
>   AsycFilt.dll
>   Ctl3d32.dll
>   ComCat.dll

> Now what's wrong with copying these files to the the same directory on
> the CD as the autorun executable? Why wouldn't that work?

> TIA



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?
Another possibility is to use VB3!

Then you only need
vbrun300.dll    and you exe-file
autorun.exe    and of course
autorun.inf

and then you use the autorun.exe (VB3) to run you setup!

this must work, caus i do it and hewlett packard does *gggg*

Good Luck

Daniel

Quote:
> Hi

> Because it doesn't...

> I know that's not very helpful, but i've been in this similar situation
> myself and trust me, you won't get it to work :-(

> However, the best way around this is to write (or get a programming pal to
> write) a small program in a language such as C++ or Delphi that once
autorun
> has started tells the computer to run your setup program.

> It really isn't very difficult to put this together, I used Delphi, you
> don't really need any particular programming experience with Delphi just a
> bit of time.

> Hope this is in some way helpful.

> Jem

> --
> Knowledge is power... Power is control
> Control the power and use your knowledge to help others
> ? Jem 1999

> > I've read some discussions about why you can't use a Visual Basic app as
> > a CD autorun program, because the runtime library needs to be available
> > and some OCXs need to be registered with Windows. But I still don't
> > understand one thing. For example:

> > I've made a small CD autorun program in VB that doesn't use any OCXs. If
> > I run Setup Wizard, all I see that it needs are these files:

> >   MSVBVM50.dll
> >   StdOle2.tlb
> >   OleAut32.dll
> >   OlePro32.dll
> >   AsycFilt.dll
> >   Ctl3d32.dll
> >   ComCat.dll

> > Now what's wrong with copying these files to the the same directory on
> > the CD as the autorun executable? Why wouldn't that work?

> > TIA



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?
well yeah thats one way..
but could you not just get a C programmer to make a program(or do it in vb3)
that copies the needed files to the system dir then runs the vb6 program..
the files would have to be already registered but that should work

Bye,Alistair


Quote:
> Another possibility is to use VB3!

> Then you only need
> vbrun300.dll    and you exe-file
> autorun.exe    and of course
> autorun.inf

> and then you use the autorun.exe (VB3) to run you setup!

> this must work, caus i do it and hewlett packard does *gggg*

> Good Luck

> Daniel

> > Hi

> > Because it doesn't...

> > I know that's not very helpful, but i've been in this similar situation
> > myself and trust me, you won't get it to work :-(

> > However, the best way around this is to write (or get a programming pal
to
> > write) a small program in a language such as C++ or Delphi that once
> autorun
> > has started tells the computer to run your setup program.

> > It really isn't very difficult to put this together, I used Delphi, you
> > don't really need any particular programming experience with Delphi just
a
> > bit of time.

> > Hope this is in some way helpful.

> > Jem

> > --
> > Knowledge is power... Power is control
> > Control the power and use your knowledge to help others
> > ? Jem 1999

> > > I've read some discussions about why you can't use a Visual Basic app
as
> > > a CD autorun program, because the runtime library needs to be
available
> > > and some OCXs need to be registered with Windows. But I still don't
> > > understand one thing. For example:

> > > I've made a small CD autorun program in VB that doesn't use any OCXs.
If
> > > I run Setup Wizard, all I see that it needs are these files:

> > >   MSVBVM50.dll
> > >   StdOle2.tlb
> > >   OleAut32.dll
> > >   OlePro32.dll
> > >   AsycFilt.dll
> > >   Ctl3d32.dll
> > >   ComCat.dll

> > > Now what's wrong with copying these files to the the same directory on
> > > the CD as the autorun executable? Why wouldn't that work?

> > > TIA



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?
You could also use a DOS-Batch file and run it with VB3 in hidden mode
*GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG*

Quote:
> well yeah thats one way..
> but could you not just get a C programmer to make a program(or do it in
vb3)
> that copies the needed files to the system dir then runs the vb6 program..
> the files would have to be already registered but that should work

> Bye,Alistair



> > Another possibility is to use VB3!

> > Then you only need
> > vbrun300.dll    and you exe-file
> > autorun.exe    and of course
> > autorun.inf

> > and then you use the autorun.exe (VB3) to run you setup!

> > this must work, caus i do it and hewlett packard does *gggg*

> > Good Luck

> > Daniel

> > > Hi

> > > Because it doesn't...

> > > I know that's not very helpful, but i've been in this similar
situation
> > > myself and trust me, you won't get it to work :-(

> > > However, the best way around this is to write (or get a programming
pal
> to
> > > write) a small program in a language such as C++ or Delphi that once
> > autorun
> > > has started tells the computer to run your setup program.

> > > It really isn't very difficult to put this together, I used Delphi,
you
> > > don't really need any particular programming experience with Delphi
just
> a
> > > bit of time.

> > > Hope this is in some way helpful.

> > > Jem

> > > --
> > > Knowledge is power... Power is control
> > > Control the power and use your knowledge to help others
> > > ? Jem 1999



- Show quoted text -

Quote:
> > > > I've read some discussions about why you can't use a Visual Basic
app
> as
> > > > a CD autorun program, because the runtime library needs to be
> available
> > > > and some OCXs need to be registered with Windows. But I still don't
> > > > understand one thing. For example:

> > > > I've made a small CD autorun program in VB that doesn't use any
OCXs.
> If
> > > > I run Setup Wizard, all I see that it needs are these files:

> > > >   MSVBVM50.dll
> > > >   StdOle2.tlb
> > > >   OleAut32.dll
> > > >   OlePro32.dll
> > > >   AsycFilt.dll
> > > >   Ctl3d32.dll
> > > >   ComCat.dll

> > > > Now what's wrong with copying these files to the the same directory
on
> > > > the CD as the autorun executable? Why wouldn't that work?

> > > > TIA



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?
Hi, and thanks for your answer.

Strange thing is that it *does* work on all of the systems I have tried
so far. One of them even was a Win95 system with no previous VB
applications installed. I checked and it didn't have the VB5 runtime
libraries.

So I still don't see why it wouldn't work on any Win system... :(

Quote:

> Hi

> Because it doesn't...

> I know that's not very helpful, but i've been in this similar situation
> myself and trust me, you won't get it to work :-(

> However, the best way around this is to write (or get a programming pal to
> write) a small program in a language such as C++ or Delphi that once autorun
> has started tells the computer to run your setup program.

> It really isn't very difficult to put this together, I used Delphi, you
> don't really need any particular programming experience with Delphi just a
> bit of time.

> Hope this is in some way helpful.

> Jem

> --
> Knowledge is power... Power is control
> Control the power and use your knowledge to help others
> ? Jem 1999

> > I've read some discussions about why you can't use a Visual Basic app as
> > a CD autorun program, because the runtime library needs to be available
> > and some OCXs need to be registered with Windows. But I still don't
> > understand one thing. For example:

> > I've made a small CD autorun program in VB that doesn't use any OCXs. If
> > I run Setup Wizard, all I see that it needs are these files:

> >   MSVBVM50.dll
> >   StdOle2.tlb
> >   OleAut32.dll
> >   OlePro32.dll
> >   AsycFilt.dll
> >   Ctl3d32.dll
> >   ComCat.dll

> > Now what's wrong with copying these files to the the same directory on
> > the CD as the autorun executable? Why wouldn't that work?

> > TIA



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?

Quote:

>Hi, and thanks for your answer.

>Strange thing is that it *does* work on all of the systems I have tried
>so far. One of them even was a Win95 system with no previous VB
>applications installed. I checked and it didn't have the VB5 runtime
>libraries.

>So I still don't see why it wouldn't work on any Win system... :(

On some machines they may already have different versions installed -
some in memory - some not. Chaos will can follow.

Use a non-VB bootstrap to ensure a proper install

http:www.iss.u-net.com/cdboot.htm

Quote:


>> Hi

>> Because it doesn't...

>> I know that's not very helpful, but i've been in this similar situation
>> myself and trust me, you won't get it to work :-(

>> However, the best way around this is to write (or get a programming pal to
>> write) a small program in a language such as C++ or Delphi that once autorun
>> has started tells the computer to run your setup program.

>> It really isn't very difficult to put this together, I used Delphi, you
>> don't really need any particular programming experience with Delphi just a
>> bit of time.

>> Hope this is in some way helpful.

>> Jem

>> --
>> Knowledge is power... Power is control
>> Control the power and use your knowledge to help others
>> ? Jem 1999

>> > I've read some discussions about why you can't use a Visual Basic app as
>> > a CD autorun program, because the runtime library needs to be available
>> > and some OCXs need to be registered with Windows. But I still don't
>> > understand one thing. For example:

>> > I've made a small CD autorun program in VB that doesn't use any OCXs. If
>> > I run Setup Wizard, all I see that it needs are these files:

>> >   MSVBVM50.dll
>> >   StdOle2.tlb
>> >   OleAut32.dll
>> >   OlePro32.dll
>> >   AsycFilt.dll
>> >   Ctl3d32.dll
>> >   ComCat.dll

>> > Now what's wrong with copying these files to the the same directory on
>> > the CD as the autorun executable? Why wouldn't that work?

>> > TIA



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?

<snip>

Quote:
> Use a non-VB bootstrap to ensure a proper install

> http://www.iss.u-net.com/cdboot.htm

Hi,

Thanks for the link but if that program only does what is says it does
on that page, I could do that in a simple batch file...



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?
Hi,

I ran into the same problem and ended up using RapidQ to run a small
bootstrap program. RapidQ is a type of BASIC that runs under Windows
without any support files. It is really good for this sort of thing,
although I don't think I would attempt any large apps with it.
Download it for free from www.basicguru.com.abc.rapidq. I turned the
help documents into a standalone Windows helpfile if you need it.

cheers
Alex



Wed, 18 Jun 1902 08:00:00 GMT  
 VB app as CD autorun?

Quote:


><snip>

>> Use a non-VB bootstrap to ensure a proper install

>> http://www.iss.u-net.com/cdboot.htm

>Hi,

>Thanks for the link but if that program only does what is says it does
>on that page, I could do that in a simple batch file...

So use a batch file - and watch what the result looks like.


Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 10 post ] 

 Relevant Pages 

1. Creating an autorun CD for a VB application package

2. CD's Autorun VB program

3. REPOST: turning off cd autorun through vb

4. Newbie CD Autorun question

5. Autorun CD's and VB4

6. CD AutoRun...

7. Autorun with CD

8. CD Autorun files for VB6 project

9. AutoRun.inf for CD

10. Package and Deployment wizard for a autorun CD.

11. Autorun a CD

12. CD Autorun problem

 

 
Powered by phpBB® Forum Software