473,386 Members | 1,779 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,386 software developers and data experts.

Adding an regsvr32 commandline in a setup project

Hi,

I have a VB.Net Setup and deployment project that installs my application.
Now in my application, I am using an ocx that I have explicitly registered
using the regsvr32.exe utility. Now when I deploy my application on another
computer that does not have this registered, it gives an unhandled exception
(which is expected). How can i add this script in my setup project itself?

Any pointers are gladly appreciated
Dec 15 '05 #1
2 9210
If you just add the OCX into the File System on Target Machine view in the
setup project you'll see its register property gets set to vsdrfCOMSelfReg
(select the file, hit F4), which does the same thing as regsvr32. If the OCX
might be installed by other setups, make sure you all install it to the same
location.
--
Phil Wilson [MVP Windows Installer]
----
"Nick" <Ni**@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
Hi,

I have a VB.Net Setup and deployment project that installs my application.
Now in my application, I am using an ocx that I have explicitly registered
using the regsvr32.exe utility. Now when I deploy my application on
another
computer that does not have this registered, it gives an unhandled
exception
(which is expected). How can i add this script in my setup project itself?

Any pointers are gladly appreciated

Dec 15 '05 #2
Gee thanks Phil!

I had that ocx included in my project alright but the Register property was
set to vsdrfCOMDoNotRegister. I made the change and it works pretty fine now.
But just a quick question: Would this ocx get unregistered at the time of
uninstallation? I tried it and it does get removed from the Registry's HKCR.
But just wanted a clarification on this.
Moreover, does the presence of a COM component in the registry also get
affected by the location of the component on the machine? For a little more
context, I had initially registered the component from the program files
directory. However, when I changed the application folder to c:\ the entire
application had crashed leading to an unhandled exception. It baffles me on
the front that how does it matter where the component was registered from! As
long as there is a valid entry in the registry, it should not matter where
you load your application. Can u shed some light on this?

Nick

"Phil Wilson" wrote:
If you just add the OCX into the File System on Target Machine view in the
setup project you'll see its register property gets set to vsdrfCOMSelfReg
(select the file, hit F4), which does the same thing as regsvr32. If the OCX
might be installed by other setups, make sure you all install it to the same
location.
--
Phil Wilson [MVP Windows Installer]
----
"Nick" <Ni**@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
Hi,

I have a VB.Net Setup and deployment project that installs my application.
Now in my application, I am using an ocx that I have explicitly registered
using the regsvr32.exe utility. Now when I deploy my application on
another
computer that does not have this registered, it gives an unhandled
exception
(which is expected). How can i add this script in my setup project itself?

Any pointers are gladly appreciated


Dec 16 '05 #3

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

Similar topics

2
by: serge calderara | last post by:
Dear all, I have build a setup project for my VB.NET application, I need to know the installation path of an application in order to add file in it. How can do that inside my setup project ?...
4
by: Nick | last post by:
Hi, I have a windows application, wherein the solution consists of 5 projects. When I try to create a setup and deployment project for this solution, I'm somehow unable to add anything in...
3
by: hangten | last post by:
I have created a setup project for my application. Within this setup project I need to install another .exe file. When I add the .exe file to the setup program, I get a message "unable to find...
0
by: Husam | last post by:
Hi EveryBody: I read the articl "using Visual Studio Net 2003 to redistrbuted the Net framework" which is in the msdn library and I applied every step in it to add the Net framework to the...
0
by: Husam | last post by:
Hi EveryBody: I read the articl "using Visual Studio Net 2003 to redistrbuted the Net framework" which is in the msdn library and I applied every step in it to add the Net framework to the...
0
by: dotnetprogrammer via DotNetMonster.com | last post by:
I am using Visual Studio 2005. I wrote a Setup Project to install my application. After setup is complete, I need to get the destination folder that the user chose to install to (not the default...
1
by: Philip Wagenaar | last post by:
I have a Visual Studio Solution with 4 four projects. 1) class library 2) console app 3) windows service 4) setup project The console app en and the windows service both use the dll from the...
0
by: ngxfer001 | last post by:
HI Experts, I am trying to learn VS Setup Project, the problem I experience now is, I have written a C++ program to register all my DirectShow filter by CreateProcess method. Q1: the reason I...
0
byfour
by: byfour | last post by:
Hii Please guide me how to add shortut for setup project.Right now I have a .Bat File which uninstalls the application.The .Bat code is given below C:\WINDOWS\system32\MsiExec.exe...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.