473,508 Members | 4,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to rollback an uninstallation from uninstall custom action

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
using. vb.net.

Thanks.
Jul 21 '05 #1
5 3890
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you would like your setup project to
detect it there is any old version of your app installed on the computer.
If there is any misunderstanding, please feel free to let me know.

Based on my experience, we can do this by adding some keys in the registry.
When the older version has been installed the setup project writes the
lastest version of this product in a certain registry key. When the new
setup project runs, we first check if there is an older one on the machine
by reading from the registry key. If so we can only suggestion the user to
manually uninstall the older version instead of automatically uninstall it.

For more information on setup projects, you can try to post in
microsoft.public.vsnet.setup

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Thanks for quick resopnse. Registry is off the limits, cant add entries :( .
Is it possbile to find out where the previous version is installed, if there
is one, i mean path to the folder that contains all the files.

"Kevin Yu [MSFT]" wrote:
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you would like your setup project to
detect it there is any old version of your app installed on the computer.
If there is any misunderstanding, please feel free to let me know.

Based on my experience, we can do this by adding some keys in the registry.
When the older version has been installed the setup project writes the
lastest version of this product in a certain registry key. When the new
setup project runs, we first check if there is an older one on the machine
by reading from the registry key. If so we can only suggestion the user to
manually uninstall the older version instead of automatically uninstall it.

For more information on setup projects, you can try to post in
microsoft.public.vsnet.setup

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hi,

I'm afraid it's very hard to detect whether there is older version
installed on your machine without any clue. Finding folder with certain
files is not a good practice, as it is slow and inaccurate. As far as I
know, this job is often achieved by writing to registry or certain file in
the system folder. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4
Here is what i was thinking
In my setup projects properties, I set RemovePreviousVersion= True so my
uninstall custom action is called. In uninstall, i have access to previous
installation path so prompt the user and based on user input do what i have
to do.If there is no previous version installed ,uninstall custom action wont
be called. If I can somehow roll back the uninstallation with in uninstall
custom action, that would be great. Based on what i know(limited :)), i dont
think this can be done.
"Kevin Yu [MSFT]" wrote:
Hi,

I'm afraid it's very hard to detect whether there is older version
installed on your machine without any clue. Finding folder with certain
files is not a good practice, as it is slow and inaccurate. As far as I
know, this job is often achieved by writing to registry or certain file in
the system folder. HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #5
Hi,

I don't think it can be done, either. Basically, I think we have put some
clue for the new installation program to check for older versions and tell
it how to call the old uninstallation program.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #6

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

Similar topics

2
3004
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. ...
2
6833
by: Keith Smith | last post by:
I have noticed that when I uninstall my app it doesn't delete the Program Files / MyApp folder if there are "new" files in it that weren't there before. It deletes all files except the "new" ones....
5
315
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...
1
1146
by: archana | last post by:
Hi all, i have created windows service in c# .net. But at a time of building setuo of that service i forgot to specify uninstall action in custom actions. Because of which even if i tried to...
0
1493
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...
1
1242
by: Eric | last post by:
We are about to deploy a new version of our application re-written in .Net. Our .Net app is using the installer included with VS.Net 2003. The previous version of the application was deployed...
0
898
by: NickP | last post by:
Hi there, I have a small question regarding the uninstallation of VS.NET 2003/2005 and it's impact on the system. I have an application that functions as desired on all freshly installed...
4
2199
by: - HAL9000 | last post by:
When un-installing an application... Is it normal practice to write a special program that erases all the files and folders for all the users of an application that reads and writes to...
0
888
by: tkpatro | last post by:
I am using windows installer for creating setup.exe for my windows application. I have included CustomUninstall.exe to uninstall my product using start menu.Uninstall works perfectly but when the...
0
7228
marktang
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,...
0
7128
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...
0
7393
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...
1
7058
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...
0
7502
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...
0
5635
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,...
0
3206
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...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
426
bsmnconsultancy
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...

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.