Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2004
    Posts
    67

    Dependencies: Doing it wrong but where?

    Ok I give, I have read every link on dependencies and copy and pasted and twisted and turned but it keeps coming back and telling me it is installed when it is not

    result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\\btdownloadgui.exe");
    if result== 0 then
    Dialog.Message("Information", "Install BitTorrent", MB_OKCANCEL, MB_ICONEXCLAMATION)
    File.Run("AutoPlay\\Docs\\BitTornado-0.2.0-w32install.exe", "", "", SW_SHOWNORMAL, true);
    else
    Dialog.Message("Information", "BitTorrent client is currently installed", MB_OKCANCEL, MB_ICONEXCLAMATION)
    end

    after trying to embed I moved to bundle in and now looking to double check for the install.

    So what have I done wrong?

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    I noticed this entry in this machine's registry upon installation of Bittorrent:

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\b tdownloadgui.exe

    this was still in the registry AFTER I uninstalled Bittorrent by the way.

    This is another location (obviously) further down in the path. I am wondering though if the Registry.DoesExist action checks down through the entire Main and sub keys of (for instance) the Main and Sub keys you have posted.
    Intrigued

  3. #3
    Join Date
    Feb 2004
    Posts
    67
    I ran a reg check and it came back with no finds on Bit Torrent, BitTorrent or even Torrent and that is what is getting me.

    I have it loaded on two machines here so I am turning to one of my others to test run.

    Pain in the ......youch! and I have re-written this at least 20 times now

  4. #4
    SUF6NEWBIE Guest
    Suggestion:
    for a definite installed BitTorrent App

    manually look for the Bit torrent .exe in here:

    HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths

    if there is a reliable key present, return the 'Path' value and
    then do a file.find for the .exe in the returned path.

    if Not found...in theory BitTorrent is not fully installed ?
    (regardless of any other registry 'leftovers' that may be present )

    BTW

    If you Do find a reliable key in App Paths.. then if this key Does Not
    exist..on target system..theory..BitTorrent is Not installed..

    You could also have a look in here:

    HKLM\Software\Microsoft\Windows\CurrentVersion\Uni nstall\
    "Uninstall"
    hope helps...

    BTW BRETTS "Add\Remove Programs" Script Example may also
    shed some light..
    Last edited by SUF6NEWBIE; 06-02-2004 at 11:54 PM.

  5. #5
    Join Date
    Feb 2004
    Posts
    67
    What I ended up doing was work around, look in the program file directory and pray that most people leave the default install as it. If it is not in the directory structure (the exe) then it installs, running in the background it runs silent so if it is installed, the user does not see any great time lag. I still want to get it to run of the key, get's around the issue of people putting it in other directories.

    torrent_path = Shell.GetFolder(SHF_PROGRAMFILES);
    search_results = File.Find(torrent_path, "btdownloadgui.exe", true, false, nil);
    if (search_results == nil) then
    File.OpenURL("http://www.ishop-global.com/BitTornado-0.2.0-w32install.exe", SW_SHOWNORMAL);
    end

  6. #6
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    I see. Maybe a Dialog.Message to alert them to the fact that the Bittorrent client (for your program) needs to be installed in the default install directory. Just a suggestion of course.
    Intrigued

  7. #7
    Join Date
    Feb 2004
    Posts
    67
    well the first issue is checking to see if it is there. I found crawling through the entire drive was too time consuming. So I focused down to the Program File folder.

    If it was not found a Dialogue came up to install from the exe, but I decided to take it out of the app and put it to the web so I can keep it up dated.
    Coming off the web, it pops up a d/l warning so I just went with that.

    I turned the found message off because I have this run on the pre-load on the page and after it is installed I do not want the end using being hit with it is in the blah blah directory. I was treating like a run once, but I really do want to verify everytime the user goes to that function.

    This is the whole thing, borrowed heavily from a help example

    -- Gets the path to the user's My Documents folder.
    torrent_path = Shell.GetFolder(SHF_PROGRAMFILES);
    -- Check to see if the My Documents folder detection was successful.
    if (Application.GetLastError() == 0)then

    -- Search the user's My Documents folder for the file "Data.ini".
    search_results = File.Find(torrent_path, "btdownloadgui.exe", true, false, nil);

    --Check to see if an error occurred during the search. If it did, display the error message.
    error = Application.GetLastError();
    if error ~= 0 then
    Dialog.Message("Error",_tblErrorMessages[error]);
    else

    -- If no files were found, notify the user.
    if (search_results == nil) then
    File.OpenURL("http://www.ishop-global.com/BitTornado-0.2.0-w32install.exe", SW_SHOWNORMAL);
    --Dialog.Message("Information", "BitTorrent was not found. Install BitTorrent", MB_OKCANCEL, MB_ICONEXCLAMATION)
    --message = "BitTorrent was not found."
    --install= Dialog.Message("Notice",installmessage, MB_OKCANCEL, MB_DEFBUTTON1);
    --If the user clicked OK, install the files.
    -- if install == IDOK then
    -- File.Run("AutoPlay\\Docs\\BitToranado-0.2.0-w32install.exe", "", "", SW_SHOWNORMAL, false);
    -- If files were found, display a dialog containing a list of their locations.
    -- else
    -- message = "BitTorrent was found in the following location(s):\r\n\r\n";
    -- for index, path in search_results do
    -- message = String.Concat(message, path.."\r\n");
    -- Dialog.Message("File Search Results", message, MB_OKCANCEL, MB_DEFBUTTON1);

    --end
    end
    end
    end

  8. #8
    SUF6NEWBIE Guest
    Good on you for sticking it out...

    if ya have'nt got to it yet, maybe have your code sitting
    in a Global function and then call it locally..

    and only if you have the time... curious - did you have any joy
    with the APP PATH registry key thingy... I'm not a Bittorrent user,
    and my test machine needs to be 'clean' at the present time for
    other purposes..otherwise I would see if the 'run off the Key'
    could happen for you...

    anyway, glad to see you got most of what you wanted..

    BTW is the "Data.ini" file in Mydocs one of yours or BitTorrents,
    if its bitTorrents..does it have a path to the exe..if so
    then maybe your file.find could be fine tuned to that path.
    Last edited by SUF6NEWBIE; 06-03-2004 at 07:41 PM.

  9. #9
    Join Date
    Feb 2004
    Posts
    67
    I had it in global but moved it out for the mock up onto preload for the page. It only has to run on that one page.

    I have not gone back at the reg key yet, now I am looking for a way to fingerprint the files using this interface and apassing the information up to a server who can added it to the file.

    In the deep end, funny part is it keeps getting deeper!

    Thanks for the help, next problem I will be back, but when it is done it will be a functional piece of work.

  10. #10
    SUF6NEWBIE Guest
    excellente...could be a few users would be interested in
    how you got it all to happen for BitTorrent.

  11. #11
    Join Date
    Feb 2004
    Posts
    67
    When I am done I will share, for sure

Similar Threads

  1. Use of variable in Dependencies dialog
    By hermie in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 02-25-2004, 03:38 AM
  2. Dependencies - hide File link or add new
    By kpsmith in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 12-04-2003, 02:17 PM
  3. NEED HELP ON A MESSAGE AFTER A WRONG PASSWORD
    By dragon in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 02-21-2002, 11:11 PM
  4. Something wrong with install images.!!!
    By vesta in forum Setup Factory 6.0
    Replies: 5
    Last Post: 02-03-2002, 02:49 PM
  5. Missing dependencies
    By Postie in forum Setup Factory 5.0
    Replies: 1
    Last Post: 05-14-2001, 02:18 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