Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12
  1. #1
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804

    Problem with external file

    I've built an AMS application that gets installed via a SUF 6 executable. Everything was working just great until I added a feature to the project, and now I'm getting a perplexing problem.

    I have an option to run the project after installation - chosen via a checkbox on a the screen prior to the finish screen. It runs the program fine, and everything is normal. EXCEPT - I have added a feature to the AMS 4 project that enables a viewer to click a text object to load a PDF readme file externally (called What's New). I get the error that the file cannot load because it can't be found.

    HOWEVER, when I re-run the program from its installed location on my hard drive, the link works just as expected! No more problems.

    I tried rebuilding everything in both programs. I have no idea. Any ideas are appreciated.
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  2. #2
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    My immediate thought is to check that the calling program for the PDF is correct. I have seen similar problems where the file association for PDF gets screwed and although opens fine if you double-click it, does not if called from another system. Turns out the system is trying to use a different version. Just my two-pennies worth and probably totally wrong.

    John

  3. #3
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804
    Right, well that doesn't explain why it works AFTER first run. Even if I don't launch the program automatically via Setup Factory (execute program command), when I launch it the first time manually from either the desktop shortcut that SUF 6 creates or from the shortcut inside the Start menu folder, it works fine. It just fails when SUF launches the program.

    Any more ideas? (thanks anyway!)
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  4. #4
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    Only other thought is whether you have told it to wait before continuing in the project? It could be that Acrobat is not given enough time during the set-up to launch itself before SUF6 tells it to close down if that action is not set. Or SUF6 thinks Acrobat has finished when it has not which may be a bug.

    Alternative is to not use an Acrobat file but either a text or word file which may be quicker to load.

    Would be interesting to see what happens with SUF7 which has a lot more functionality of course.

    John

  5. #5
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Eric,

    This is a strange error indeed. Does it matter what operating system the install was run on?

    What happens if you install the program to a shorter path such as c:\folder rather than the Program Files directory?

    What happens if you try to open that PDF file directly through Setup Factory? Does this open the file?

    These are just tests to run to see what the issue could be.

    Adam Kapilik

  6. #6
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Eric,

    How are you making the call in AMS4? Are you using %SrcDir%? It kind of sounds like it might be a "Working Directory" issue, but I'm guessing.

  7. #7
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804
    Quote Originally Posted by Worm
    Eric,

    How are you making the call in AMS4? Are you using %SrcDir%? It kind of sounds like it might be a "Working Directory" issue, but I'm guessing.
    Yes, I'm using %SrcDir%. The PDF file is in the root directory of the CD.
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  8. #8
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804
    Quote Originally Posted by Adam
    Eric,

    This is a strange error indeed. Does it matter what operating system the install was run on?

    What happens if you install the program to a shorter path such as c:\folder rather than the Program Files directory?

    What happens if you try to open that PDF file directly through Setup Factory? Does this open the file?

    These are just tests to run to see what the issue could be.

    Adam Kapilik
    Sorry, crazy last day and a half around here. I just got around to testing a couple of your questions out.

    1) No, it doesn't matter what computer/OS. It's the same everywhere.
    2) If I open the file directly through Setup Factory, it opens normally.
    3) I haven't yet tried to install to a shorter path... No time right now to test that out - but I'll try to get back to it.

    Thanks, Adam.

    And now, we return you to your regularly scheduled hurricane.
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  9. #9
    Join Date
    Jan 2000
    Posts
    2,002
    What if you set the working directory when you call the app from SUF? Explicitly set the working folder in your file run action to be the same folder that the PDF file is in... not sure that this will work for sure, but I have had problem with this kind of thing and it really sounds like a working directory issue to me.

  10. #10
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804
    Hey Brett, you mean in AMS, right?
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  11. #11
    Join Date
    Jan 2000
    Posts
    2,002
    Yeah I guess so. All of your "Setup Factory" this and "AMS" that got me all backasswards.

  12. #12
    Join Date
    Jun 2002
    Location
    Southeast USA
    Posts
    1,804
    You know, I had that thought too, Brett, right after I originally posted a couple of days ago. So, I set the working directory, but I still experience the same issue, so it's not that.

    I did eventually find a workaround for the whole mess, though... Take out the option to start immediately after install complete. The client never missed it, particularly because I added a screen with options to run the read me text file and another PDF, which both work just fine, BTW.

    So, it'll remain a mystery since that's the first and last build I'll ever do in 6. I have already converted the project to 7, and from now on, that's where yours truly will stay.
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

Similar Threads

  1. HOWTO: "Hide" Externally Referenced Files
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 03:19 PM
  2. PROBLEM: Setup Requests Disk 2 in a Single File Setup
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-09-2002, 02:04 PM
  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. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 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