Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Packaging: Another version of this product is already installed

I have a msi created for a project which uses C# & Jscript. version-1.0 is currently public. I want to release a bug-fixed version v-1.0.1 of this package but while testing it, I am getting "Another version of this product is already installed Installation of this version cannot continue.To configure or remove the existing version of this product, use Add/Remove program on the Control Panel".

I want this bug-fixed version to install silently without asking user to uninstall and install new one. Please help me how can I achieve this, I am using visual studio 2008.

Thanks in Advance!

Sam

Update: I have tried changing the package code but that creates two instances of the package using same working directory. Visual Studio geeks please help.

like image 825
Sam Avatar asked Jun 07 '10 16:06

Sam


People also ask

How do I add additional packages to Visual Studio?

Find and install a packageSelect a package from the list to display its information, which also enables the Install button along with a version-selection drop-down. Select the desired version from the drop-down and select Install. Visual Studio installs the package and its dependencies into the project.


2 Answers

I would follow this process

In your main project

  • Increment your Assembly Version no.

In your Visual Studio Setup project

  • Set "Remove Previous Version" to true
  • Increment the Version No. (this will change the product code for you too)
like image 85
Peter Kelly Avatar answered Sep 19 '22 02:09

Peter Kelly


steps to solve the error:

  1. Execute the following command from command prompt:

msiexec /i program_name.msi /lv logfile.log

where program_name.msi is the new version

/lv is log Verbose output

  1. open up the logfile.log in the editor

  2. find the GUID in the log

I found it in the following:

Product Code from property table before transforms: '{GUID}'

  1. execute the msizap following command from the visual studio command prompt if you already have installed or get it from Microsoft website

    Windows SDK Components for Windows Installer Developers

msizap.exe TWP {GUID}

it did the trick and removed the installed service successfully.

Extract from [SOLVED]Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel]2

like image 20
kazim Avatar answered Sep 19 '22 02:09

kazim