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 3902
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 misunderstandin g, 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.publi c.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 misunderstandin g, 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.publi c.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 RemovePreviousV ersion= 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. With the MSI it detects
whether a current version is installed and requests that the user uninstalls
it prior to installing the new version. Also, MSI detects a running instance
of the application during the uninstall and requests that it be closed...
|
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. Is there a way to make
an uninstall so that it just completely wipes out my Program Files / MyApp
folder no matter what?
|
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...
|
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 uninstall the service it is not
getting removed from service control manager.
Can some one tell me how to remove service from scm.
|
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...
| |
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 using InstallShield. Is it
possible, using a Custom Action, to call the previous apps uninstall
routine? If not, help on how to uninstall the previous version while still
using the .Net installer would be appreciated.
|
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 systems that match the correct requirements
for the application. Unfortunately there have been a couple of times where
an "Out Of Memory" exception has been reported when attempting to run the
application on certain systems, the only thing in common...
|
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 SpecialFolder.ApplicationData (C:\Documents and
Settings\Username\Application Data) ?
Or, is there some way to get the ms installer to do this for you?
Is there some way to use Application.UserAppDataPath to ease finding
|
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 installed folder structure is open in the windows explorer i am getting one warning saying "C:\Program\Product name refers to location that is unavailable It could be on a harddrive on this computer ,or a network ." .Can anybody help me.
Also i...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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: 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,...
|
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: 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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |