Skip to content

Can i build a setup that will overwrite the previouse installation...c# windows applciation..

Basu Biswas

Asked Apr 16, 2007, 6:46 AM EDT2 answers
Share
LinkedInX

Hi all,

if i have allready installed a setup and if i try second time ..it says..

"One instance is allready running" .

can we build a setup which should over write the previouse installation of the same setup.

just like an upgrade virsion of a software. ...

i m working in c# windows application.

Plz do help ....if any ve any idea...

regards...

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    It depends on what you are using for an installer. Since I use Visual Studio Express, it does not come with any built in support for generating a .MSI install file. Instead, I use the Nullsoft Scriptable Install System. It's pretty easy to use and is a lot more customizable than the built in .msi support that the pro version of Visual Studio contains. It will let you build installers that will install over top of your existing application, thus "upgrading" it, usually without any problems. But, be aware that for it to work properly you'll probably need to have any instance of the program that might still be running in the background disabled before your attempt to re-install it. Use the task manager to kill the process. http://nsis.sourceforge.net/Main_Page
    0
  • 0
    You can change the version of the new exe file
    it will be 1.0.0 by default
    Then set the property "removeAllPreviousVersion" to true
    this will helps you.
    0