Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2006
    Posts
    4

    Oops Newbie Please help

    I am trying to link a variable from a ComboBox to a Button

    my vain attempts so far

    result = ComboBox.GetSelected("ComboBox1");

    if result == 1 then File.Run("setup\\xp\\professional\\i386\\winnt32.e xe", "", "", SW_MAXIMIZE, false);
    elseif result == 2 then File.Run("setup\\xp\\home\\i386\\winnt32.exe", "", "", SW_MAXIMIZE, false);
    --if result == 4 then File.Run("", "", "", SW_MAXIMIZE, false);
    --if result == 5 then File.Run("", "", "", SW_MAXIMIZE, false);
    elseif result == 5 then File.Run("setup\\98se\\setup.exe", "", "", SW_MAXIMIZE, false);
    end

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    The only thing I can see so far as a problem in your code is the call to the exe. You start with the setup folder, where is it located? Your best bet would be to move it to the Docs folder and call it from there.
    Hope that helps.

    Yossi

  3. #3
    Join Date
    Mar 2006
    Location
    Corpus Christi, Texas
    Posts
    132
    I'm just starting out myself but i did notice something but it just might be a typo. Looks like there is a space.


    if result == 1 then File.Run("setup\\xp\\professional\\i386\\winnt32.e xe", "", "", SW_MAXIMIZE, false);
    elseif result == 2 then File.Run("setup\\xp\\home\\i386\\winnt32.exe", "", "", SW_MAXIMIZE, false);
    --if result == 4 then File.Run("", "", "", SW_MAXIMIZE, false);
    --if result == 5 then File.Run("", "", "", SW_MAXIMIZE, false);
    elseif result == 5 then File.Run("setup\\98se\\setup.exe", "", "", SW_MAXIMIZE, false);
    end

  4. #4
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Quote Originally Posted by yosik
    The only thing I can see so far as a problem in your code is the call to the exe. You start with the setup folder, where is it located? Your best bet would be to move it to the Docs folder and call it from there.
    Hope that helps.
    Further to Yossi's point, you'll need to state in your script where the .exe specifically is. There are several ways to do this:

    1. Hard code the path
    Code:
    File.Run("C:\\WINNT\\System32\\setup\\xp\\professional\\i386\\winnt32.exe", "", "", SW_MAXIMIZE, false);
    2. Use a global (built-in) variable to establish a path relative to where your AMS app is running from
    Code:
    File.Run(_SystemFolder.."\\setup\\xp\\professional\\i386\\winnt32.exe", "", "", SW_MAXIMIZE, false);
    3. Lookup the location of the .exe if you know that it has been stored elsewhere (i.e. registry or .INI file)


    P.S. Nice avatar!
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  5. #5
    Join Date
    Mar 2006
    Posts
    4

    Smile

    thx for this guys .... still not working though

    here's what I am wanting to do .... all the OS's on 1 DVD ... I need to be able to install from this DVD

    any further help is appreciated

  6. #6
    Join Date
    Dec 2003
    Posts
    891
    Quote Originally Posted by graham
    thx for this guys .... still not working though

    here's what I am wanting to do .... all the OS's on 1 DVD ... I need to be able to install from this DVD

    any further help is appreciated
    So, the setup exe's will be on the same CD as the AMS exe?
    Hard to preview to see if it works, as you would have to build to the ROOT of a drive, then have the rest of the folders/files put at ROOT also.
    You would almost have to burn it it to test.
    However, try this:
    Build the project to a folder.
    In your CD burner program, put the built project so that the autorun.exe is at ROOT. Put your setup folders files in the order as you have shown here.
    then, for the path you have set in your project use:

    File.Run(_SourceDrive.. "\\setup\\xp\\home\\i386\\winnt32.exe", "", "", SW_MAXIMIZE, false);

    this will give the autorun.exe the path from ROOT of the CD.
    Last edited by Roboblue; 03-16-2006 at 10:49 AM.

  7. #7
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Ok... I need a little clarification... Are you trying to call the .exe file that is on the user's system or on the DVD?

    If they are on the DVD, this should work assuming that the "setup" folder is off the root of the DVD. Otherwise adjust the path accordingly.

    Code:
    if result == 1 then File.Run(_SourceDrive.."\\setup\\xp\\professional\\i386\\winnt32.exe", "", "", SW_MAXIMIZE, false); 
    elseif result == 2 then File.Run(_SourceDrive.."\\setup\\xp\\home\\i386\\winnt32.exe", "", "", SW_MAXIMIZE, false); 
    --if result == 4 then File.Run("", "", "", SW_MAXIMIZE, false);
    --if result == 5 then File.Run("", "", "", SW_MAXIMIZE, false);
    elseif result == 5 then File.Run(_SourceDrive.."\\setup\\98se\\setup.exe", "", "", SW_MAXIMIZE, false); 
    end
    If you are trying to call the .exe from the user's system, please repost the code that is not working. We may have to add some script to find or confrim the file's existance and location before running it.
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  8. #8
    Join Date
    Mar 2006
    Posts
    4

    Thumbs up

    Thx Guys
    all working now .... just needed writing to DVD ... wich set the path correctly


  9. #9
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Good for you.
    Yossi

Similar Threads

  1. Complete Newbie
    By Clayman in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 10-06-2005, 08:10 AM
  2. Scrolling title in mp3 player (i'm a newbie)
    By MaDePmAx in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 09-21-2003, 04:58 AM
  3. Newbie Question - Shortcuts To QuickLaunch
    By Major_Moe in forum AutoPlay Media Studio 4.0
    Replies: 10
    Last Post: 09-06-2003, 04:47 PM
  4. Newbie thank's & questions
    By Col_in_UK in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 05-30-2003, 11:52 AM
  5. Newbie question, this has got to be a simple just don't know why
    By shogo in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 05-24-2003, 01:18 PM

Posting Permissions

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