Testing for 2.0

  • Thread starter Thread starter stuart
  • Start date Start date
S

stuart

I have a C# app deployed at a number of sites, that automatically
downloads updates from a web server overnight, and restarts itself.
It's written for .Net 1.1, but I want to switch over to 2.0. As some of
the users may not have the 2.0 framework installed, I can't deploy the
next version automatically. Is there a way I can test for 2.0 from my
1.1 app to see if the new version can be installed without user
intervention?

Stuart.
 
clintonG said:
This article [1] discusses the System.Environment class and several other
contextual methods.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.codeguru.com/Csharp/.NET/net_asp/miscellaneous/article.php/c10879/

If you develop using 1.1 and the computer has both 1.1 and 2.0 are you
saying that System.Environment will be able to tell you that 2.0 is
installed. It was my understanding that a 1.1 program will run under 1.1 if
it is installed.

SP
 
I'm saying I used google to find what appears to be a solution and others
should be able to do the same although there doesn't seem to be a lot of
information that is making itself easy to locate. Did you download the
sample file and run it?


<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


SP said:
clintonG said:
This article [1] discusses the System.Environment class and several other
contextual methods.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.codeguru.com/Csharp/.NET/net_asp/miscellaneous/article.php/c10879/

If you develop using 1.1 and the computer has both 1.1 and 2.0 are you
saying that System.Environment will be able to tell you that 2.0 is
installed. It was my understanding that a 1.1 program will run under 1.1
if it is installed.

SP
 
clintonG said:
I'm saying I used google to find what appears to be a solution and others
should be able to do the same although there doesn't seem to be a lot of
information that is making itself easy to locate. Did you download the
sample file and run it?

I was looking for something similar for WinForms. Not sure what the OP was
looking for. No disrespect intended, I appreciate your numerous posts in
this NG. Do you know if it is possible to make a WinForm 1.1 app run under
2.0 if 1.1 is installed? I have found that 1.1 is used unless it is removed
but it would be nice to make it run under 2.0 without having to do this.

Regards,

SP
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


SP said:
clintonG said:
This article [1] discusses the System.Environment class and several
other contextual methods.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.codeguru.com/Csharp/.NET/net_asp/miscellaneous/article.php/c10879/

If you develop using 1.1 and the computer has both 1.1 and 2.0 are you
saying that System.Environment will be able to tell you that 2.0 is
installed. It was my understanding that a 1.1 program will run under 1.1
if it is installed.

SP
 
Nope. I am clueless and depend on web search for most of what I learn. The
newsgroups come second for me. Sorry I couldn't be more specific.

<%= Clinton Gallagher

SP said:
clintonG said:
I'm saying I used google to find what appears to be a solution and others
should be able to do the same although there doesn't seem to be a lot of
information that is making itself easy to locate. Did you download the
sample file and run it?

I was looking for something similar for WinForms. Not sure what the OP was
looking for. No disrespect intended, I appreciate your numerous posts in
this NG. Do you know if it is possible to make a WinForm 1.1 app run under
2.0 if 1.1 is installed? I have found that 1.1 is used unless it is
removed but it would be nice to make it run under 2.0 without having to do
this.

Regards,

SP
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


SP said:
message This article [1] discusses the System.Environment class and several
other contextual methods.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.codeguru.com/Csharp/.NET/net_asp/miscellaneous/article.php/c10879/


If you develop using 1.1 and the computer has both 1.1 and 2.0 are you
saying that System.Environment will be able to tell you that 2.0 is
installed. It was my understanding that a 1.1 program will run under 1.1
if it is installed.

SP
 
Back
Top