为什么regasm/regfile看起来不完整? [英] Why does regasm /regfile seem incomplete?
问题描述
我有一个.NET程序集,我需要在安装时进行注册.我注意到直接使用regasm
与通过regasm
的注册表脚本进行安装时,注册表有细微的差别.
I have a .NET assembly I need to register at install time. I'm noticing that the registry has subtle differences when regasm
is used directly versus being installed via regasm
's registry script.
这是我的考试:
我导出原始的HKCR配置单元,然后运行:regasm my.dll
I export the original HKCR hive, then run: regasm my.dll
从那里,我导出后续的HKCR配置单元,并比较差异.
From there, I export the subsequent HKCR hive and performance a diff.
然后我将该差异与regasm my.dll /regfile
有一些非常重要的条目是通过regasm my.dll
添加的,这些条目永远不会与regasm
命令的注册表文件输出一起添加. 为什么?
There are a couple very important entries that get added via regasm my.dll
that will never get added with the registry file output from the regasm
command. Why?
从安装的角度来看,我非常讨厌在安装过程中调用regasm
.我宁愿只运行此.reg脚本.我现在正在使用InstallShield,它在后台也缺少额外的注册表项(似乎它嵌入了用/regfile
标志输出的注册表更改).
From an install point-of-view, I'd very much hate to call regasm
during the install process. I'd rather just run this .reg script. I'm using InstallShield now, which under the hood is also missing the extra registry entries (it seems like it embeds the registry changes outputted with the /regfile
flag).