1

For my project I need to register a COM visible dll in both 32 and 64 bit. When using installshield's default register com action, it registers it in the modus the installshield is running in.

What is the best way to get it registered in both 32 and 64 bit modus?

Boris Callens
  • 90,659
  • 85
  • 207
  • 305
  • An accepted answer that is downvoted? Should I remove the answer perhaps? Did you get this issue sorted in a sensible manner? – Stein Åsmul Apr 29 '15 at 10:00
  • We registered it with a custom action. It wasn't what I would have liked to do, but without other options it did the job. Hence the accepted answer but no upvote :) I now used the upvote to offset the downvote as without alternative answers, this doesn't deserve a negative vote ... It has been a while now and maybe there are better ways but I'm not working with installshield anymore. – Boris Callens Apr 29 '15 at 13:21

1 Answers1

1

I haven't done this, and have little experience with 64 bit stuff, but the general approach to accomplishing anything that the built-in features don't support is to use a custom action.

Make it a deferred mode custom action run in system context to ensure that the action runs with elevated rights. You can't access properties directly from a deferred mode custom action, so you might need to write property values into the execution script using an immediate mode custom action. Look into the use of the special CustomActionData property for sending property values from immediate to deferred mode.

Some further details: http://msdn.microsoft.com/en-us/library/aa370543(v=VS.85).aspx

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164