Installer won't overwrite previous version?
-
I created an installer project for my C# windows forms app, but it won't overwrite previous versions of the program. The users have to go to their Add/Remove Programs, and uninstall it there, then the new installer will run. I can't find anything about this on Google or in the MSDN. I found reference to a property of OverwritePreviousVersion, but I can't find it in my project anywhere? I've looked through all the properties windows of the application, and of the installer project... Where do I set this option? I just need it to overwrite the EXE file really... the rest of the stuff can stay... well I'd need to update the shortcuts in the programs menu too I think...
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles. -
I created an installer project for my C# windows forms app, but it won't overwrite previous versions of the program. The users have to go to their Add/Remove Programs, and uninstall it there, then the new installer will run. I can't find anything about this on Google or in the MSDN. I found reference to a property of OverwritePreviousVersion, but I can't find it in my project anywhere? I've looked through all the properties windows of the application, and of the installer project... Where do I set this option? I just need it to overwrite the EXE file really... the rest of the stuff can stay... well I'd need to update the shortcuts in the programs menu too I think...
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.So you just need to overwrite the previous installed versions while installing ? In that case, just check the properties of the installer project. In the property window, you will find an attribute - 'RemovePreviousVersions'. Set it to "true"(sorry for previous mistake, just set it to true) and i hope it will work. btw, thanks for your reply to my post.
Chayan
-
So you just need to overwrite the previous installed versions while installing ? In that case, just check the properties of the installer project. In the property window, you will find an attribute - 'RemovePreviousVersions'. Set it to "true"(sorry for previous mistake, just set it to true) and i hope it will work. btw, thanks for your reply to my post.
Chayan
There is no such thing on my project. That is what I'm saying... I could send screen shots... I have no idea what I'm looking at. I've read the articles that talk about that property, but I can't find it on any of the screens in my Visual Studio. I know it sounds stupid, but it's just not there?!
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles. -
There is no such thing on my project. That is what I'm saying... I could send screen shots... I have no idea what I'm looking at. I've read the articles that talk about that property, but I can't find it on any of the screens in my Visual Studio. I know it sounds stupid, but it's just not there?!
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.So you are in a strange situation. This option may vary from version to version. I am not sure. I use visual studio 2005. I don't know about other versions.. One more thing, i know you have already checked everywhere for this option. So it's silly to say it again. But still, just to make sure, there are 2 property pages. One if you right click on the SetUp project and click on property. Then you'll see a property page but you can't find it there. But if you just select the setup project, then in the property tab, you should find it. But i know, you must have checked it and can't find it. So I don't know what can be the solution. Hope that, someone else can help you. Regards
Chayan
-
So you are in a strange situation. This option may vary from version to version. I am not sure. I use visual studio 2005. I don't know about other versions.. One more thing, i know you have already checked everywhere for this option. So it's silly to say it again. But still, just to make sure, there are 2 property pages. One if you right click on the SetUp project and click on property. Then you'll see a property page but you can't find it there. But if you just select the setup project, then in the property tab, you should find it. But i know, you must have checked it and can't find it. So I don't know what can be the solution. Hope that, someone else can help you. Regards
Chayan
Iftekhar Naim wrote:
just select the setup project, then in the property tab, you should find it
OMG! Thank you! I will sooo buy you coffee if I ever see you :)
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles. -
Iftekhar Naim wrote:
just select the setup project, then in the property tab, you should find it
OMG! Thank you! I will sooo buy you coffee if I ever see you :)
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.You are welcome. and thanks for your offer of coffee:). let me be optimistic..
Chayan
-
You are welcome. and thanks for your offer of coffee:). let me be optimistic..
Chayan
Hehe... that's just me. I'm a real bitch online sometimes but I'm actually a friendly and generous person - I'll buy coffee for anyone, maybe even dinner. In my world, I don't meet people in person too often, so it's a nice treat when I get to do that.
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.