No announcement yet.

Autorun and accessing another CD

This topic is closed.
  • Filter
  • Time
  • Show
Clear All
new posts

  • Autorun and accessing another CD

    I am creating a menu that will prompt to insert another CD and install an application.

    Once the installation is complete, I would like to have the original CD replaced. When this is done, the autorun menu is started again.

    This causes there to be two instances of the menu. Is there a way to prevent this?


    [This message has been edited by Phil (edited 01-26-2001).]

    [This message has been edited by Phil (edited 01-29-2001).]

  • #2
    Re: Autorun and accessing another CD

    I guess the easy solution would be to have the user close down the application first before inserting the second CD...


    • #3
      Re: Autorun and accessing another CD

      Thanks, but having the user close down the menu is not an option.

      So far all works well, and after the installation is completed, the user is returned to the same location.

      The only issue now is that AMS starts again. I am just looking for a way to prevent this.



      • #4
        Re: Autorun and accessing another CD

        I have an instance in my projects that requires the user to insert another CD. Fortunately, this additional CD is one of the 2-disk set I am distributing. Which contains my own autorun. But, I do require the user to shut down the original Autorun, then insert the 2nd CD and do whatever they need to do, (i.e. install app). Then they have to go back to the original CD if they want to see what's on there. Now that particularly project made it quite easy to switch, mostly because of what was on the CD's. If you're wanting to insert another manufacturer's cd, then go back to your custom one can be a little more of a pain. Is it possible to place the contents of the 2nd CD onto yours?



        • #5
          Re: Autorun and accessing another CD

          Hi Phil,
          What you might want to do, although this would be risky, is to block your menu from starting if a certain registry key exists. So you when your menu starts you would check the registry to see if a certain key exists, if it does then make sure that your menu quits. So you would have a READ FROM REGISTRY action and a CLOSE/EXIT action that would occur on the PROJECT STARTUP event. The CLOSE/EXIT action would have a BOOLEAN CONDITION that that specific registry key existed. Then when you prompt the user to insert another CD-ROM to install the software, you would create the registry key. Now when the original CD-ROM is inserted, after the installation, the AutoPlay menu would not start again because the registry key exists. That would work; you just have to make sure to delete the registry key whenever you exit the menu. So delete the key on the PROJECT CLOSE event.
          Hopefully this explains how to accomplish this, if you need more details feel free to contact me.

          MSI Factory The Next Generation Intelligent Setup Builder