Setting up exactly the same managed addin in 32bit and 64bit Autodesk creator

Setting up exactly the same managed addin in 32bit and 64bit Autodesk creator

    African Sites dating apps

  • Needs to run off drive aˆ“ no construction essential
  • Little specifications (.NET platform is ok)
  • It ought to utilize bodily data files and folders aˆ“ no databases or some such needed. Essentially, I would like to operate they and have it instantly collect everything on disk, permitting me to classify the stuff without moving they around
  • Metadata need to be stored with bodily files/folders. If I push a folder by hand, Needs it to retain all of the groups it belonged to
  • Quick looking around by name, information, category
  • Instantly modify installations like, it must connect with Winamp webpages and install the newest installment if necessary
  • Immediately install applications
  • Start people for imagery, PDF, HTML, etcetera.
  • Reorganize documents and files

A software that fulfills the essential requirement could be exceedingly helpful to myself, but i might fundamentally wish one which satisfies these added requirements besides. I will be seriously planning on starting this application as an open supply project, but I’m presently overwhelmed with other problems. Nonetheless, In my opinion i may beginning they in the future.

The signal is actually all C#, put together as aˆ?Any CPUaˆ?, therefore it need no problems 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 project to go along with it. Being sign up the addin with creator, I needed to register the set up with aˆ?/codebaseaˆ? turn, and so I produced a custom installer actions:

The actual registration signal operate by the subscription service modifies some registry important factors under HKEY_CLASSES_ROOT . This worked great on or windows 7, however when operate on my personal Vista 64, the setup finished effectively, but failed to enter the addin with Inventor. The main reason turned apparent once I understood that my personal Inventor set up is also 64 bit aˆ“ consequently it appears the tactics by using the 64bit look at the registry, as the installer action runs together with the 32bit view.

The actual only real issue is how to operate the installer as 64 bit. In addition wished to permit the same MSI used on all platforms, therefore compiling multiple versions wasn’t an option. And looking the internet, I got the perception it will never solve the issue anyway aˆ“ at least perhaps not without some other technology.

A better solution I developed is very simple: rather than utilizing RegistrationServices item, I can manually implement the RegAsm.exe tool to register the set-up. To my Vista 64, there are two main variations of the tool:

The websites may possibly not be the exact same on different machinery, of course. Nevertheless, .NET offers the RuntimeEnvironment.GetRuntimeDirectory() fixed strategy which return the folder associated with the common language runtime. To my equipment, they returns C:\Windows\Microsoft.NET\Framework\v2.0.50727\ in the installer action. We can make use of this, along with RuntimeEnvironment.GetSystemVersion() to make the routes to 32bit and 64bit forms for the means:

Passing C++/CLI delegate to native rule

I just must interface a C++/CLI installation with a native DLL printed in C. This might be mainly clear-cut, nevertheless the C DLL could increase an interior occasion and provided a method to experience the program notified of this occasion. In order to be updated, the application has got to register a callback purpose which will be invoked of the DLL as soon as the show is actually elevated. The subscription work is announced along these lines:

Utilizing a regular features your callback was effortless, but i needed to make use of a .NET delegate so that I could transform the indigenous event into a .NET event. This situation additionally actually is supported by .NET. Everything you need to look after is to avoid the delegate from are moved or collected of the rubbish collector.