在我的托管代码签名中使用[Property]?基本MSI

时间:2022-12-23 07:31:03

I cant seem to figure out how to use my [MyProperty] property inside of the custom method signature. I have tried [MyProperty], "[MyProperty]", "MyProperty". ALl i am left with is the actual string being passed and NOT the value of the property. I have tried immediate execution and differed execution in various areas of the sequence but i have found no solution.

我似乎无法弄清楚如何在自定义方法签名中使用我的[MyProperty]属性。我试过[MyProperty],“[MyProperty]”,“MyProperty”。我留下的是传递的实际字符串,而不是属性的值。我已尝试立即执行并在序列的各个区域执行不同但我找不到解决方案。

I have also tried the "CustomActionData" method from here with no success. Anyone have a solution?

我也从这里尝试过“CustomActionData”方法但没有成功。有人有解决方案吗?

2 个解决方案

#1


0  

Check out how to build custom actions in C# for MSI installers.

查看如何在C#中为MSI安装程序构建自定义操作。

This shows how to get a DLL that will run in a standard MSI, no matter if you build it with Wix, InstallShield or Advanced Installer. It also shows how to get/set properties.

这显示了如何获得将在标准MSI中运行的DLL,无论您是使用Wix,InstallShield还是Advanced Installer构建它。它还显示了如何获取/设置属性。

Additional info:

附加信息:

  • try to use public properties and SecurePropertiesList
  • 尝试使用公共属性和SecurePropertiesList
  • only immediate custom actions can get/set a property
  • 只有立即自定义操作才能获取/设置属性

#2


0  

I figured it out, my post is here with the explanation

我想通了,我的帖子在这里有解释

#1


0  

Check out how to build custom actions in C# for MSI installers.

查看如何在C#中为MSI安装程序构建自定义操作。

This shows how to get a DLL that will run in a standard MSI, no matter if you build it with Wix, InstallShield or Advanced Installer. It also shows how to get/set properties.

这显示了如何获得将在标准MSI中运行的DLL,无论您是使用Wix,InstallShield还是Advanced Installer构建它。它还显示了如何获取/设置属性。

Additional info:

附加信息:

  • try to use public properties and SecurePropertiesList
  • 尝试使用公共属性和SecurePropertiesList
  • only immediate custom actions can get/set a property
  • 只有立即自定义操作才能获取/设置属性

#2


0  

I figured it out, my post is here with the explanation

我想通了,我的帖子在这里有解释