.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to install my assembly?

2 REPLIES 2
Reply
Message 1 of 3
joshlund
253 Views, 2 Replies

How to install my assembly?

I have an assembly (vb.net DLL) and would like to know the best way to install it. I also have a CUI file so the user can run the commands in the assembly and we'd like to have it load automatically.

Everything has been tested and it works just fine. We just need to package it up and have it load automatically so we can send it out to our production environment.

1. I created an installer using VS2005. The installer has been tested and works fine. Basically, it's only copying files around right now.
2. I want to avoid manually netloading the assembly. How do I do this automatically? I read that I can demand load the assembly but what if the user changes the installation path? How do I get the InstallFolder without searching the entire system? Due to our various locations, we cannot hard code the install location - need flexibility to allow this.
3. How do I get the partial CUI to install?

Thanks,
Josh
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: joshlund

Installing an AutoCAD application with menu/CUI components is not trivial.

You must alter the user's CUI file if you want your UI components to be
automatically displayed, and that's quite involved.

There's an API for manipulating CUI files that you can use to do that.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6159931@discussion.autodesk.com...
I have an assembly (vb.net DLL) and would like to know the best way to
install it. I also have a CUI file so the user can run the commands in the
assembly and we'd like to have it load automatically. Everything has been
tested and it works just fine. We just need to package it up and have it
load automatically so we can send it out to our production environment. 1. I
created an installer using VS2005. The installer has been tested and works
fine. Basically, it's only copying files around right now. 2. I want to
avoid manually netloading the assembly. How do I do this automatically? I
read that I can demand load the assembly but what if the user changes the
installation path? How do I get the InstallFolder without searching the
entire system? Due to our various locations, we cannot hard code the install
location - need flexibility to allow this. 3. How do I get the partial CUI
to install? Thanks, Josh
Message 3 of 3
bert.vanpeteghem
in reply to: joshlund

You can let your dll load automatically, without using NETLOAD by registering it in the registry, or by using a script file containing your NETLOAD. We use both techniques according to the situation (I'm not really fond of registry-stuff).

In the Installer you can set the registry keys to add. I'll look up if I can find them online, otherwise I might write a little blog post on it.

If you're worried about the user changing the install path, then you'd have to use custom installers where you can programmatically set the registry keys with the used InstallPath.

For registering CUI's we add a command that registeres the CUI. The user has to run a ...CUI command or INIT command, and then the CUI is registered.

--

http://cupocadnet.blogspot.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost