在两个位模式中从installshield调用regasm

时间:2023-01-03 22:37:47

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.

对于我的项目,我需要在32位和64位中注册COM可见dll。使用installshield的默认寄存器com动作时,它会以运行installshield的模式注册它。

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

以32位和64位模式注册它的最佳方法是什么?

1 个解决方案

#1


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.

我没有这样做,并且对64位内容几乎没有经验,但是完成内置功能不支持的任何内容的一般方法是使用自定义操作。

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.

使其成为系统上下文中的延迟模式自定义操作,以确保操作以提升的权限运行。您无法直接从延迟模式自定义操作访问属性,因此您可能需要使用立即模式自定义操作将属性值写入执行脚本。查看使用特殊的CustomActionData属性将属性值从立即模式发送到延迟模式。

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

一些进一步的细节:http://msdn.microsoft.com/en-us/library/aa370543(v = VS.85).aspx

#1


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.

我没有这样做,并且对64位内容几乎没有经验,但是完成内置功能不支持的任何内容的一般方法是使用自定义操作。

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.

使其成为系统上下文中的延迟模式自定义操作,以确保操作以提升的权限运行。您无法直接从延迟模式自定义操作访问属性,因此您可能需要使用立即模式自定义操作将属性值写入执行脚本。查看使用特殊的CustomActionData属性将属性值从立即模式发送到延迟模式。

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

一些进一步的细节:http://msdn.microsoft.com/en-us/library/aa370543(v = VS.85).aspx