Results 1 to 6 of 6

Thread: check to see if the dependency files are present?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    check to see if the dependency files are present?

    I have a bunch of dlls and when I delete them and run my app I get some unexpected errors (duh )
    I'm wondering if there is a way to check to see if the dependencies and all the dlls are present. I know I could just use File.Exists to verify it manually, but I'm thinking maybe there is a better way to check this?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    If some sick user deletes the dlls that are needed to run your program then it is better that the program doesn't work. However I think you may be able to register your dlls in GAC so the sick user won't see them in your program folder.
    Last edited by Lunatic3; Feb 10th, 2004 at 02:47 AM.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Lunatic3
    If some sick user deletes the dlls that are needed to run your program then it is better that the program doesn't work. However I think you may lbe able to register your dlls in GAC so the sick user won't see them in your program folder.
    haha seems like you're tired of those dumb sick users

    thinking it over, I think it's a good idea. How about checking for dependencies, and if they are not found showing them a message like: "Abnormal program termination due to user stupidity"


    umm what's GAC btw
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Originally posted by MrPolite

    umm what's GAC btw
    Global Assembly Cache.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hmm never even heard of it... (I don't read books often ) how do you register them in GAC and why would someone really want to do it?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  6. #6
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    GAC is were your native assemblies of .NET come from. I think you can register your dll there and also set policies and securities for it. Gacutil is a tool and also some setup programs may be able to register the dlls there.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

Posting Permissions

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



Click Here to Expand Forum to Full Width