首页 > 解决方案 > WIX customAction 复选框

问题描述

我正在尝试将 Checkbox 与 WIX 中的此示例一起使用

当我尝试使用复选框时没有任何反应

问候

<Binary Id="StringTransfer" SourceFile="$(var.SolutionDir)CustomAction2\bin\Release\CustomAction2.CA.dll" />
<CustomAction
  Id="INSTALLSETTINGS"
  BinaryKey="StringTransfer"
  DllEntry="CustomAction1"
  Execute="deferred"
  Impersonate="no"
  Return="check"
/>

<InstallExecuteSequence>
  <Custom Action="INSTALLSETTINGS" After="InstallInitialize">
    CHECKBOXINSTALLSETTINGS=1
  </Custom>
</InstallExecuteSequence>


    <Control Id="test" Type="CheckBox"  Width="125" Height="26" X="26" Y="124" Text="My text" Property="CHECKBOXINSTALLSETTINGS" CheckBoxValue="1" />

<Property Id="CHECKBOXINSTALLSETTINGS" Value="1"/>

<CustomAction()> 公共共享函数 CustomAction1(ByVal session As Session) As ActionResult

    My.Computer.Registry.SetValue("HKEY_CURRENT_USER\SOFTWARE\VB and VBA Program Settings\Test", "mintext", "0")

    session.Log("Begin CustomAction1")

    Return ActionResult.Success
End Function  

标签: wix

解决方案


推荐阅读