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 [TARGETDIR] to the CustomActionData property. This will
tell the script where the dll is going, and then we can extract this
in the vbs script with the Session.Property object.
Code:
targetDir = Session.Property("CustomActionData")
doscmd = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\regs vcs.exe """
+ targetDir + "\myassembly.dll"""
set shell = createobject("Wscript.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.