If the COM Dll was originally installed with a setup project, then why not
just uninstall that product? That will remove the files and unregister the
COM Dll. You can't just remove those files with out uninstalling the product
that installed them. If you've just got a new version of a setup, use
RemovePreviousVersions to automatically uninstall that old version of the
product when you install the new one.

Signature
Phil Wilson
[Microsoft MVP Windows Installer]
> How do I remove files/directories already on the machine that I want
> to install a new app on using a Visual Studio setup project? Also, how
[quoted text clipped - 14 lines]
>
> Chris
cbtechlists@gmail.com - 16 Feb 2007 13:45 GMT
Hi Phil:
I'm trying to combine the removal of an already installed app and
install a new version with another app in the same setup project. How
would I run the uninstall from a setup project? The new setup is not
just an upgrade of the original app. It installs an update (to new
location) of the original app and installs another app, too.
Background:
We original had an install for SQLDMO installed on the machines via a
VS.NET setup project. This is used with an Access Data Project (which
was installed separately). Now I want to combine the install for
SQLDMO (and move it to the same directory as the ADP) with the ADP. So
the installs are going to be different.
Thanks for your help!
Chris
On Feb 15, 4:12 pm, "Phil Wilson"
<phil.wil...@wonderware.something.com> wrote:
> If the COM Dll was originally installed with a setup project, then why not
> just uninstall that product? That will remove the files and unregister the
[quoted text clipped - 5 lines]
> Phil Wilson
> [Microsoft MVP Windows Installer]
Phil Wilson - 22 Feb 2007 21:06 GMT
If the previous version was installed with MSI and you know it's UpgradeCode
(and version) you can use the RemovePreviousVersions property. That
automatically uninstalls the older version if it's there and then installs
your new version.

Signature
Phil Wilson
[Microsoft MVP Windows Installer]
> Hi Phil:
>
[quoted text clipped - 29 lines]
>> Phil Wilson
>> [Microsoft MVP Windows Installer]