Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 11 of 11
  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Huh? Quick Action Run Program Failure

    AMS 6.0.2.0

    I have run into an issue that is trully frustrating me.

    I have a simple InstallShield installer in the CD_ROOT\AutoPlay\Docs\server\ folder. If I use the "Quick Action" "Run Program" action, it will fail with an error '1013: File Execution Failed'.

    I have tried to use scripting directly with:

    Code:
    File.Run(_SourceFolder.."\\AutoPlay\\Docs\\server\\setup.exe", "", "", SW_SHOWNORMAL, true);
    I have tried several variations of the working folder, etc.

    This does not work and returns a simple '0'.

    If I use File.Open() or choose the Quick Action "Open Document", my setup will be launched.

    Does anyone have any clues on this one?

  2. #2
    Join Date
    Jan 2007
    Posts
    2

    Huh?

    Quote Originally Posted by mikenac View Post
    AMS 6.0.2.0

    I have run into an issue that is trully frustrating me.

    I have a simple InstallShield installer in the CD_ROOT\AutoPlay\Docs\server\ folder. If I use the "Quick Action" "Run Program" action, it will fail with an error '1013: File Execution Failed'.

    I have tried to use scripting directly with:

    Code:
    File.Run(_SourceFolder.."\\AutoPlay\\Docs\\server\\setup.exe", "", "", SW_SHOWNORMAL, true);
    I have tried several variations of the working folder, etc.

    This does not work and returns a simple '0'.

    If I use File.Open() or choose the Quick Action "Open Document", my setup will be launched.

    Does anyone have any clues on this one?
    I am getting the same error also. The only thing that I changed recently, I upgraded to IE 7.0. Is there any solution for this? I am currently running the trial version, which I downloaded from the link sent by email. I hope this can get resolved before the trial runs out.

    Any clues?
    Last edited by Boaz; 01-23-2007 at 07:29 AM.

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    ok, i might be wrong but i think installshield msi installers use starndard windows components for its runtime engine, so file.open would be right (because you want to open the msi with its default app, ie: windows installshield)
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Jan 2007
    Posts
    2

    Oops

    This problem stinks. It does work, I have to manually set a scripts each time, but I have to do this for many programs that I want a button to "Run". I tried uninstalling & reinstalling, but to no avail. I'm throwing in the towel on this one! Well, Good thing it was only a trial.

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    This problem stinks. It does work, I have to manually set a scripts each time, but I have to do this for many programs that I want a button to "Run". I tried uninstalling & reinstalling, but to no avail. I'm throwing in the towel on this one! Well, Good thing it was only a trial.
    i fail to see what the problem is, i explained why File.Run dosent work, and a script for each file "one line of code" is all it takes

    if you are throwing in the towel already with ams, im sure you will NOT find anything else that will do the job as easy as "one line of code"

    have you tryed the quick action for open document ?? as windows would see a msi package as a document of sorts and open it with the default viewer ie: installshield,

    just apply a little brain power b4 you "throw in the towel" with a software development tool that is as easy to use as spreading butter on toast, its not ams at fault, its the msi installer package that relys on windows componants to make it work,
    Open your eyes to Narcissism, Don't let her destroy your life!!

  6. #6
    Join Date
    Jan 2007
    Posts
    271

    New Update Does This

    I had the same problem with Quick Action , Run Program.
    I am not sure what happens but I know for sure thru testing
    that it has to do with the new update.
    If you can set up your version of AMS 6.0 on another computer,
    don't allow update and carry your app to that computer you can then work on your app again , it will work as it did before.
    Once you Build your program it will work.

    This may not be the exact problem you were having , I did have a problem with all of my
    run program from button properties not working after the update.These were to open
    Note Pad , Calculator , Users, Control Panel, and several other Common windows Programs.
    Some using .bat files and others using the path to the .exe files.
    Last edited by AudioSam; 01-31-2007 at 06:09 AM. Reason: More Information

  7. #7
    Join Date
    Jan 2007
    Posts
    271

    Screen Shot of Control Panel


  8. #8
    Join Date
    May 2005
    Posts
    1,115
    .msi file is not a program, it's a database.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  9. #9
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    What is the name and location of the file you're trying to run? Are you sure it's named "setup.exe" and that it is an executable file, and not just an .msi file that has been renamed?

    If it's a .msi file (a.k.a. "Windows Installer"), it isn't an executable, renaming it to "setup.exe" won't change how it works. To run an MSI file you need the Windows Installer engine installed. Then you would either use a File.Open action, or run the Windows Installer engine "msiexec" and pass the .msi file to it as a command line argument.

    Does the file run on its own if you run it from a command line? If you're getting an error trying to execute it, it could just be that the file is corrupted. Or, as I explained above, it might not be an actual "executable" file.
    --[[ Indigo Rose Software Developer ]]

  10. #10
    Join Date
    Jun 2007
    Location
    Indianapolis, IN USA
    Posts
    5

    Coming from DemoShield

    Coming from DemoShield to AMS6, I have to laugh at how quickly he was ready to throw in the towel. AMS6 is like a breath of fresh air. I was also having problems with .msi's because I was trying to use the quick action 'run program'. I changed it to File.Open and have no problems. And, it's not like you have type a fresh one for every install - just duplicate and update your script to the appropriate msi. It's not so bad. Hope this helps someone else.

  11. #11
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Side note, I recommend the original poster update AMS to the latest version. (press the F9 key inside of AMS).
    Intrigued

Similar Threads

  1. Run a program from a DVD
    By Stephen G. in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 07-13-2004, 02:53 PM
  2. Strange behaviour of the Close Program action
    By Elp in forum Setup Factory 6.0
    Replies: 2
    Last Post: 05-17-2004, 10:38 AM
  3. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  4. 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
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 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