Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Join Date
    May 2009
    Posts
    5

    Run Program Error

    I am a newbie, I created a new autoplay project and made a button that will run a program (setup to be precise), but whenever I click on that button it says Error: 9999, and after I click OK it says "An unknown error occurred", the installation continues fine as if there were not any errors. So it does install it, but this error pops up, so what is the problem.

  2. #2
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    Export your project to a .APZ file and upload it to the forum so that we can look at your code to better help you.

  3. #3
    Join Date
    May 2009
    Posts
    5
    Ok, here is the project, error pops up with Run Program as quick action, no matter what i put in to run. Please somebody...
    Attached Files

  4. #4
    Join Date
    Apr 2009
    Posts
    277
    !HELP! theres a werid looking spider in my pc!, lol

    i dont think you can use code and a quick action together

    trythis
    Attached Files

  5. #5
    Join Date
    May 2009
    Posts
    5
    Hehe, yeah, I over reacted, well, thanks for the tip, everything works fine now.

  6. #6
    Join Date
    May 2009
    Posts
    5
    Why I can not use Run program as a quick action? And the solution you provided only works with some .exe files, for example, my Setup.exe will not start with the script provided(yes, of course I changed the filename). Why do not you try with other .exe files.

  7. #7
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    No one said you couldn't use quick action to run an exe.

    Someone did say that you may not be able to use a quick action to run the exe AND also run the action scripts (in your case...Page.Jump)

    As for the code provided. There should be no reason why you can't run ANY exe using that code. Maybe you need to add args or whatever. Or maybe you need to change WaitForReturn to true.

  8. #8
    Join Date
    Apr 2009
    Posts
    277
    or set the correct working directory, anyhow, if File.Run is not working on some exe's then try Shell.Execute

  9. #9
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    error 9999 (Unknown error), wasn't this the C stack overflow?
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  10. #10
    Join Date
    Apr 2009
    Posts
    277
    in that case AMS would generate a "C Stack Overflow" error message which usually means there's a endless loop somewhere

    its a unknown error because the OP confused the runtime error checking, its looking for errors in the quick command while also doing a page jump from the script, as you may know, lua is not multi threaded and can only perform 1 action at a time

    also the Page.Jump action exists the running function or script, so if the File.Run is checking for a files existence and the Page.Jump exists the script then the runtime does not know what just happened and generates a unknown error

    in any case, mixing quick commands and script actions is not a good idea and produces unpredictable results

  11. #11
    Join Date
    May 2009
    Posts
    5
    Thanks microbyte, Shell.Execute did the thing.

  12. #12
    Join Date
    Jan 2009
    Location
    Turkey
    Posts
    17
    I have a spider thanks :-S

Similar Threads

  1. Including CrystalReport VS2005
    By Calisana in forum MSI Factory 2.0 Discussion
    Replies: 3
    Last Post: 03-17-2009, 09:28 AM
  2. How can I make a Program Run Every Time the System Starts
    By Adam in forum Setup Factory 8.0 FAQ
    Replies: 0
    Last Post: 04-28-2008, 11:15 AM
  3. ANSI To UNICODE Is Finished!
    By coderanger in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 08-13-2007, 09:27 AM
  4. Error 1013 trying to run program with msi extension
    By sstmsup1 in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 06-30-2007, 06:28 AM
  5. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 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