473,668 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploy assembly to COM+ via Custom Action .vbs

I was unable to find information here on how to do this, so I am
posting the solution for the benefit of all.

If you want to create a custom action in a .NET deployment project to
register your assembly into COM+ (via regsvcs), and do this through a
vbs script, this code works.

When you add your customaction.vb s to the "Install" custom action, you
need to add [TARGETDIR] to the CustomActionDat a property. This will
tell the script where the dll is going, and then we can extract this
in the vbs script with the Session.Propert y object.

Code:

targetDir = Session.Propert y("CustomAction Data")

doscmd = "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \regsvcs.exe """
+ targetDir + "\myassembly.dl l"""

set shell = createobject("W script.Shell")
shell.Run doscmd, 1, true

This will display the command window and will wait for the
registration to complete before continuing with the installation.

Hope this helps someone.
Jul 21 '05 #1
0 2448

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

Similar topics

1
4196
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET IDE isn't capable of create a setup and deploy project and, in a elegant way, during the setup process, detect the absence of the Framework. In this case, I'd like to run the Dotnetredist.exe file, first, and the
0
1492
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (dll with no user interface)in C# which I deploy in IE. The dll name is test.dll and the object tag in the html page is as follows. <OBJECT ID="myAssembly" classid="test.dll#testNS.Class1"></OBJECT>
2
6720
by: hitendra15 | last post by:
How to Deploy SQL server Database to another PC, How to create a package that craetes Database as well as ODBC driver for accessing data at enduser PC, using .Net VB
2
5489
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (.dll) in C# which I deploy in IE. The dll name is test.dll and the object tag in the html page is as follows. <OBJECT ID="myAssembly"
0
290
by: Jeff Jorczak | last post by:
I was unable to find information here on how to do this, so I am posting the solution for the benefit of all. If you want to create a custom action in a .NET deployment project to register your assembly into COM+ (via regsvcs), and do this through a vbs script, this code works. When you add your customaction.vbs to the "Install" custom action, you need to add to the CustomActionData property. This will tell the script where the dll...
10
2730
by: =?Utf-8?B?SmFjayBTbWl0aA==?= | last post by:
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. The service application references the DLLs. The service app also has an installer class that is set up to run as a custom action in the Setup Project. I am having a problem with signing an assembly. If I add a strong name key to one of the...
0
3483
by: Monty | last post by:
I have an installation package for my web application which has worked well. After rebuilding the package and running install, I began receiving this error message: Error 1001. Unable to get installer types in the <MY_APPLICATION>.dll assembly. --Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. The install package has a Custom Action, but it has always worked fine before. If...
0
1007
by: azoapes | last post by:
Hi, I've made a Setup Project to my C# WinApp and added a custom dialog to it that asks for user/pass for a database server. Then I created a Custom Action class and override the Install() to check that the user/pass is correct, but I need to check that so that the installer cannot click Next until user/pass is correct. How do I do that? How do I add a Custom Action to the Next button of a certain dialog? Regards, Simeon
0
826
by: =?Utf-8?B?RHVuZTg4?= | last post by:
Hi there, We're using a Web Deployment project to deploy our web app and that works fine. However, we've written a little Windows Forms utility for our client that we'd like deploy with the web app into the ProgramFiles directory of the web server. Is this possible using an out-of-the-box web deployment project (i.e.
0
8459
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8889
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...
1
8570
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8650
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
7391
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...
0
5677
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();...
1
2781
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
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1779
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.