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 / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

How to have .msi run regsvr32 after installation?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pucca - 22 Jul 2007 20:22 GMT
Hi, I'm using vs2005, .net2 for windows application.  I would like to run a
command after my windows applciation is installed to install some property
pages in the registry.  Currently I mannually run it in Dos Command:
"regsvr32 xxxx.dll".  How can I add this ability in my application
installation file so it will run automatically as part of my application
installation in my .msi file?  Thanks.
Signature

Thanks.

Nicholas Paldino [.NET/C# MVP] - 23 Jul 2007 02:41 GMT
Pucca,

   If you add your COM component to your setup project, it should have an
option to auto register (as opposed to you specifying the registry settings
yourself).  This will do the same thing as calling regsvr32 on the COM dll
yourself.

   If you are using .NET though, and the component is written using .NET
for use through COM interop, then you don't want to use regsvr32.  However,
I can see if you need to do this because you are using an unmanaged COM
component in your .NET app.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi, I'm using vs2005, .net2 for windows application.  I would like to run
> a
[quoted text clipped - 3 lines]
> installation file so it will run automatically as part of my application
> installation in my .msi file?  Thanks.
Pucca - 23 Jul 2007 02:56 GMT
Hi Nicholas,
The COM that I want to register is a unmanaged COM.  Even though my
application doesn't directly uses it, I still need to register it.  The COM
component contains 3 extended propertysheet page that I created for Active
Directory's property page.  I just need to register it during my C#
application installatino.  How would you recommend in getting this done?  I
saw "PostBuildEvent property" in the Setup project property.  I'm trying to
find documentation on how to use this but not much luck so far.  Do I just
type in the pop up window for this property my command like "regsvr32
xxxx.dll"?  Thanks.
Signature

Thanks.

> Pucca,
>
[quoted text clipped - 15 lines]
> > installation file so it will run automatically as part of my application
> > installation in my .msi file?  Thanks.
Pucca - 23 Jul 2007 06:36 GMT
Forget about "PostBuildEvent".  I just realize that is about "Build events".
It' not related to Post installation that I need to fire the regsvr32
command.  
Signature

Thanks.

> Hi Nicholas,
> The COM that I want to register is a unmanaged COM.  Even though my
[quoted text clipped - 26 lines]
> > > installation file so it will run automatically as part of my application
> > > installation in my .msi file?  Thanks.

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.