C
Chris
Hi,
I have a managed C++ program that needs to check if the .NET framework v1.1
exists each time it runs. I wish I only had to do this at installation time
but users have removed the framework and encountered a crash and entered
complaints so I have to add the check.
I know how to do this as a seperate utility app that would then launch my
executable but I would like to avoid any additional utility apps or
assemblies. Is there any way to check this from a managed assembly without it
crashing when the .net framework does not exist?
I believe the crash will occur as soon as the managed code is loaded, is
this right? I don't know when this happens though. I tried to add some
unmanaged code before any managed code is called but it still crashes first.
Any help would be greatly appreciated.
Thanks,
Chris
I have a managed C++ program that needs to check if the .NET framework v1.1
exists each time it runs. I wish I only had to do this at installation time
but users have removed the framework and encountered a crash and entered
complaints so I have to add the check.
I know how to do this as a seperate utility app that would then launch my
executable but I would like to avoid any additional utility apps or
assemblies. Is there any way to check this from a managed assembly without it
crashing when the .net framework does not exist?
I believe the crash will occur as soon as the managed code is loaded, is
this right? I don't know when this happens though. I tried to add some
unmanaged code before any managed code is called but it still crashes first.
Any help would be greatly appreciated.
Thanks,
Chris