Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    1

    Oops File.Run return code problem

    i'm make a AutoPlay CD. and having the following code to run an installation. When a user click on the button, below is the script. The problem is that when I run the installation locally. The return code work. When I run on the CD, the return code doesn't work.

    Window.Minimize(Application.GetWndHandle());
    Install = File.Run("AutoPlay\\Data\\setup.exe", "", "", SW_SHOWNORMAL, true);
    if ( Install == 0 ) then
    Window.Restore(Application.GetWndHandle());
    end;

    Can anyone please help me figure out what is wrong? Thanks,

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Try putting:

    Code:
    Install = File.Run(_SourceFolder.."\\AutoPlay\\Data\\setup.exe", "", "", SW_SHOWNORMAL, true);
    and see if that works.

    There are several of these Global Variables listed in the help file under Variables > Global variables

    hth

Similar Threads

  1. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM
  2. File.Run problem
    By Harris in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 03-26-2007, 06:02 AM
  3. Problem with File.Run and WaitForReturn
    By Steve_K in forum Setup Factory 7.0
    Replies: 3
    Last Post: 12-19-2006, 09:40 AM
  4. File.run problem
    By Dan Ullman in forum Setup Factory 7.0
    Replies: 2
    Last Post: 09-07-2006, 11:17 AM
  5. Problem running File.Run
    By casman in forum Setup Factory 7.0
    Replies: 11
    Last Post: 03-28-2006, 10:23 AM

Posting Permissions

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