The Kinetic Jump site navigation header requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

Welcome Guest Search | Active Topics | Log In | Register

RegAsm Custom Action Options
brianh
#1 Posted : Tuesday, November 11, 2008 5:29:55 AM
Rank: Administration
Groups: Member, Administration

Joined: 5/24/2007
Posts: 351
Location: Minnesota

Here is a custom action that allows you to use RegAsm.exe to register a .Net assembly for Com interop during an update.  A built custom action assembly as well as source code is provided in the attached downloadable zip file.

 

To use this action:

 

1.  Place the assembly that you wish to register on the client system using a File Action.

 

2.  Use the Set Shared Property action and add a variable to the folder that you placed the assembly in step 1.  This is most often the ApplicationDirectory.

 

3.  Add the RegAsm Custom Action assembly to your project from the Tools/Custom Actions menu.  Once added, you will have a RegAsm Action in your actions palette.

 

3.  Add a RegAsm Action to your update project and set the RegAsm Command Line and Rollback RegAsm Command Line properties. Here, you will use the shared property value as part of the path to your assembly you are registering.

 

The output of the regasm is written to the update log after it has been executed.  You can verify its operation there.

 

This action does require administrative privileges because RegAsm.exe requires privileges.  If you are using the AppLife Update Windows service, you should have no issues with permissions.

 

 

File Attachment(s):
RegAsm Update Action.zip (11kb) downloaded 28 time(s).
Kjs.AppLife.Update.Engine.UI111108090431.log (2kb) downloaded 19 time(s).
brianh attached the following image(s):
RegAsm Screenshot.png
Brian Haas
Kinetic Jump Software
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.