Zero Deployment in VB.NET??

A

al

Hi,

Can someone please tell me what is exactly zero deployment in VB.NET.
Is it that .NET doesn't need to deal with the registry? If that is
the case, then why MS introduced class registry?

MTIA,
Grawsha
 
R

Rob Teixeira [MVP]

There are new deployment options in .NET. "Zero deployment" is a bit
misleading since if the code where never deployed, nobody could run it
(except maybe the developer) :)

If you are using pure .NET managed code, the only prerequisite on the target
machine is the .NET framework. You can actually copy the files over and
things will run just fine. .NET components do not require registration, and
multiple versions of the same component can exist on the machine if
different applications require the different versions. The only exception to
this "no registration required" bit is when you want to create a shared
assembly instead of a local (private) assembly. Local library assemblies
(managed DLLs) exist in the same directory as the app that uses them by
default. Shared assemblies are installed into a special subdirectory of the
system called the GAC (global assembly cache).

The registry class is supplied because there is a lot of information in the
registry that you might want to read or write. If you are using older COM
components from .NET, then your code will also need access to the registry,
so in essence, it isn't like the registry is no longer needed at all.

There is also another thing called "No Touch Deployment", which allows you
to place your application and its various components up on a server, and
have clients load the executable from a URL to that server. The clients will
automatically download the latest application files and execute them without
requiring an install. There are some limitations, security precautions, and
caveats. Chris Sells wrote a few very good articles on this topic. Try doing
a search for this on MSDN or Google.

In addition, the next version of .NET and Windows will have a few more
deployment options that further ease the pain of application deployment.
Among them are the self-updating options of "click once" deployment, and
rich client applications written in XML.

-Rob Teixeira [MVP]
 
R

Rob R. Ainscough

Rob covered it well.

But basically if .NET Framework is installed and that is all you used in
developing the app, then you can just copy (as in file copy, no reg or DLL
installs) your application dir to any place you like so long as it has the
..NET framework installed at that client. SysAdmins will love that.

Everyday I'm finding it hard and hard to go back and maintain my VB6 code.

Rob (other one)
 
A

al

Rob Teixeira said:
There are new deployment options in .NET. "Zero deployment" is a bit
misleading since if the code where never deployed, nobody could run it
(except maybe the developer) :)

If you are using pure .NET managed code, the only prerequisite on the target
machine is the .NET framework. You can actually copy the files over and
things will run just fine. .NET components do not require registration, and
multiple versions of the same component can exist on the machine if
different applications require the different versions. The only exception to
this "no registration required" bit is when you want to create a shared
assembly instead of a local (private) assembly. Local library assemblies
(managed DLLs) exist in the same directory as the app that uses them by
default. Shared assemblies are installed into a special subdirectory of the
system called the GAC (global assembly cache).

The registry class is supplied because there is a lot of information in the
registry that you might want to read or write. If you are using older COM
components from .NET, then your code will also need access to the registry,
so in essence, it isn't like the registry is no longer needed at all.

There is also another thing called "No Touch Deployment", which allows you
to place your application and its various components up on a server, and
have clients load the executable from a URL to that server. The clients will
automatically download the latest application files and execute them without
requiring an install. There are some limitations, security precautions, and
caveats. Chris Sells wrote a few very good articles on this topic. Try doing
a search for this on MSDN or Google.

In addition, the next version of .NET and Windows will have a few more
deployment options that further ease the pain of application deployment.
Among them are the self-updating options of "click once" deployment, and
rich client applications written in XML.

-Rob Teixeira [MVP]

Rob T.

Forgive my stupidity, but do you mean as long the client runs .net
framework I don't need to do packging and deployment OR as long there
is .config file??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top