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! 11 1444
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*******@devd ex.com> wrote in message
news:uJ******** ********@TK2MSF TNGP12.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!
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*******@devd ex.com> wrote in message
news:uJ******** ********@TK2MSF TNGP12.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!
>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)i nova.ch
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!
"Beeeeeeeeeeeev es" <Be************ **@discussions. microsoft.com> wrote in message
news:48******** *************** ***********@mic rosoft.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.ed u
"Marc Scheuner [MVP ADSI]" <m.********@ino va.SPAMBEGONE.c h> wrote in message news:mv******** *************** *********@4ax.c om... 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.ed u
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: "Beeeeeeeeeeeev es" <Be************ **@discussions. microsoft.com> wrote in message news:48******** *************** ***********@mic rosoft.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.ed u
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
"Beeeeeeeeeeeev es" <Be************ **@discussions. microsoft.com> wrote in
message news:87******** *************** ***********@mic rosoft.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:
"Beeeeeeeeeeeev es" <Be************ **@discussions. microsoft.com> wrote in
message news:48******** *************** ***********@mic rosoft.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.ed u
"Beeeeeeeeeeeev es" <Be************ **@discussions. microsoft.com> wrote in message
news:87******** *************** ***********@mic rosoft.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.ed u This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 error:
Unhandled Exception: System.ArgumentException: Invalid directory on URL. at
System.Security.CodeAccessSecurityEngine.GetZoneAndOriginInternal(ArrayList
zoneList, ArrayList originList, StackCrawlMark& stackMark, Int32 checkFrames)
at...
|
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 installs 20 or so merge modules. It does nothing else. We then have
our own custom, C# Windows Form application that installs our software
applications. It does this by copying files, creating registry keys, etc.
|
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 deployment project (myproj installer)
I added my windows app to the installer
under myproj installer properties, I set bootstrapper
|
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 objective
in utilizing this new deployment method is to reduce the maintenance
overhead as well as making it easier for my users to setup and run the
application initially. I have VS 2002, Windows XP, Access XP(2000
format).
He is my problem....
|
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 objective
in utilizing this new deployment method is to reduce the maintenance
overhead as well as making it easier for my users to setup and run the
application initially. I have VS 2002, Windows XP, Access XP(2000
format).
He is my problem....
| |
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 application
versus a Windows Application. I know all the standard reasons,
Availability, Easier Deployment (although that is really not an issue
any more with Windows Apps in .NET), etc, I'm looking for more better
reasons why we should develop...
|
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 client (MS Access vs
..NET Windows Forms) would be preferred over the other. While I have some
good arguments on both sides, I would appreciate your points of view on the
topic.
|
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 and a desktop
shortcut to the exe out on the network)... but is it really a good idea?
What are some arguments for and against running a .NET Windows Forms client
from a network share? Here is my initial list... I'd appreciate any
additions,...
|
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 'Application cannot be
started. Contact the application vendor'. So I have tried to uninstall
and re-install the app, but when I try to uninstall the app nothing
happens.
Can anybody help with this?
|
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 application. Its based on java swing. My application gonna serve on windows and linux systems. Now i want to deploy my application along with all libraries etc.
Simply i dont know how to do that. I googled for such a thing but no success. Can i pack my...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |