Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > .NET Framework

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-10-2008, 10:36 AM
=?Utf-8?B?VG9tYSBDYXRhbGlu?=
 
Posts: n/a
Deployment of NET 2.0 application - installing silently

Hello. I need to deploy an application written in NET 2.0. My first problem
is that I need to install the framework silentlly. I already found how to do
this, but I still have some questions:

1. How to I know for sure if the client has or not the framework.
2. If the client has a higher version, do I need to install 2.0(does the app
work better on the version it was built with?).
3. Do if have to write in the app config file that it should use a higher
version if it doesn't have 2.0? Or it does this automaticaly

I written 2 tests for the first question. The first one checks the registry
for a key Software\\Microsoft\\NET Framework Setup\\NDP\\v2.0.50727 and the
second test is running an console application written in .NET that returns a
number.What if the client has version 1.1...do I need to write an .NET app
that uses something specific to 2.0?

If someone can help me...thanks, I don't know much about deploying
applications.

--
Toma Catalin, Microsoft Student Partner
Reply With Quote
  #2 (permalink)  
Old 07-10-2008, 05:03 PM
Phil Wilson
 
Posts: n/a
Re: Deployment of NET 2.0 application - installing silently

Since you didn't say what silent method you found, it's not clear whether
you need to do any of the things you mention, but:

1) Don't bother. Just run dotnetfx /q and if it's already installed it will
just exit.
http://msdn.microsoft.com/en-us/library/ms994349.aspx

2) Frameworks are side by side - they can all be on the system at the same
time, so if you developed with VS 2005 then ship the 2.0 FW resist.

3) No, not if you do 2.

--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"Toma Catalin" <TomaCatalin@discussions.microsoft.com> wrote in message
news:3C277BBD-1C44-4E5D-93C6-6FD07BEE2874@microsoft.com...
> Hello. I need to deploy an application written in NET 2.0. My first
> problem
> is that I need to install the framework silentlly. I already found how to
> do
> this, but I still have some questions:
>
> 1. How to I know for sure if the client has or not the framework.
> 2. If the client has a higher version, do I need to install 2.0(does the
> app
> work better on the version it was built with?).
> 3. Do if have to write in the app config file that it should use a higher
> version if it doesn't have 2.0? Or it does this automaticaly
>
> I written 2 tests for the first question. The first one checks the
> registry
> for a key Software\\Microsoft\\NET Framework Setup\\NDP\\v2.0.50727 and
> the
> second test is running an console application written in .NET that returns
> a
> number.What if the client has version 1.1...do I need to write an .NET app
> that uses something specific to 2.0?
>
> If someone can help me...thanks, I don't know much about deploying
> applications.
>
> --
> Toma Catalin, Microsoft Student Partner



Reply With Quote
  #3 (permalink)  
Old 07-11-2008, 11:44 AM
=?Utf-8?B?VG9tYSBDYXRhbGlu?=
 
Posts: n/a
Re: Deployment of NET 2.0 application - installing silently

Thanks for your answers, but I still have on more question. As I understand,
if the client has, for example only .NET 3.0 installed, my application will
work. But dotnetfx will run,because it does not have 2.0 ? I would like to
avoid this, as the deployment should not take very long to download and
install. Is their any way to find out, before I download dotnefx, if it has a
version equal or higher than 2.0 ?
Reply With Quote
  #4 (permalink)  
Old 07-11-2008, 11:55 AM
Marc Gravell
 
Posts: n/a
Re: Deployment of NET 2.0 application - installing silently

..NET 3.0 is an extension to 2.0; if they have 3.0 they have 2.0;
likewise if they have 3.5 they have 3.0

However, this is not true of 1.1 ;-p

Marc
Reply With Quote
  #5 (permalink)  
Old 07-11-2008, 12:39 PM
=?Utf-8?B?VG9tYSBDYXRhbGlu?=
 
Posts: n/a
Re: Deployment of NET 2.0 application - installing silently

Hey,thanks, I didn't know it was an extension. I think the easiest way is
making a setup project and add .net to the dependecies. Thanks for your
answers.
--
Toma Catalin, Microsoft Student Partner


"Marc Gravell" wrote:

> ..NET 3.0 is an extension to 2.0; if they have 3.0 they have 2.0;
> likewise if they have 3.5 they have 3.0
>
> However, this is not true of 1.1 ;-p
>
> Marc
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > .NET Framework


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:53 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109