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. 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."
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."
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."
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."
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." This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. ...
|
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....
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |
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...
|
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...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |