VS installation project: remove another component during installation

I am creating a Visual Studio installation project. I want to remove another component from the system from the installation of my component. Another component is installed from my own installation created using Visual Studio.

Currently, when I call un-install another component from the component installation action, I get error code: 1618 (another MSI already running) .

Can someone suggest me an alternative way to solve this problem?

+6
windows-installer visual-studio-2005 setup-project
source share
3 answers

If you do not need to actually start the removal of another component, you can use a custom action to delete the files / folders that you are about to replace.

Using a custom action will force you to perform all the cleaning actions that Uninstaller does for you.

Is it that you are replacing something or trying to remove something as a result of installing something completely different?

MSDN Custom Action Pass

I also read several articles from Phil Wilson that were useful in custom activities:
Phil Wilson on Custom Actions

+1
source share

I had a similar problem that required several installations to start together and not be able to find paths for MsiExec recursion. The solution I used was to associate the installer with a script that ran MsiExec once to install / uninstall the old package, and then start the new installer again. Clients had to run a script to install.

If you find a better way, let me know.

+1
source share

I think you can run uninst.exe this program through a shell command during installation startup .....

0
source share

All Articles