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

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

  • Has to run off disk aˆ“ no construction essential
  • Less criteria (.NET platform is ok)
  • It ought to make use of bodily files and folders aˆ“ no databases or some this type of needed. Basically, I’d like to operate it and just have they immediately gather everything on disk, letting us to classify the products without mobile they around
  • Metadata needs to be kept with bodily files/folders. Basically push a folder by hand, i would like they to retain all the kinds it belonged to
  • Fast looking by-name, explanation, classification
  • Instantly modify installations For example, it ought to connect to Winamp webpages and obtain the most recent installment if required
  • Immediately install software
  • Establish viewers for imagery, PDF, HTML, an such like.
  • Reorganize data files and folders

A software that fulfill the fundamental specifications could be exceptionally beneficial to myself, but i might in the long run need one which fulfill these extra requirements at the same time. I’m severely considering beginning this application as an open provider task, but I’m at this time overrun together with other dilemmas. Nevertheless, i believe I might begin they in the future.

The signal is actually all C#, created as aˆ?Any CPUaˆ?, so that it requires no troubles run unmodified with both 64 and 32 bit creators

I have an addin for AutoDesk creator 2009, written in C# and a create venture to go with it. So that you can enter the addin with Inventor, I had to develop to join up the assembly with aˆ?/codebaseaˆ? turn, so I generated a custom installer actions:

The specific registration signal operate from the registration solution modifies some registry tactics under HKEY_CLASSES_ROOT . This worked great on or windows 7, but once operate on my personal Vista 64, the set-up finished effectively, but failed to subscribe the addin with Inventor. The reason why turned into obvious when I recognized that my creator installation normally 64 little bit aˆ“ therefore it seems when it comes to tactics making use of the 64bit view of the registry, even though the installer actions operates using 32bit see.

Truly the only problem is tips manage the installer as 64 little. I also desired to allow the exact same MSI to be used on all platforms, very compiling several versions was not an alternative. And looking around the web, i acquired the effect that it will never solve the issue anyway aˆ“ at the very least perhaps not without another knowledge.

The answer we created is very simple: in place of making use of RegistrationServices item, I can manually execute the RegAsm.exe tool to join up the set-up. To my Vista 64, there are two main forms of the instrument:

The websites will not be exactly the same on different gadgets, of course. Fortunately, .NET offers the RuntimeEnvironment.GetRuntimeDirectory() fixed means which returns the folder on the typical words runtime. On my device, they returns C:\Windows\Microsoft.NET\Framework\v2.0.50727\ in the installer action. We can use this, coupled with RuntimeEnvironment.GetSystemVersion() to make the pathways to 32bit and 64bit models of appliance:

Passing C++/CLI delegate to indigenous laws

I just must program a C++/CLI installation with a local DLL printed in C. It is primarily simple, nevertheless the C DLL could boost an internal show and offered an effective way to possess software notified with this occasion. In order to be informed, the application has to enter a callback function which will be invoked because of the DLL once the celebration is brought up. The subscription features try proclaimed like this:

Making use of a regular features for your callback might possibly be effortless, but i needed to use a .NET delegate to ensure that i possibly could transform the indigenous occasion https://www.datingranking.net/local-hookup/cincinnati into a .NET show. This situation in addition happens to be sustained by .NET. All you have to manage is always to avoid the delegate from becoming moved or accumulated by rubbish collector.



Leave a Reply