I've looked in the setup1.vbp to try and figure this out, but I'm having a little trouble with it this morning.

First my situation:
I need to write an Autorun program for a custom project CD, not merely autorunning a setup program this is going to be a GUI for the CD basically.

The problem I know I'm going to run into is if a person tries to run my CD on a computer that does not have VB runtimes or any of the non basic controls I may use in the interface.

Now I know the Package and Deployment wizard has a way of copying over and registering all controls previous to running the installation program, this is the code I was looking for. I figured if I could incorporate it into my program then I could just have it copy and register the files and then run my executable as normal.

This is the part where I get confused, in setup1.vbp for the package and deployment wizard, the program is set to start on frmSetup1.. so of course I go there and look in the Form_Load sub, and only thing I can find is this note:

VB Code:
  1. '
  2.     ' The Setup Bootstrapper (SETUP.EXE) copies SETUP1.EXE and SETUP.LST to
  3.     ' the end user's windows directory.  Information required for setup such
  4.     ' as setup flags and fileinfo is read from the copy of SETUP.LST found in
  5.     ' that directory.
  6.     '

So am I assuming correctly that there is another application that pre runs before the actual Setup file that this program creates? Is there anywhere I can access the source for that application, or can someone tell me a way to duplicate it's actions?