InstallShield CustomAction : How to load the managed dependency assemblies

后端 未结 4 1449
春和景丽
春和景丽 2020-12-21 02:51

I have a basic MSI InstallShield installation with a managed EXE custom action running from the Binary table. I tried a simple test that just runs a console and that works

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-21 03:21

    Custom Actions only extract a single file to a temporary location under a temporary name. For the dependency on the .dll to work, they need to both be extracted, and at least the .dll must have the expected name. Typically this is easiest to do by adding both to "setup files" and referencing [SUPPORTDIR]\your.exe for the custom action.

提交回复
热议问题