making setup update a excisting installation

feurich

Well-known member
Joined
Oct 21, 2003
Messages
168
Location
Holland
I have a setup and its working fine. The only little thing that I dont seem to get rid of is the fact that when i run the setup and there is already a version installed on my computer, the setup gives the meassage that that version first has to be removed before it can continue.
Does anyone know how to get rid of this little problem??

Cire
 
Usually Setup checks for the version already installed. If it is the same it tells you that it is installed. In your case Right Click Setup and Select Properties, In the Version field change the version to a higher number for example from 1.0.0 to 1.0.1 and build. Now your deployment is a newer version when you install it it will automatically replace the older one.

Hope this helps,
 
Where is version info??

Hi, im having the same problem and i was supprised when i found this thread.
Just a question. I suppose with "Right Click Setup and Select Properties" you mean the setup project contained in the solution.
So, when i right click setup project and the properties dialog appears i dont see anywhere any Version field.

Can you help??
 
Well yes I mean the Setup project but sorry for that, what I meant by properties is the properties window in Visual Studio .NET, so select the setup project and click on the Properties icon in visual studio .net.

Again Sorry for the confusion ....
 
This doesnt really work...

you cant install a program over itself successfully without changing the product guid. but when you do this, youre basically installing files over the old application.

This is a bit of a problem (especially when youre trying to setup a service like i am at the moment) if the program is locked for whatever reason.

There is a "unistall previous versions" option in the properties window as well, but im not sure if that works like it says on the tin.
 
This doesnt really work ...
As long as it gives you an end result, I think you can say it works !!!
Actually when you change the version Visual studio .NET automatically asks you to change the guid, and you are right you are installing over the existing one, but whats the problem as long as the client has the new software, and doesnot have two softwares and doesnot have to uninstall to install the new one.

Thats all you need as a developer.
 
Last edited by a moderator:
thats only true as long as you keep the name the same for the application, same files, and same reg keys, which is highly unlikely in revision revamps.

Its also untidy to overwrite an existing program, when there are obselete files that may exist in the directory, legacy registry values and keys etc...

If the user did an unstall, it would only remove the newest edition of the program, leaving the old stuff behind. This is not sufficient.

Are there ways to manipulate the setup to uninstall the application, but keep system settings? It would be sort of an overwrite, but clean up of the old files too?

Another thing that seems to not work all that well are registry settings that are manually inputted into the reg editor. Theres an option to have the program remove the reg entry when uninstalled, and this is, by default, set to false. (ie, when uninstalling, leave this stuff here). That would be great, because you could uninstall the previous version, and know that all the settings are still there for the new one to use. But when Ive uninstalled my app, it removes the reg settings I said I wanted to remain.
 
Back
Top