wix - 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
解决方案
推荐阅读
- django - 用于创建和更新博客帖子的自定义表单会出现“找不到页面”错误
- java - 如何将 sqlite 数据库复制到内存?
- jenkins - 詹金斯的一个好的学习路径是什么?
- python - 将 for 循环中的多行合并到一个列表中
- windows - 需要更新指针的 Windows 或自定义消息是否可利用?
- angular - 如何为使用 Jest 的 NgRx 项目配置 Bazel?
- windows - 我应该在 Windows 2016 上使用 Docker EE 在 Windows 上使用哪些图像
- node.js - 将数据存储在 express、node、react 和 react native 中(cookies、sessions、localstorage、asyncstorage)
- angular - 选择时如何设置prime-ng日历的默认日期
- xamarin - 如何将 ReactiveUI 的 RoutedViewHost 与 Xamarin Forms Shell 一起使用?