Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / February 2007

Tip: Looking for answers? Try searching our database.

Remove and Unregister in a project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cbtechlists@gmail.com - 15 Feb 2007 18:33 GMT
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
do I  unregister a .dll.

I want to remove a folder and all it's files:
c:\testfolder

and I want to unregister a file
c:\testfolder\file.dll

before I install my application. The folders and files I'm removing
are not used by my application, and neither is the .dll. The
'file.dll' was originally registered using a VS Setup project
(vsdrfCOMSelfReg).

Thanks!

Chris
Phil Wilson - 15 Feb 2007 21:12 GMT
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]

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.