Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    1

    Huh? Any help on this would be appreciated...

    First let me say I am a total noob at scripting, I have a handle on some of the concepts but mostly I'm still grey in alot of areas. Here's basically what I want to accomplish in Setup Factory:

    I have already created cd with a menu that lets me click and run several differnet .bat and .exe files, and it works great. All my resources (patches, files etc.) are located on the cd. As a secondary option on the cd, as opposed to clicking each button to install all these seperatley, I'm going to add a button that that will run my setup.exe that I create in Setup Factory. When the setup runs I want it to have a page of checkboxes that can be selected to run all the programs I have associated with that check box, and I want it to RUN them from the cd, NOT copy them to a directory on the hard drive.

    For example, if I have 3 checkboxes:
    1. Install Acrobat.exe
    2. Install myfile.bat
    3. Install kb765339.exe

    and I check all 3 boxes, I want to RUN all 3 of these files from the cd. I have played around with the File.Run action but to be honest I'm not sure the syntax I need to use to make them run from the cd and work with checkboxes. Anyone have a small sample code they can post for me? Thanks!

  2. #2
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    If you can make it run from .bat scripts, then for simplicity, I’d run them from your CD in the same way, with a .bat file. If you place the .bat file in the same folder as the exe that you want to run, you should be able to use relative paths in your .bat file. If not, you could dynamically write your .bat file at run time, in the user’s temp folder. It’s not exactly what you wanted, I know.

    If you want to write out the .bat file dynamically, look at the built in session variables %SourceDrive% and %SourceFolder% also the actions SessionVar.Expand and TextFile.WriteFromString

    Another way would be to post what your current ‘running’ bat files look like, and maybe me or someone might be able to help you with the correct syntax needed to pass your switches and variables using the FileRun action.

    HTH
    Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
    Visit Acme-Tek

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts