Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2003
    Posts
    23

    Dependencies (Divx)

    I want to put my project to detect if version 5.1.1 of the divx codec is instaled and to install it when does not detect nothing.
    Is this possible ???

    Another question, i read in the faq of am5 who to open a pdf from the acrobat file inside the cd, but if i use a webobject who can i do this. Open the acrobar reader inside the cd but using webobject´s.

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. Yes you can do that, you'll just have to figure out which registry key corresponds to DIVx 5.1.1 and check that key. So a search here in the forums for more on how to do that, and also on the pdf thing, there's lots aorund here on that...

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Apr 2003
    Posts
    23

    Huh?

    on preload ( of the first page)


    result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\Microsoft\ActiveMovie\devenum\{33D9A 760-90C8-11D0-BD43-00A0C911CE86}\divx");
    if result == 0 then
    File.Run("AutoPlay\\Docs\\Divx 5.1.1\\DivXPro511Adware.exe", "", "", SW_SHOWNORMAL, false);
    end

    What´s wrong on this picture, why does not work ??

    I want to detect if version 5.1.1 of the divx codec is installed, and already tried it on a machine without divx and nothing. what´s missing me

  4. #4
    Join Date
    Feb 2004
    Location
    Washington DC Area
    Posts
    73
    I don't have AMS on this PC to check it but as I recall your Registry.DoesKeyExist call results in a true or false response.

    So I think it would be more like
    Code:
    result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\Microsoft\ActiveMovie\devenum\{33D9A760-90C8-11D0-BD43-00A0C911CE86}\divx");
    if result then
            -- Play movie
    else
            -- Run Divx installer
    end
    Then again I could have it all wrong


    Quote Originally Posted by mitologys
    result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\Microsoft\ActiveMovie\devenum\{33D9A 760-90C8-11D0-BD43-00A0C911CE86}\divx");
    if result == 0 then
    File.Run("AutoPlay\\Docs\\Divx 5.1.1\\DivXPro511Adware.exe", "", "", SW_SHOWNORMAL, false);
    end

  5. #5
    Join Date
    Apr 2003
    Posts
    23
    HKEY_LOCAL_MACHINE, "Software\Microsoft\ActiveMovie\devenum{33D9A7 60-90C8-11D0-BD43-00A0C911CE86}\divx");


    this isn´t the reg for detecting divx, does anyone know´s who to detect divx ???

    Please say something??

  6. #6
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    when I was working on a script to detect divx I looked in this key

    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Me diaResources\icm\vidc.DIVX

    I was also under the impression that you could look in _SystemFolder for the divx.dll and get the version number from that.

    Code:
    if (File.DoesExist(_SystemFolder.."\\divx.dll")) then
    	divxVersion = File.GetVersionInfo(_SystemFolder.."\\divx.dll")
    	Dialog.Message("Divx Version", divxVersion.FileVersion)
    else
    	Dialog.Message("Notice", "File does not exist")
    end
    Quote Originally Posted by mitologys
    HKEY_LOCAL_MACHINE, "Software\Microsoft\ActiveMovie\devenum{33D9A7 60-90C8-11D0-BD43-00A0C911CE86}\divx");


    this isn´t the reg for detecting divx, does anyone know´s who to detect divx ???

    Please say something??
    Last edited by TJ_Tigger; 04-27-2004 at 01:16 PM.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  7. #7
    Join Date
    Apr 2003
    Posts
    23
    it´s very good and works but i need another thing to compare version´s.
    This cd need´s to know what is the version and compare it.

    What i want to do is the same as the dependencies (Ex. Acrobat detect´s version 4 or above, if it has version 3 the file is installed)
    How can i make this to funtion with divx??
    how to make something close

  8. #8
    Join Date
    Jan 2000
    Posts
    2,002
    Check out the action String.CompareFileVersions - I think it will do what you want.

  9. #9
    Join Date
    Apr 2003
    Posts
    23
    if (File.DoesExist(_SystemFolder.."\\divx.dll")) then
    divxVersion = File.GetVersionInfo(_SystemFolder.."\\divx.dll")
    divxVersion2 = File.GetVersionInfo("AutoPlay\\divx.dll")
    divxVersion3 = String.CompareFileVersions("divxVersion", "divxVersion2");

    if divxVersion3 == 0 or divxVersion3 == 1 then

    else
    Dialog.Message("Information", "Version 5.1.1 must be installed", MB_YESNO, MB_ICONEXCLAMATION)
    File.Run("AutoPlay\\Docs\\Divx 5.1.1\\DivXPro511Adware.exe", "", "", SW_SHOWNORMAL, true);
    end


    else
    Dialog.Message("Information", "Install Divx", MB_OKCANCEL, MB_ICONEXCLAMATION)
    File.Run("AutoPlay\\Docs\\Divx 5.1.1\\DivXPro511Adware.exe", "", "", SW_SHOWNORMAL, true);
    end




    I worte this and works (part of it) the midle code does not work (Blue), having divx 4 installed on a machine my detection doe not work, insteed
    show´s my information "Dialog.Message("Information", "Install Divx", MB_OKCANCEL, MB_ICONEXCLAMATION)"

    Does any one have any ideas ???

  10. #10
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    There are a couple of quick things. The File.GetVersionInfo returns a table so you need to specify the field of the table you want to use as the comparison. When you use the String.CompareVersion you will want to loose the quotes as you are trying to compare the variable and not actual strings.

    Try something like this
    Code:
    if (File.DoesExist(_SystemFolder.."\\divx.dll")) then 
    	strdivxVersion = File.GetVersionInfo(_SystemFolder.."\\divx.dll").FileVersion; 
    	install = String.CompareFileVersions(strdivxVersion, "5.1.1"); 
    
    	if install == -1 then 
    		counter = 0;
    		while counter < 3 do
    			result = Dialog.Message("Information", "A newer version of DivX must be installed in order to view these files.\r\nWould you like to install now?", MB_YESNO, MB_ICONEXCLAMATION);
    			if result == IDYES then
    				File.Run("AutoPlay\\Docs\\Divx 5.1.1\\DivXPro511Adware.exe", "", "", SW_SHOWNORMAL, true);
    			end
    			counter = counter +1;	
    		end
    	end 
    
    else 
    	counter = 0;
    	while counter < 3 do
    		result = Dialog.Message("Information", "Install Divx", MB_OKCANCEL, MB_ICONEXCLAMATION);
    		if result == IDOK then
    			File.Run("AutoPlay\\Docs\\Divx 5.1.1\\DivXPro511Adware.exe", "", "", SW_SHOWNORMAL, true); 
    		end
    		counter = counter +1;
    	end
    end
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. Divx Codec Check ?
    By octane6228 in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 06-07-2004, 10:50 AM
  2. 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
  3. 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
  4. DIVX
    By Loulou_france in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 11-20-2002, 06:31 AM
  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