问题描述
我正在使用 WixUI_Mondo
集.我修改了 SetupTypeDlg
中的CompleteButton"按钮:
I'am using WixUI_Mondo
set. I modified "CompleteButton" button in the SetupTypeDlg
:
<Control Id="ServerButton" Type="PushButton" X="40" Y="120" Width="80" Height="17" ToolTip="!(loc.SetupTypeDlgServerButtonTooltip)" Text="!(loc.SetupTypeDlgServerButton)">
<Publish Property="WixUI_InstallMode" Value="InstallServer">1</Publish>
<Publish Property="SERVICE" Value="[SERVSTR]">1</Publish>
<Publish Property="ADDLOCAL" Value="Feature1,Feature2,Feature3">1</Publish>
</Control>
<Property Id="ADDLOCAL" Secure="yes"></Property>
当我按下 ServerButton
时,日志显示:
When I push ServerButton
the log says:
(CLIENT) MSI (c) (1C:88) [15:28:49:154]: PROPERTY CHANGE: Adding ADDLOCAL property. Its value is 'Feature1,Feature2,Feature3'.
(UNKNOWN) Действие 15:28:49: ServStrDlg. Dialog created
(UNKNOWN) Действие 15:28:53: ShortsDlg. Dialog created
(UNKNOWN) Действие 15:28:55: VerifyReadyDlg. Dialog created
(CLIENT) MSI (c) (1C:88) [15:28:55:966]: Note: 1: 2727 2:
(UNKNOWN) Действие закончено 15:28:56: WelcomeDlg. Код возврата 1.
(CLIENT) MSI (c) (1C:DC) [15:28:56:076]: Doing action: ProgressDlg
(UNKNOWN) Действие 15:28:56: ProgressDlg.
(UNKNOWN) Начало действия 15:28:56: ProgressDlg.
(UNKNOWN) Действие 15:28:56: ProgressDlg. Dialog created
(UNKNOWN) Действие закончено 15:28:56: ProgressDlg. Код возврата 1.
(CLIENT) MSI (c) (1C:DC) [15:28:56:091]: Doing action: ExecuteAction
(UNKNOWN) Действие 15:28:56: ExecuteAction.
(UNKNOWN) Начало действия 15:28:56: ExecuteAction.
(CLIENT) MSI (c) (1C:DC) [15:28:56:091]: PROPERTY CHANGE: Adding SECONDSEQUENCE property. Its value is '1'.
(CLIENT) MSI (c) (1C:DC) [15:28:56:091]: Grabbed execution mutex.
(CLIENT) MSI (c) (1C:DC) [15:28:56:091]: Incrementing counter to disable shutdown. Counter after increment: 0
(CLIENT) MSI (c) (1C:DC) [15:28:56:091]: Switching to server: NETFRAMEWORK40CLIENT="#1"INSTALLLOCATION="some dir" TARGETDIR="C:\"
MANUFACTURERDIR="C:\Program Files\..\" CURRENTDIRECTORY="C:\.." CLIENTUILEVEL="0" CLIENTPROCESSID="6684" USERNAME="User" COMPANYNAME=".."
SOURCEDIR=".." ACTION="INSTALL" EXECUTEACTION="INSTALL" SECONDSEQUENCE="1" ROOTDRIVE="C:\" INSTALLLEVEL="1" ADDLOCAL=Feature4,Feature5,Feature6
Feature1,Feature2,Feature3 的级别超过 3.不知道为什么它通过 INSTALLLEVEL="1"
.
Levels of Feature1,Feature2,Feature3 are more than 3. Can't figure out why it's passing INSTALLLEVEL="1"
.
UPD:
我做了下一个更改,结果是一样的.安装程序正在修改客户端的 INSTALLLEVEL、ADDLOCAL 属性的值.在服务器端:INSTALLLEVEL=11,ADDLOCAL 包含具有Level"属性
I made next changes, the result is same. The installer is modifying values of INSTALLLEVEL,ADDLOCAL properties on client-side. On server-side: INSTALLLEVEL=11,ADDLOCAL consists of features with "Level" attribute<=11.
<Control Id="ServerButton" Type="PushButton" X="40" Y="120" Width="80" Height="17" ToolTip="!(loc.SetupTypeDlgServerButtonTooltip)" Text="!(loc.SetupTypeDlgServerButton)">
<Publish Property="WixUI_InstallMode" Value="InstallServer">1</Publish>
<Publish Event="SetInstallLevel" Value="11">1</Publish>
<Publish Property="SERVICE" Value="[SERVSTR]">1</Publish>
<Publish Property="ADDLOCAL" Value="Feature1,Feature2,Feature3">1</Publish>
</Control>
推荐答案
我读了这个 文章 多次,终于发现:我必须发布 Event='AddLocal'
而不是 Property
.非常感谢 Yan 您的时间.这是工作代码:
I read this article many times and finally found: i have to publish Event='AddLocal'
not a Property
. Thank's, Yan, for your time very much. Here is working code:
<Control Id="ServerButton" Type="PushButton" X="40" Y="120" Width="80" Height="17" ToolTip="!(loc.SetupTypeDlgServerButtonTooltip)" Text="!(loc.SetupTypeDlgServerButton)">
<Publish Property="WixUI_InstallMode" Value="InstallServer">1</Publish>
<Publish Property="SERVICE" Value="[SERVSTR]">1</Publish>
<Publish Event="AddLocal" Value="ALL">1</Publish>
<Publish Event="Remove" Value="Feature4">1</Publish>
<Publish Event="Remove" Value="Feature5">1</Publish>
<Publish Event="Remove" Value="Feature6">1</Publish>
</Control>
我在下一个对话框的返回"按钮中添加了一个事件:
And I added an event to the "Back" button of the next dialog:
<Control Id="Back" Type="PushButton" X="192" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)">
<Publish Event="SetInstallLevel" Value="3">WixUI_InstallMode="InstallServer"</Publish>
</Control>
这篇关于如果按下按钮,如何设置将安装的功能列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!