Doesn't apply if the main loading part of your app doesn't use .net 2. So in
that opening part i can do a check before .net 2 is required (where it will
throw a missing module exception). To be honest i have had untold problems
with .net 2, problems out of my control like it not installing properly on
clients, some clients running the app fine even tho it says they dont have
..net 2 and so on. All very strange
"roger_27" <(E-Mail Removed)> wrote in message
news:5FC5E231-056B-4C87-8793-(E-Mail Removed)...
> take a look here
> http://www.thescripts.com/forum/thread579470.html
>
> he made a good point:
> That's kind of a vicious circle! If the .Net Framework 2.0 is not
> installed, your program will not run anyway, so it cannot detect if the
> framework is there.
>
> "Daniel" wrote:
>
>> I use click once for deployment. And though you need .net 2 apparently to
>> download an app using click once i have found users able to use click
>> once
>> download even though they don't have .net 2.
>>
>> Also adding the pre-requisite of .net 2 doesn't seem to work through
>> click
>> once either.
>>
>> So i need another check made when my app runs for .net 2 and for directx
>> 9.
>> Any tips on how to programatically do the check yourself? c#.
>>
>>
>>
>>
>> "roger_27" <(E-Mail Removed)> wrote in message
>> news:9CE0617A-2571-4FB0-B3DF-(E-Mail Removed)...
>> > Add a new project, and make it a Setup Package project. when you do
>> > this,
>> > it
>> > will create an MSI installation, and it automatically checks for .net
>> > 2.0,
>> > and if you dont it will tell the user and direct them to the microsoft
>> > website to download it.
>> >
>> >>"Daniel" wrote:
>> >>
>> >> HI
>> >>
>> >> I have a requirement to check for .net 2 framework on ym app running
>> >> as
>> >> well
>> >> as checking if a particular directx version is intalled, can anyone
>> >> give
>> >> any
>> >> tips or pointers where i could find a code snippet in c# to do this?
>> >>
>> >> Thans in advance
>>
>>
>>