473,785 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9240
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**@discussio ns.microsoft.co m> wrote in message
news:05******** *************** ***********@mic rosoft.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 vsdrfCOMDoNotRe gister. 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**@discussio ns.microsoft.co m> wrote in message
news:05******** *************** ***********@mic rosoft.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
3625
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 ? Any sample would help regards serge
4
2471
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 project output group. I tried creating with a setup wizard, but it just doesn't give me an option to add projects, although I was able to add files into the setup. Moreover, creating a normal setup project also did not help. I tried to add a new...
3
6020
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 dependency 'MICROSOFT.OFFICE.INTEROP.EXCEL'. So I added this interop dll but it is not adding it to the dependencies but is just adding it to the setup project. So when I build it still gives me the same error message. How can I get it to see that...
0
1086
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 setup project: and here what I did: 1- I installed the Microsoft Visual Studio .Net 2003 Bootstrapper Plug-in
0
1389
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 setup project: and here what I did: 1- I installed the Microsoft Visual Studio .Net 2003 Bootstrapper Plug-in
0
1632
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 destination folder, but the one the user actually chose during the install. I found an article that said in Visual Studio 2003, this was done by adding a registry entry (through the Setup project) and setting the value of the entry to . In...
1
298
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 class library.
0
1128
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 have to do this is because with VS regcap, I can't register my filter for some reason, my DX filter can register with regsvr32 perfectly? can you give me some hint on what is going on?
0
2262
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 /I{7DE9C552-970C-459A-8B11-52B23FD3BFBA} Its workin for windows XP Iam not sure for other environments. I have 2 questions associated with this, 1.How to add shortcut from Microsoft Visual studio 2008 Setup Project directly so that it works for any...
0
10356
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4061
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.