473,321 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Windows application deployment

Hello Experts,

I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
11 1416
Hi Benny,

Add a new Setup project to your solution. Right-click on the setup project
in the Solution Explorer, select View, Registry from the context menu, and
add they key you want. The *.msi file produced by the setup project will
take care of installation/uninstallation of the new registry keys.

Joe
--
Joe Mayo, Author/Instructor
Need C#/.NET training?
visit www.mayosoftware.com
C# Tutorial - www.csharp-station.com

"Benny" <an*******@devdex.com> wrote in message
news:uJ****************@TK2MSFTNGP12.phx.gbl...
Hello Experts,

I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2
Hi there,

you can use Windows Installer 2.0, which comes with VS.NET.
With WI, you can create a deployment package (msi), which will add the
values in the registry and upon uninstall will delete them.
About the text file, I'm not sure (for automatic deletion), but you can
always define a custom step in the installer package, in which you can do
whatever you want.

Good luck,
Branimir

--
Branimir Giurov
MCSD.NET, MCDBA
"Benny" <an*******@devdex.com> wrote in message
news:uJ****************@TK2MSFTNGP12.phx.gbl...
Hello Experts,

I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #3
>I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?


Use a good installer package that will do this for you. VS.NET 2002
includes support to create Installation projects, which will use the
MS Windows Installer technology and create .MSI installation packages.

If you're looking for something more light-weight, and easier to
understand, I'd strongly recommend the free InnoSetup package (in
conjunction with the ISTool GUI frontend) - it creates stand-alone EXE
installers, which are very easy to send out, and it includes uninstall
suppport.

InnoSetup - free Installer
http://www.jrsoftware.org/isinfo.php

ISTool - free GUI front-end for InnoSetup
http://www.istool.org/

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 16 '05 #4
It's a bad application that RELIES on text files being there in order to operate. Rewrite it and compile the data into the program, this stops it being altered by meddling users.

"Benny" wrote:
Hello Experts,

I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #5
"Beeeeeeeeeeeeves" <Be**************@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
It's a bad application that RELIES on text files being there in order to operate. Rewrite it and compile the data into the

program, this stops it being altered by meddling users.

How do you figure?

A "bad program" would be one that you describe with everything hardcoded into the program. In general, the more stuff hardcoded in,
the less useful the program becomes since it is less flexible.
As far as the meddling users... if the user screws with something and breaks it, then they will learn not to screw with it.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #6
"Marc Scheuner [MVP ADSI]" <m.********@inova.SPAMBEGONE.ch> wrote in message news:mv********************************@4ax.com...
If you're looking for something more light-weight, and easier to
understand, I'd strongly recommend the free InnoSetup package (in
conjunction with the ISTool GUI frontend) - it creates stand-alone EXE
installers, which are very easy to send out, and it includes uninstall
suppport.


I'll second this opinion. I've used InnoSetup in the past and it is a great installer, very flexible. Covers just about every
feature you need too.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #7
Nah. Better for it to be one single exe. Registry if you really MUST, but definitely not a text file. It's ok as long as the application can function and tell the user what's up if the text file isn't there, but needing it to operate, well that's bad.

"Adam Clauss" wrote:
"Beeeeeeeeeeeeves" <Be**************@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
It's a bad application that RELIES on text files being there in order to operate. Rewrite it and compile the data into the

program, this stops it being altered by meddling users.

How do you figure?

A "bad program" would be one that you describe with everything hardcoded into the program. In general, the more stuff hardcoded in,
the less useful the program becomes since it is less flexible.
As far as the meddling users... if the user screws with something and breaks it, then they will learn not to screw with it.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #8
Your advice runs contrary to the .NET framework's use of Config files.

Config files are text files, encoded in XML, used to store common
settings... just what you are suggesting is "bad."

I would disagree with your statement that this is not a good way to design.
It is OK to design the system so that it has reasonable default values in
case it cannot find it's config file. It is equally OK to design the system
to rely upon the config file to provide extensive configuration data.

An EXE uses a DLL, and therefore is not completely self contained. If a
user deletes the DLL, the EXE fails. This is no different than your
objection, yet I don't believe you've expressed any opposition to the idea
of using references, or multiple assemblies. Or is that objection just
waiting to emerge?

If you are using an installer, all of your files, from EXE to DLL to Config,
can be installed and controlled. No reason not to put as many files in the
installation folder as you want and need.

--- Nick

"Beeeeeeeeeeeeves" <Be**************@discussions.microsoft.com> wrote in
message news:87**********************************@microsof t.com...
Nah. Better for it to be one single exe. Registry if you really MUST, but definitely not a text file. It's ok as long as the application can function
and tell the user what's up if the text file isn't there, but needing it to
operate, well that's bad.
"Adam Clauss" wrote:
"Beeeeeeeeeeeeves" <Be**************@discussions.microsoft.com> wrote in message news:48**********************************@microsof t.com...
It's a bad application that RELIES on text files being there in order
to operate. Rewrite it and compile the data into the program, this stops it being altered by meddling users.

How do you figure?

A "bad program" would be one that you describe with everything hardcoded into the program. In general, the more stuff hardcoded in, the less useful the program becomes since it is less flexible.
As far as the meddling users... if the user screws with something and breaks it, then they will learn not to screw with it.
--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #9


"Beeeeeeeeeeeeves" <Be**************@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
Nah. Better for it to be one single exe. Registry if you really MUST, but definitely not a text file. It's ok as long as the

application can function and tell the user what's up if the text file isn't there, but needing it to operate, well that's bad.

Again, why is it bad? You have given other options, but nothing about why it is bad. Personally, I despise the registry and would
rather go with an .ini file or some other configuration file any day.

Of course, we don't actually know what these text files are for, so we can only go so far down that road :)

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #10
Thank-you all experts for your advices.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #11
Thank-you all experts for your advices.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JP Burford | last post by:
I am working on testing zero deployment on Windows 2003 server. The application I am testing is a simple Managed application written in C#. When I access the application I receive the following...
0
by: forge | last post by:
Installing Merge Modules from C# Windows Form Application (not using a setup and deployment project) Hi, Currently, we have an InstallShield project that creates a setup.exe that only...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: dcbud | last post by:
I'm hoping to get a response from developers with experience in both developing applications for Windows and the Web using VS.NET2005. I'm looking for input as to why we would want to develop a web...
22
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
3
by: Mike P | last post by:
Last week I wrote a windows app, published it and then installed it on my local machine. It all worked perfectly. Now today when I try to run the app from my Start menu I get the error...
2
by: sezanawa | last post by:
Hi Guys, I am new to java deployment things. Specially for desktop applications. I used to work with J2EE and i did deployment only for web projects. Now i have developed a small desktop...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.