Quicktime detection - referring to drive letters problem

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Quicktime detection - referring to drive letters problem

    Hello

    After browsing the forum, I found a reference to a mediamacros.com script which detects quicktime and installs the latest version which is located on the CD ROM which contains the Director projector.

    I have a CD/DVd ROM drive which shows up on my WinXP computer as Drives D and E. (I imagine that one is the CD ROM and one is the DVD ROM).

    I have since learned that - keeping in windows traditions - there is no standard for which drive letter is used for the CD ROM. Since my script references a quicktime installer that is on the CD, how do I get the script to find the installer no matter what the drive letter is?

    The script is below:






    --Checks to see if QuickTime version 5.0
    --or greater is installed on the user's machine.
    --If no version or a version lower than 3.0 is found
    --the QuickTime installer is launched and the projector quits.
    --If the the QuickTime version is 3.0 or Higher
    --the movie continues to the marker "Start"

    on exitFrame
    global qtversion
    put quicktimeversion() into qtversion
    if the quicktimePresent = 1 then
    if qtversion < 5 then
    open "QuickTimeInstaller.exe"
    quit
    else
    go to movie "Start"
    end if
    else
    open "QuickTimeInstaller.exe"
    end if
    end





    Thanks,

    -----------------------S

    --------------------

    Steve Dorsey
    Dorsey Graphics

    :: 3D
    :: Animation
    :: Web Design
    :: Digital Media

    [url]http://www.dorseygraphics.com[/url]

    --------------------
    spdorsey webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. problem with polish letters passing to database
      hi. I have problem with polish letters like '?????????' passing from flex to CF script writing them to database . All I get is a string like...
    2. dancing letters problem
      Hi, Does anyone have this problem: The Uppercase letter is hanging a bit over the footline compared to the rest of the smallcaseletters that...
    3. Quicktime detection in Director
      Hi I have inserted a quicktime movie into a Director CD rom I have created, now I need a 'sniffer' detector of some kind, so I can tell the end user...
    4. strange quicktime detection/installation exit problem...
      hey ho! this time i've got a weird problem: i've got a stub which starts a quicktime detection (qtcheck.dir). if a quicktime version below v.6...
    5. Server Drive Letters
      exec master..xp_fixeddrives "Lynn Owens" <lowens@ssinews.com> wrote in message news:0b0e01c340ab$a3b3a2f0$a501280a@phx.gbl...
  3. #2

    Default Re: Quicktime detection - referring to drive letters problem

    since your projector and dir movie is also on the cdrom, the first char of
    "the moviePath" will give the drive letter, and more

    say your cd is organised :

    projector.exe
    mainmovie.dxr
    install\install_QT.exe

    in your script you'll put

    open (the moviePath & "\install\install_qt.exe")

    hth
    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------


    Ned Guest

  4. #3

    Default Launching external app in OSX

    What about on a Mac?

    I guess I'm making a separate projector for Mac and Windows, so I'll need to adjust my Quicktime Installation script so that it works with my .pkg file on the mac, and my .exe file in Win.

    "Open" command works great on the PC to launch .exe. On the Mac, it will not launch the .pkg file or mount a .dmg.

    Any ideas?

    Thanks,

    ------------------Steve

    --------------------

    Steve Dorsey
    Dorsey Graphics

    :: 3D
    :: Animation
    :: Web Design
    :: Digital Media

    [url]http://www.dorseygraphics.com[/url]

    --------------------
    spdorsey webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Launching external app in OSX

    you'll need to make another projector, but script can be the same. To open a
    pkg file try FileXtra4 or BuddyAPI, both have a "FileOpen" function that
    open files with the appropriate app'.
    for the separtor, you can use
    mySep = the last char in the moviePath

    and therefore build all paths with it :

    myInstaller = the moviePath & "install" & mySep
    if the platform starts "Windows" then
    myInstaller = myInstaller & "install_qt.exe"
    else
    myInstaller = myInstaller & "quickTime.pkg"
    end if

    open myInstaller
    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------
    "spdorsey" <webforumsuser@macromedia.com> a écrit dans le message de
    news:bqm4r2$r4j$1@forums.macromedia.com...
    | What about on a Mac?
    |
    | I guess I'm making a separate projector for Mac and Windows, so I'll
    need to adjust my Quicktime Installation script so that it works with my
    ..pkg file on the mac, and my .exe file in Win.
    |
    | "Open" command works great on the PC to launch .exe. On the Mac, it will
    not launch the .pkg file or mount a .dmg.
    |
    | Any ideas?
    |
    | Thanks,
    |
    | ------------------Steve
    |
    | --------------------
    |
    | Steve Dorsey
    | Dorsey Graphics
    |
    | :: 3D
    | :: Animation
    | :: Web Design
    | :: Digital Media
    |
    | [url]http://www.dorseygraphics.com[/url]
    |
    | --------------------


    Ned Guest

  6. #5

    Default Quicktime detection and installation - here's how I did it:

    Thanks to all who posted.

    Here's what I came up with - it involves separate scripts for the Mac projector and Windows projectors.


    MACINTOSH:

    On the Mac, I had to launch a file (not an application) to install Quicktime. It's called "QuickTime_OSX.pkg", and I got it by mounting the .img file which is downloaded when you get the standalone installer for Quicktime for OSX. I re-named it so that if people needed to navigate to in on the CD, they would recognize it by name.

    The "Open" command was not working on the document, so I downloaded BuddyAPI (free from [url]http://www.mods.com.au[/url]). This did the trick.

    I inserted the following script in the opening frame of the Director movie:

    ---------------------------------

    on enterFrame

    global qtversion
    put quicktimeversion() into qtversion
    if the quicktimePresent = 1 then
    if qtversion < 6 then
    beep
    go "QT_alert_start" -- starts Director shutting down and launching the QT installer
    else
    go "view_reel?" -- Enters the Director movie for viewing
    end if
    else
    go "QT_alert_start" -- starts Director shutting down and launching the QT installer
    end if

    end

    ---------------------------------


    Then, I placed a dialog box at the end of the Director movie (at the "QT_alert_start" marker) which verifies that they wish to install quicktime. If the user clicks "Yes", then the following script runs:


    ---------------------------------

    on mouseUp
    set OK = baOpenFile( the pathName & "QuickTime Installers:QuickTime_OSX.pkg" , "maximised" )
    quit
    end

    ---------------------------------


    The "baOpenFile" command is part of buddyAPI. It is important to see that the directory path to the installer is both local (from the location of the Director movie), and delimited with colons, not slashes. OSX delimits with slashes, but apparently BuddyAPI - since it was created back in the OS9 days, still uses colons to separate names in a directory path (that really confused me at first).

    At that point, I burned the Projector to a CDRW and it worked! Weeeeee!!!!



    WINDOWS:

    Windows did not require me to use BuddyAPI. The "Open" command in Windows applies to .exe files, and since the Quicktime standalone installer is an .exe file, everything worked out great.

    My opening script went like this:

    ---------------------------------

    on enterFrame

    global qtversion
    put quicktimeversion() into qtversion
    if the quicktimePresent = 1 then
    if qtversion < 6 then
    go "QT_alert_start" -- starts Director shutting down and launching the QT installer
    quit
    else
    go "view_reel?" -- Enters the Director movie for viewing
    end if
    else
    go "QT_alert_start" -- starts Director shutting down and launching the QT installer
    quit
    end if

    end

    ---------------------------------

    Then, I placed a dialog box at the end of the Director movie (at the "QT_alert_start" marker) which verifies that they wish to install quicktime. If the user clicks "Yes", then the following script runs:

    ---------------------------------

    on mouseUp
    open "QuickTime Installers\QuickTimeFullInstaller.exe"
    quit
    end

    ---------------------------------



    These scripts did the trick. I downloaded the standalone Quicktime installers (remember that you must be licensed to distribute them), and I placed them inside the "Quicktime Installers" directory which is on the root level of the CD ROM.





    I hope this helps someone!

    -----------------------Steve


    --------------------

    Steve Dorsey
    Dorsey Graphics

    :: 3D
    :: Animation
    :: Web Design
    :: Digital Media

    [url]http://www.dorseygraphics.com[/url]

    --------------------
    spdorsey webforumsuser@macromedia.com Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139