Announcement

Collapse
No announcement yet.

Running an exe Installed by Setup Factory

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

  • Running an exe Installed by Setup Factory

    I am creating a menu which autoplays from a CD with the following options:
    1) Install Software
    2) Play software

    When they click on install software, it runs the setup program created with setup factory off of the cd, which works perfectly using the %SrcDrv% variable. What I want to do is that when they click on "Play software" it launches an executable that Setup Factory installs in the %SCFolder%. Is there anyway to tell Autoplay to run the program located in whatever folder the software was installed into? Or possibly to tell it to look for a particular file and play it when it finds it?


    Also, is there anyway to force them to install first before being able to play it? If they play without installing it will surely give them a message saying that it can't find the file its looking for.

    Thank you

  • #2
    Re: Running an exe Installed by Setup Factory

    Hi,
    What you should do is write the path that the user installs to into an INI file or into a registry, but I think that the registry is a better choice. So what you would want to do is store %AppDir% (which is where the users installs) into the registry, then use AutoPlay to read that key out of the registry. You will have to be careful though, making sure that AutoPlay reads the newest variable from the registry. So after the install you will have to update your menu somehow.
    In order to force the install before the play what you could do is hide your PLAY button if it does not find the registry key that SUF installs.
    I hope that this helps.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: Running an exe Installed by Setup Factory

      Hi Mark,

      Thank you for your reply. I'm having a problem though. I am very unfamiliar with adding things to the registry. WHen you say that I need to store %AppDir% in the registry, do I just choose "Create Key" from the System Editor, and type "%AppDir%" in the sub key?

      You also mentioned that I will need to update my menu somehow because Autoplay needs to view the newest record in the registry. Do you have any suggestions as to how I would go about doing this?

      Thank you.

      Comment


      • #4
        Re: Running an exe Installed by Setup Factory

        Hi Mark,

        I just wanted to say that you are a God. Thank you so much for your help. I know it must be frustrating dealing with dummy questions like mine.

        I also wanted to say that your software is absolutely beautiful. I'm am an absolute nut with no knowledge of this kind of stuff. Even the thought of looking at the registry was making me mad. But this program actually made it not only doable, but actually simple.

        Thanks again and take care,
        Gary

        Comment

        Working...
        X