473,699 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom uninstall process

Hi,

I have develop an application in C#.
I create a deployment projet to install and uninstall the application.

My problem is:
The application create different files who contain user's preferences.
I want that the uninstall program ask to the user if he want delete or no
this files.

How can I do this?

Thank you in advance.

Stéphane
Jan 10 '07 #1
1 2195
Stéphane,

The installation doesnt know about files created during execution of
your application, therefore when you uninstall it doesnt know to remove
those files unless you explicitly make it do so.

As the previous post suggests you can make a custom action which will
remove the file. I havent utilized the installer project within visual
studio much, but I have used Wise for Windows Installer which builds on
the basic installer.

I would suggest having a custom action using visual basic script which
removes the file(s) conditionally if they exist.

Jan 10 '07 #2

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

Similar topics

5
3906
by: NormD | last post by:
Is it possible to rollback an uninstallation from uninstall custom action based on some user input. or any suggestions on how to do this. If the user has an earlier version of the product and they are installing a new version, ask them if they want to keep the earlier version or not. If they want to remove the earlier version remove it and install the new version and if they dont want to remove it simply install the new version. I am...
1
2243
by: Petrucci2000 | last post by:
Hi All, I am looking to create an installation package (MSI ) which will fire off few of my custom .vbs during the install process. How to accomplish this task? TIA PS: I tried to include an installer class to my setup project and overrided the install and uninstall methods but when I run the setup.msi I never see those being fired!!
4
1775
by: Uppi | last post by:
I have a setup Project which consists of 7 services. I have created it using Setup and Deployment Project. I have not used installer class. The Problem is that when I select service for custom installation service gets installed depending on the selection of user using checkbox. But when I uninstall the setup using add remove programs It is unable to uninstall the service It gives ERROR "an exception occured during uninstallation the...
2
1583
by: John Keers | last post by:
Hi Can anyone tell me how you run multiple msi's or install programs from a single msi. I'm using VS2005? Thanks
1
1620
by: Steve Long | last post by:
Hello all, is there a way to programatically uninstall a program via one of the Windows Management classes or one of the Win32 classes? I'm looking for a way to invoke the process that occurs when you click Add or Remove Programs in the control panel. I have some applications in an install base that I not longer have the setup.exe file (Installshield express) for. If I had that, I could just use the command line switches to do it but alas,...
0
1497
by: Gabriel Lozano-Morán | last post by:
We have developed an application that will replace the older version. The older versions comes in two flavors, a Lite and a Pro version. I can successfully remove the previous version of either the Lite or the Pro version by sync'ing the "Product Code" and increasing the version number of the new setup, but I really need to remove both versions upon a successful installation. So I have added two custom actions under "Commit" and I have...
3
4872
by: Marcel Brekelmans | last post by:
Hi, I was wondering if it's possible to install/uninstall a service from code without using the InstalUtil.exe tool with the /i and /u flags. As far as I can Google everyone is doing it that way and MicroSoft also mentions this. There's something like the ServiceBase class from which you ought to derive your own class. This has a Uninstall() and a Install() method, but I'm not getting access to these methods. MicroSoft says that this...
1
2860
by: lyl209 | last post by:
Hi, I am trying to create a web setup project for my asp.net 2.0 website and I had some problems. It worked fine until I want to add some custom actions into it. As some of you already knew, custom actions get fired AFTER the real installation is done. I want to do some things like 1) check if some required software is in position if not execute an installer 2) backup some important files before installation
1
20378
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example (C#); public class MyServiceInstaller : System.Configuration.Install.Installer { private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller;
0
9045
jinu1996
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...
1
8930
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8892
tracyyun
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...
0
7761
agi2029
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...
1
6538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4381
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...
0
4634
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3061
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.