# How Do I - regasm -u "C:\\Program Files\\&lt;dirname&gt;\\&lt;some&gt;.dll"

**URL:** https://www.finalbuilder.com/forums/t/how-do-i-regasm-u-c-program-files-lt-dirname-gt-lt-some-gt-dll/2105
**Category:** Discussion
**Created:** [March 29, 2013, 5:43am UTC](https://www.finalbuilder.com/forums/t/how-do-i-regasm-u-c-program-files-lt-dirname-gt-lt-some-gt-dll/2105 "2013-03-29T05:43:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![scottb](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@scottb](https://www.finalbuilder.com/forums/u/scottb)
#### Post date: [March 29, 2013, 5:43am UTC](https://www.finalbuilder.com/forums/t/how-do-i-regasm-u-c-program-files-lt-dirname-gt-lt-some-gt-dll/2105/1 "2013-03-29T05:43:07Z")

</div>

&nbsp; When FinalBuilder is complete, and&nbsp;our new software is installed on a given workstation ... .

we are finding with a few dll's, that we must:

&nbsp;Delete the old file(s)

&nbsp;Do a&nbsp;&nbsp; regasm -u "C:\Program Files\\.dll"&nbsp;&nbsp; (as administrator)

&nbsp;Install&nbsp;new file(s)

&nbsp;Issue: regasm&nbsp;"C:\Program Files\\.dll"&nbsp;&nbsp; (as administrator)

&nbsp;&nbsp; Is there something I can do during the FinalBuilder&nbsp;build process to make this happen automatically when a client installs our software?

1. &nbsp; 
2. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks!!
3. &nbsp;&nbsp; Scott&nbsp; B

&nbsp;

---

<div class="post-metadata">

### Author: ![scottb](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@scottb](https://www.finalbuilder.com/forums/u/scottb)
#### Post date: [March 29, 2013, 7:12am UTC](https://www.finalbuilder.com/forums/t/how-do-i-regasm-u-c-program-files-lt-dirname-gt-lt-some-gt-dll/2105/2 "2013-03-29T07:12:26Z")

</div>

Note: project are from Visual Studio - VB6 & Visual Basic (vb6, VS2008, Vs2010).

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 30, 2013, 1:45am UTC](https://www.finalbuilder.com/forums/t/how-do-i-regasm-u-c-program-files-lt-dirname-gt-lt-some-gt-dll/2105/3 "2013-03-30T01:45:29Z")

</div>

You need to use an installation program to do this, something like Innosetup.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 1, 2013, 9:00am UTC](https://www.finalbuilder.com/forums/t/how-do-i-regasm-u-c-program-files-lt-dirname-gt-lt-some-gt-dll/2105/4 "2013-04-01T09:00:57Z")

</div>

We found that .net based COM dll’s needed to be unregistered using Regasm.exe /u with the previous edition prior to loading and then registering the new edition. MS VS MSI projects didn’t do a very good job of unregistering COM dll’s.   
 We discovered this after doing a range of upgrades to an application and attempting to use a .net MSI installer project. Essentially we broke XP’s add/remove programs with one of our installations, requiring an embarrassing set of “OS rebuilds” for a client. It was a very expensive lesson in COM registration and how poorly .net unregister occurs.   
 VS 2012 doesn’t include MSI projects, you might also want to have a look at WIX projects [http://wixtoolset.org/](http://wixtoolset.org/) as a replacement. It takes a few days to get up to speed and then I’ve found it to be very good tool.
