Home > Belfast+United Kingdom hookup sites > Installing the same managed addin in 32bit and 64bit Autodesk creator

Installing the same managed addin in 32bit and 64bit Autodesk creator

March 10th, 2022

Installing the same managed addin in 32bit and 64bit Autodesk creator

  • Has to run off computer aˆ“ no installation necessary
  • Very little requirement (.NET platform is ok)
  • It ought to work with bodily data and folders aˆ“ no database or some this type of needed. Essentially, I want to manage it while having it immediately gather anything on drive, letting me to categorize the material without moving it around
  • Metadata ought to be kept with bodily files/folders. Easily go a folder manually, i Belfast casual hookup would like it to retain most of the groups it belonged to
  • Fast searching by-name, story, class
  • Automatically update installments as an example, it should connect with Winamp site and download the most recent set up if required
  • Immediately install tools
  • Start people for files, PDF, HTML, etcetera.
  • Reorganize documents and folders

An application that satisfies the essential needs could be incredibly useful to myself, but I would personally in the long run wish one which fulfill these added requisite at the same time. I am seriously considering beginning this program as an open provider project, but I am at this time overwhelmed together with other problem. Nonetheless, I think i would begin they in the future.

The signal itself is all C#, gathered as aˆ?Any CPUaˆ?, therefore it need no troubles operating unmodified with both 64 and 32 bit Inventors

You will find an addin for AutoDesk creator 2009, written in C# and a set-up venture to go with it. To be able to subscribe the addin with creator, I had to develop to join up the set-up with aˆ?/codebaseaˆ? switch, and so I made a custom installer actions:

The particular enrollment laws run by registration provider modifies some registry tactics under HKEY_CLASSES_ROOT . This worked fine on or windows 7, but when operate on my personal Vista 64, the setup done successfully, but neglected to sign up the addin with Inventor. Why turned apparent when I recognized that my Inventor construction normally 64 bit aˆ“ which means it looks for all the important factors by using the 64bit view of the registry, whilst installer motion works utilizing the 32bit see.

The only problem is how-to run the installer as 64 bit. I also wished to enable the same MSI to be utilized on all networks, therefore compiling several models was not a choice. And looking the net, i acquired the effect it will never resolve the difficulty anyhow aˆ“ at the very least maybe not without another hardware.

The answer I came up with is simpler: as opposed to using RegistrationServices object, I can manually carry out the RegAsm.exe appliance to register the assembly. To my Vista 64, there have been two versions for this tool:

The websites is probably not the exact same on more devices, obviously. Fortunately, .NET offers the RuntimeEnvironment.GetRuntimeDirectory() static approach which return the folder from the usual vocabulary runtime. Back at my maker, they return C:\Windows\Microsoft.NET\Framework\v2.0.50727\ inside installer activity. We can utilize this, along with RuntimeEnvironment.GetSystemVersion() to create the pathways to 32bit and 64bit forms of instrument:

Passing C++/CLI delegate to native code

I just was required to interface a C++/CLI set up with a native DLL written in C. This can be mostly simple, although C DLL could boost an inside show and provided ways to have the software informed with this show. To be well informed, the applying has got to sign up a callback purpose that will be invoked from the DLL after event was brought up. The registration purpose is declared like this:

Making use of a normal purpose for callback could well be simple, but I wanted to make use of a .NET delegate to ensure that i really could convert the native celebration into a .NET show. This circumstance furthermore turns out to be supported by .NET. All you have to take care of will be avoid the delegate from are moved or built-up from the trash collector.