473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to have .msi run regsvr32 after installation?

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.
--
Thanks.
Jul 22 '07 #1
1 4935
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:FE**********************************@microsof t.com...
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.
--
Thanks.
Jul 23 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ljb | last post by:
Is there a way I can use my custom dll just by placing it in the ASP folder and not having to use regsvr32 to register it? I takes forever to get our admins to do anything like this for us. ...
0
by: MichaƂ Januszczyk | last post by:
Hello. I've got the following problem: I created a windows installer project that installs my application. The application works with some files. I want to include some example files with the...
1
by: Saurabh Boyed | last post by:
In some of the development computers the COM DLLS with managed extension turned on (even though there are no .NET projects in its add reference) is not able to register. regsvr32 hangs up, it does...
1
by: ImageAnalyst | last post by:
Yay!!! They fixed this for VS2005. You can now set the default installation to be "Everyone" instead of "Just Me" and you can control whether you even want those radio button installed in your...
6
by: sankarvanaja | last post by:
i tried to register a msvgif.ocx file using the command regsvr32 c:\module\msvgif.ocx it returned an error code dllregisterserver in c:\module\msvgif.ocx failed return code was :0x80040200 ...
11
by: =?Utf-8?B?Um9iS2lubmV5MQ==?= | last post by:
Hello, We are testing and tweaking some of our software to run on Vista, but it turns out that we are having problems with one of our programs. Here is our code: // attempt an experiment to...
1
by: kaymatrix | last post by:
If my vb project contains no external OCX, DLLs. Is msvbvm60.dll and my exe enough to run in new system containing no vb runtime? Do msvbvm60.dll need regsvr32 registeration? doing REGSVR32.......
4
by: Anil Gupte | last post by:
A friend of mine is having this problem on his machine - it works fine on my machine. The above message appears when he tries to inset the "Microsoft Internet Transfer Control" (Inet) into a...
1
by: DR | last post by:
when i reference a com object by regsvr32 it then find it in the COM tab, it works ok. but when i reference a com object by referencing the .dll file i get this error in my C# application: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.