<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>许泽博Zblog</title><link>https://www.xuzebo.net.cn/blog/</link><description>我的人生旅程记录</description><generator>RainbowSoft Studio Z-Blog 2.2 Prism Build 140101</generator><language>zh-CN</language><pubDate>Sun, 22 Mar 2026 19:31:35 +0800</pubDate><item><title>循环记载-自用</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=430</link><pubDate>Thu, 30 Oct 2025 13:11:11 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=430</guid><description><![CDATA[<p>本界面加ADODC，自加载实体表</p><p>Dim iEntity,value,EntityNR</p><p>Dim listcout</p><p>Dim ProNrInt&nbsp;</p><p>&nbsp; &nbsp; With ScreenItems(&quot;Adodc1&quot;)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; .ConnectionString = &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\Scada6\scada6_$d\YiLi_DataBase\DataBase.mdb;Persist Security Info=False&quot;&nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; .RecordSource = &quot;SELECT * FROM tbl实体表 ORDER BY 名称&quot;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; .Refresh</p><p>&nbsp; &nbsp; &nbsp; &nbsp; If Not .Recordset.BOF Then .Recordset.Movefirst&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Do Until .Recordset.EOF&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProNrInt = Int(.Recordset.Fields(0))&nbsp;</p><p>&#39;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HMIRuntime.Trace &quot;ProNrInt: &quot;&nbsp; &amp; ProNrInt &amp; vbCrlf&nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;ListEntity&quot;).NumberLines = ProNrInt&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;ListEntity&quot;).Index = ProNrInt&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;ListEntity&quot;).Text = .Recordset.Fields(1) &#39;&amp; .Recordset.Fields(2)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Recordset.Movenext&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Loop</p><p>&nbsp; &nbsp; &nbsp; &nbsp; .Recordset.Close&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; End With</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; EntityNR=1</p><p>&nbsp; &nbsp; listcout=ScreenItems(&quot;ListEntity&quot;).NumberLines</p><p>&nbsp; &nbsp; HMIRuntime.Trace&quot;总数量&quot; &amp; listcout &amp; vbCrlf</p><p>&nbsp; &nbsp; &nbsp; &nbsp; For value = 1 To listcout</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;ListEntity&quot;).Index = value</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iEntity=ScreenItems(&quot;ListEntity&quot;).Text</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Len(iEntity)&lt;4 And IsNumeric(iEntity) Then</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#39;ScreenItems(&quot;EntryNR&quot;&amp;EntityNR).BackColor=RGb(218,218,218)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#39;ScreenItems(&quot;EntryName&quot;&amp;EntityNR).BackColor=RGb(218,218,218)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ScreenItems(&quot;EntryNR&quot;&amp;EntityNR).Text = value</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntryName&quot;&amp;EntityNR).Text = ScreenItems(&quot;ListEntity&quot;).Text</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntryNR&quot;&amp;EntityNR).Visible = True</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ScreenItems(&quot;EntryName&quot;&amp;EntityNR).Visible = True</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EntityNR=EntityNR + 1</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Next</p><p><br/></p><p>改为使用主界面已加载的实体表</p><p>Dim iEntity,value,i</p><p>Dim listcout</p><p>Dim ProNrInt&nbsp;</p><p><br/></p><p>&nbsp; &nbsp; listcout=parent.parent.ScreenItems(&quot;ListEntity&quot;).NumberLines</p><p>&nbsp; &nbsp; HMIRuntime.Trace&quot;总数量&quot; &amp; listcout &amp; vbCrlf</p><p>&nbsp; &nbsp; &nbsp; &nbsp; For i = 1 To listcout</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parent.parent.ScreenItems(&quot;ListEntity&quot;).Index = i</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iEntity=parent.parent.ScreenItems(&quot;ListEntity&quot;).Text</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Len(iEntity)&lt;4 And IsNumeric(iEntity) Then</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntityNR&quot;&amp;i).BackColor=RGb(218,218,218)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntityName&quot;&amp;i).BackColor=RGb(218,218,218)</p><p>End If</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntityNR&quot;&amp;i).Text = i</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntityName&quot;&amp;i).Text = iEntity</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntityNR&quot;&amp;i).Visible = True</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ScreenItems(&quot;EntityName&quot;&amp;i).Visible = True</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Next</p>]]></description><category>自控</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=430#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=430</wfw:commentRss></item><item><title>VB脚本-自用</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=429</link><pubDate>Wed, 29 Oct 2025 10:56:07 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=429</guid><description><![CDATA[<p><span style="text-wrap-mode: nowrap;">&nbsp;Dim iNum</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; iNum =Mid(Item.Parent.Parent.CaptionText,2,1)</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; If iNum = &quot;0&quot; Or iNum = &quot;2&quot; Or iNum = &quot;4&quot; Or iNum = &quot;5&quot; Or iNum = &quot;6&quot; Or iNum = &quot;7&quot; Then&nbsp;</span></p><p>	<span style="text-wrap-mode: nowrap;">&nbsp; &nbsp;Dim&nbsp; value&nbsp;</span></p><p>	<span style="text-wrap-mode: nowrap;">&nbsp; &nbsp;Dim sPrgName&nbsp;&nbsp;</span></p><p>	<span style="text-wrap-mode: nowrap;">&nbsp; &nbsp;sPrgName = Mid(Item.Parent.Parent.CaptionText,2,4)</span></p><p>	<span style="text-wrap-mode: nowrap;">&nbsp; &nbsp;value = CheckLineState(sPrgName)&nbsp;&nbsp;</span></p><p>	<span style="text-wrap-mode: nowrap;">&nbsp; &nbsp;If Not value Then Exit Sub&nbsp;&nbsp;</span></p><p>	<span style="text-wrap-mode: nowrap;">End If&nbsp; &nbsp;&nbsp;</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; WritePrgOperiteRecord Item.ObjectName,128,0&nbsp;&nbsp;</span></p><p><span style="text-wrap-mode: nowrap;">============================================================================</span></p><p><span style="text-wrap-mode: nowrap;">Function CheckLineState(sEntityName)&nbsp;</span></p><p>	<span style="text-wrap-mode: nowrap;">Dim sPrgLineC</span></p><p>	<span style="text-wrap-mode: nowrap;">Dim sPrgLineCA</span></p><p>	<span style="text-wrap-mode: nowrap;">Dim sUserGroup</span></p><p>	</p><p>	<span style="text-wrap-mode: nowrap;"> sUserGroup = HMIRuntime.Tags(&quot;@NOTP::$WorkPost&quot;).Read&nbsp;</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp;If sUserGroup=&quot;管理员&quot;&nbsp; Then</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp; CheckLineState =True&nbsp;</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp;Exit Function&nbsp;</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp;End If</span></p><p>	<span style="text-wrap-mode: nowrap;"> sPrgLineC = HMIRuntime.Tags(&quot;@NOTP::L&quot; &amp; sEntityName &amp; &quot;.TankCauTime&quot;).Read&nbsp;</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp;sPrgLineCA = HMIRuntime.Tags(&quot;@NOTP::L&quot; &amp; sEntityName &amp; &quot;.TankCATime&quot;).Read</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp;If sPrgLineC &lt;= 0 Or sPrgLineCA &lt;= 0 Then</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp;CheckLineState = False</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp;MsgBox &quot;清洗时间超时&quot;,,&quot;提示&quot;</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp;Else</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp; &nbsp;CheckLineState =True</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp; &nbsp;End If</span></p><p><span style="text-wrap-mode: nowrap;">&nbsp; &nbsp;&nbsp;</span></p><p><span style="text-wrap-mode: nowrap;">End Function&nbsp;</span></p><p><br/></p>]]></description><category>自控</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=429#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=429</wfw:commentRss></item><item><title>在 Windows 上安装Node-RED</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=428</link><pubDate>Tue, 19 Aug 2025 08:47:21 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=428</guid><description><![CDATA[<p>从官网翻译搬运的内容，原文为英文，仅为方便安装使用</p><p><br/></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;此页面提供了在Microsoft Windows环境中设置Node-RED的详细说明。这些说明适用于Windows 10。它们也可能适用于Windows 7和Windows Server 2008R2及更高版本，但由于缺乏当前支持，不建议使用它们。</span></p><div class="doc-callout" style="box-sizing: border-box; margin: 10px 0px; background: rgb(255, 255, 224); padding: 10px; border-radius: 3px; font-size: 0.85em; border: 1px solid rgb(190, 154, 154); color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; text-wrap-mode: wrap;"><em style="box-sizing: border-box;">注意</em><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;: 以下一些说明提到&quot;命令提示符&quot;。在这些地方，它指的是Windows cmd或PowerShell终端外壳。推荐在所有较新的Windows版本上使用PowerShell</span><a href="https://support.microsoft.com/en-us/help/4027690/windows-powershell-is-replacing-command-prompt" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">，因为这能让你访问更接近Linux/ Mac的命令和文件夹名称。</a><span style="box-sizing: border-box; vertical-align: inherit;"></span></div><h3 id="quick-start" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.563em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">快速开始</span></h3><h4 id="1-install-nodejs" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">1. 安装Node.js</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">从官方</span><a href="https://nodejs.org/en/" target="_blank" title="" textvalue="Node.js主页">Node.js主页</a><span style="box-sizing: border-box; vertical-align: inherit;">下载最新的LTS版本的Node.js。它将为您提供最适合您系统的版本。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">运行下载的MSI文件。安装Node.js需要本地管理员权限；如果你不是本地管理员，安装时将要求输入管理员密码。安装时接受默认设置。安装完成后，关闭任何打开的命令提示符并重新打开，以确保新的环境变量被正确读取。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">一旦安装后，打开命令提示符并运行以下命令以确保Node.js和npm已正确安装。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">使用PowerShell:</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">node --version; npm --version</code></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">使用命令：</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">node --version &amp;&amp; npm --version</code></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">你应该会收到类似于以下内容的输出：</span></p><div class="language-plaintext highlighter-rouge" style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><div class="highlight" style="box-sizing: border-box;"><pre class="highlight" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; text-wrap-mode: wrap; overflow-wrap: break-word; padding: 10px; background-color: rgb(86, 72, 72); color: rgb(238, 238, 238); border-radius: 3px;">v18.15.09.5.0</pre></div></div><h4 id="2-install-node-red" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">2. 安装Node-RED</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">将 Node-RED 安装为全局模块会将命令&nbsp;</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">node-red</code><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;添加到你的系统路径中。在命令提示符下执行以下操作：</span></p><div class="language-plaintext highlighter-rouge" style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><div class="highlight" style="box-sizing: border-box;"><pre class="highlight" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; text-wrap-mode: wrap; overflow-wrap: break-word; padding: 10px; background-color: rgb(86, 72, 72); color: rgb(238, 238, 238); border-radius: 3px;">npm&nbsp;install&nbsp;-g&nbsp;--unsafe-perm&nbsp;node-red</pre></div></div><h4 id="3-run-node-red" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">3. 运行 Node-RED</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">一旦安装完成，你就可以</span><a href="https://nodered.org/docs/getting-started/windows#running-on-windows" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">运行Node-RED</a><span style="box-sizing: border-box; vertical-align: inherit;">。</span></p><hr style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"/><h3 id="alternative-installations-on-windows" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.563em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">在 Windows 上的替代安装</span></h3><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">在本节中，我们为您提供在Windows上安装Node.js、npm和Windows Build Tools的替代安装方式，这些工具是安装Node-RED所需的一些Node的。</span></p><div class="doc-callout" style="box-sizing: border-box; margin: 10px 0px; background: rgb(255, 255, 224); padding: 10px; border-radius: 3px; font-size: 0.85em; border: 1px solid rgb(190, 154, 154); color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; text-wrap-mode: wrap;"><em style="box-sizing: border-box;">注意</em><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;: 你不应该</span><em style="box-sizing: border-box;">使用</em><span style="box-sizing: border-box; vertical-align: inherit;">管理员（也称为“提升”）命令提示符，除非特别指示。在学习Node-RED和Node.js时，你可能会非常熟悉命令提示符，并且阅读一些</span><a href="https://docs.microsoft.com/en-us/powershell/scripting/getting-started/fundamental/using-windows-powershell" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">微软关于PowerShell的文章</a><span style="box-sizing: border-box; vertical-align: inherit;">是值得的。&nbsp;</span><a href="http://powershelltutorial.net/" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">PowerShell教程</a><span style="box-sizing: border-box; vertical-align: inherit;">和</span><a href="https://www.red-gate.com/simple-talk/sysadmin/powershell/powershell-one-liners-help,-syntax,-display-and--files/" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">PowerShell One-Liners</a><span style="box-sizing: border-box; vertical-align: inherit;">网站也可能有所帮助。</span></div><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">在Windows上标准安装Node.js需要本地管理员权限。从官方</span><a href="https://nodejs.org/en/" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">Node.js主页</a><span style="box-sizing: border-box; vertical-align: inherit;">下载合适的版本。它会向您推荐最佳版本。虽然在64位Windows上可以使用32位或64位版本，但建议使用64位版本的Node。如果由于某些原因，您需要不同的安装，您可以使用</span><a href="https://nodejs.org/en/download/" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">下载页面</a><span style="box-sizing: border-box; vertical-align: inherit;">。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">有俩个安装Node.js的MSI安装程序的潜在有用替代方案。</span></p><ol style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);" class=" list-paddingleft-2"><li><p style="box-sizing: border-box;"><span style="box-sizing: border-box; vertical-align: inherit;">使用 Chocolatey 包管理器</span></p><p style="box-sizing: border-box;"><a href="https://chocolatey.org/" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">Chocolatey</a><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;是一个类似于 Linux 上的 APT 或 yum 以及 Macintosh 平台上的 brew 的 Windows 包管理器。如果你已经在使用 Chocolatey，你可能想使用这个工具来安装 Node.js（例如，使用&nbsp;</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">nodejs-lts</code><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;包）。然而，请注意，许多包的管理是不确定的，这些包可能使用不同于上述提到的文件夹位置。</span></p></li><li><p style="box-sizing: border-box;"><span style="box-sizing: border-box; vertical-align: inherit;">使用Node版本管理器</span></p><p style="box-sizing: border-box;"><span style="box-sizing: border-box; vertical-align: inherit;">使用Node.js版本管理器，例如</span><a href="https://github.com/coreybutler/nvm-windows" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">nvm-windows</a><span style="box-sizing: border-box; vertical-align: inherit;">，如果你在进行Node.js开发并需要测试不同版本的话，将非常有帮助。请注意，当你切换使用的Node版本时，你可能需要重新安装全局包，并且可能需要重新安装本地包。</span></p></li></ol><div class="doc-callout" style="box-sizing: border-box; margin: 10px 0px; background: rgb(255, 255, 224); padding: 10px; border-radius: 3px; font-size: 0.85em; border: 1px solid rgb(190, 154, 154); color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; text-wrap-mode: wrap;"><em style="box-sizing: border-box;">注意</em><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;: Microsoft维护了一个使用Microsoft Chakra Core JavaScript引擎而不是V8的Node的平行版本。这不推荐用于Node-RED，因为它未经测试。</span></div><h4 id="npm-on-windows" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">npm 在 Windows 上</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">当您安装Node.js时，您也在安装npm包管理器。您可能会在网上看到一些建议安装比Node.js发行版附带的更新版本npm的说明。&nbsp;</span><strong style="box-sizing: border-box;">不推荐</strong><span style="box-sizing: border-box; vertical-align: inherit;">这样做，因为很容易后来使用不兼容的版本。Node.js发行版非常规律，这足以使npm保持更新。</span></p><h4 id="sharing-node-red-between-users" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">在用户之间共享Node-RED</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">Node.js 被安装到&nbsp;</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">Program Files</code><span style="box-sizing: border-box; vertical-align: inherit;"><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;文件夹，这是你所期望的。然而，如果你使用&nbsp;</span><span style="box-sizing: border-box; vertical-align: inherit;">安装全局&nbsp;</span></span><em style="box-sizing: border-box;">包</em><span style="box-sizing: border-box; vertical-align: inherit;"><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;像 Node-RED，它被安装到&nbsp;</span><span style="box-sizing: border-box; vertical-align: inherit;">文件夹 (</span><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;使用 cmd) 对于&nbsp;</span><strong style="box-sizing: border-box;"><span style="box-sizing: border-box; vertical-align: inherit;">当前</span></strong><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;用户。如果你在一个有多用户登录的 PC 或服务器上使用管理员登录而不是将要运行 Node 应用程序（如 Node-RED）的用户的登录进行安装，这就不那么有帮助了。</span></span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">npm -g</code><span style="box-sizing: border-box; vertical-align: inherit;"></span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">$env:APPDATA\npm</code><span style="box-sizing: border-box; vertical-align: inherit;"></span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">%APPDATA%\npm</code><span style="box-sizing: border-box; vertical-align: inherit;"></span><strong style="box-sizing: border-box;"><span style="box-sizing: border-box; vertical-align: inherit;"></span></strong><span style="box-sizing: border-box; vertical-align: inherit;"></span></p><div class="doc-callout" style="box-sizing: border-box; margin: 10px 0px; background: rgb(255, 255, 224); padding: 10px; border-radius: 3px; font-size: 0.85em; border: 1px solid rgb(190, 154, 154); color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; text-wrap-mode: wrap;"><em style="box-sizing: border-box;">注意</em><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;: 要查看像&nbsp;</span><code style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">%APPDATA%</code><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;这样的文件夹名称翻译成什么，你可以简单地将其输入到Windows文件资源管理器的地址栏中。或者，在PowerShell中，输入命令&nbsp;</span><code style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">cd $Env:APPDATA</code><span style="box-sizing: border-box; vertical-align: inherit;">(</span><code style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">cd %APPDATA%</code><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;使用cmd)。</span></div><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">要解决此问题，请给该文件夹的其他用户分配权限，并确保该文件夹包含在他们的</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">path</code><span style="box-sizing: border-box; vertical-align: inherit;">用户环境变量中。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">或者，将全局文件位置更改为其他用户可以访问的位置。确保使用将运行Node-RED的用户进行这些更改。例如，将位置更改为</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">$env:ALLUSERSPROFILE\npmglobal</code><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;使用PowerShell：</span></p><div class="language-plaintext highlighter-rouge" style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><div class="highlight" style="box-sizing: border-box;"><pre class="highlight" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; text-wrap-mode: wrap; overflow-wrap: break-word; padding: 10px; background-color: rgb(86, 72, 72); color: rgb(238, 238, 238); border-radius: 3px;">mkdir&nbsp;$env:ALLUSERSPROFILE\npmglobalnpm&nbsp;config&nbsp;set&nbsp;prefix&nbsp;$env:ALLUSERSPROFILE\npmglobal</pre></div></div><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">然后您还需要更改npm缓存文件夹：</span></p><div class="language-plaintext highlighter-rouge" style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><div class="highlight" style="box-sizing: border-box;"><pre class="highlight" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; text-wrap-mode: wrap; overflow-wrap: break-word; padding: 10px; background-color: rgb(86, 72, 72); color: rgb(238, 238, 238); border-radius: 3px;">mkdir&nbsp;$env:ALLUSERSPROFILE\npmglobal-cachenpm&nbsp;config&nbsp;set&nbsp;cache&nbsp;$env:ALLUSERSPROFILE\npmglobal-cache&nbsp;--global</pre></div></div><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">如果使用上述更改，您可以将新的</span><em style="box-sizing: border-box;">前缀</em><span style="box-sizing: border-box; vertical-align: inherit;">文件夹添加到</span><em style="box-sizing: border-box;">PATH</em><span style="box-sizing: border-box; vertical-align: inherit;">系统变量，并从用户的Path变量中删除旧文件夹。要更改PATH环境变量，请在开始菜单或Cortana中输入</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">environment</code><span style="box-sizing: border-box; vertical-align: inherit;">，然后选择</span><em style="box-sizing: border-box;">编辑环境变量</em><span style="box-sizing: border-box; vertical-align: inherit;">。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">对于每个运行Node-RED的用户，请检查其他用户的上述设置是否正确。</span></p><h4 id="installing-nodejs-windows-build-tools" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">安装Node.js Windows构建工具</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">许多 Node.js 模块在 Node-RED 或已安装的节点中使用了二进制组件，这些组件在 Windows 上工作之前需要编译。要使 npm 在 Windows 平台上编译二进制文件，请以管理员身份使用命令提示符安装 windows-build-tools 模块</span><a href="https://technet.microsoft.com/en-gb/library/cc947813%28v=ws.10%29.aspx" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">：</a><span style="box-sizing: border-box; vertical-align: inherit;"></span></p><div class="language-plaintext highlighter-rouge" style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><div class="highlight" style="box-sizing: border-box;"><pre class="highlight" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; text-wrap-mode: wrap; overflow-wrap: break-word; padding: 10px; background-color: rgb(86, 72, 72); color: rgb(238, 238, 238); border-radius: 3px;">npm&nbsp;install&nbsp;--global&nbsp;--production&nbsp;windows-build-tools</pre></div></div><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">如果您希望使用内置的Python v2.7安装，请使用以下命令：</span></p><div class="language-plaintext highlighter-rouge" style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><div class="highlight" style="box-sizing: border-box;"><pre class="highlight" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; text-wrap-mode: wrap; overflow-wrap: break-word; padding: 10px; background-color: rgb(86, 72, 72); color: rgb(238, 238, 238); border-radius: 3px;">npm&nbsp;install&nbsp;--global&nbsp;--production&nbsp;--add-python-to-path&nbsp;windows-build-tools</pre></div></div><div class="doc-callout" style="box-sizing: border-box; margin: 10px 0px; background: rgb(255, 255, 224); padding: 10px; border-radius: 3px; font-size: 0.85em; border: 1px solid rgb(190, 154, 154); color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; text-wrap-mode: wrap;"><em style="box-sizing: border-box;">笔记</em><span style="box-sizing: border-box; vertical-align: inherit;">:</span><ul style="box-sizing: border-box;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box; vertical-align: inherit;">并非所有 Node.js 模块在 Windows 下都能正常工作，请仔细检查安装输出是否有任何错误。</span></p></li><li><p><span style="box-sizing: border-box; vertical-align: inherit;">在安装过程中，可能会有一些错误由</span><code style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">node-gyp</code><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;命令报告。这些通常是</span><em style="box-sizing: border-box;">非致命</em><span style="box-sizing: border-box; vertical-align: inherit;">错误，与需要编译器来构建的可选依赖项有关。</span><strong style="box-sizing: border-box;">Node-RED在没有这些可选依赖项的情况下也能工作</strong><span style="box-sizing: border-box; vertical-align: inherit;">。如果你遇到致命错误，首先检查你是否安装了</span><code style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">windows-build-tools</code><span style="box-sizing: border-box; vertical-align: inherit;">模块，并且是否关闭并重新打开你的命令提示符窗口。</span></p></li></ul></div><h3 id="running-on-windows" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.563em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">在 Windows 上运行</span></h3><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">一旦安装，运行Node-RED的简单方法是使用命令提示符中的</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">node-red</code><span style="box-sizing: border-box; vertical-align: inherit;">命令： 如果你将Node-RED安装为全局npm包，你可以使用Node-RED命令：</span></p><div class="language-plaintext highlighter-rouge" style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><div class="highlight" style="box-sizing: border-box;"><pre class="highlight" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; text-wrap-mode: wrap; overflow-wrap: break-word; padding: 10px; background-color: rgb(86, 72, 72); color: rgb(238, 238, 238); border-radius: 3px;">C:&gt;node-red</pre></div></div><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">这将把Node-RED的日志输出到终端。为了使Node-RED继续运行，您必须保持终端打开。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">请注意，运行Node-RED将在你的</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">%HOMEPATH%</code><span style="box-sizing: border-box; vertical-align: inherit;">文件夹中创建一个名为</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">.node-red</code><span style="box-sizing: border-box; vertical-align: inherit;">的新文件夹。这是你的</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">userDir</code><span style="box-sizing: border-box; vertical-align: inherit;">文件夹，可以将其视为当前用户Node-RED配置的主文件夹。在文档中，你经常看到它被提到为</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">~/.node-red</code><span style="box-sizing: border-box; vertical-align: inherit;">。</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">~</code><span style="box-sizing: border-box; vertical-align: inherit;">是Unix-like系统中用户主文件夹的缩写。如果你推荐使用PowerShell作为命令行工具，可以使用相同的引用。如果你使用的是较旧的</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">cmd</code><span style="box-sizing: border-box; vertical-align: inherit;">外壳，那将无法工作。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">现在你可以创建你的</span><a href="https://nodered.org/docs/tutorials/first-flow" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">第一个流程</a><span style="box-sizing: border-box; vertical-align: inherit;">。</span></p><h4 id="using-pm2" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">使用 PM2</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">如果您正在使用 Windows 开发 Node-RED 流或节点，您可能会发现使用&nbsp;</span><a href="http://pm2.keymetrics.io/" style="box-sizing: border-box; text-decoration-line: none; color: rgb(170, 68, 68);">PM2</a><span style="box-sizing: border-box; vertical-align: inherit;">&nbsp;来运行 Node-RED 会很有帮助。这可以配置为在文件更改时自动重启，始终保持 Node-RED 运行并管理日志输出。</span></p><h4 id="run-node-red-on-startup" style="box-sizing: border-box; font-family: &quot;Roboto Slab&quot;; font-weight: normal; font-size: 1.25em; margin: 1.5em 0px 0.8em -0.3em; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">在启动时运行Node-RED</span></h4><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">如果你想在 Windows 上使用 Node-RED 作为生产平台，你将需要设置一个 Windows 任务计划程序任务。为此：</span></p><ol style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box; vertical-align: inherit;">转到开始菜单，输入“任务计划程序”，然后点击结果。</span></p></li><li><p><span style="box-sizing: border-box; vertical-align: inherit;">点击右侧菜单中的“创建任务...”。按照步骤创建一个新任务。</span></p></li></ol><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">确保您使用的是用于设置和首次运行Node-RED的用户登录。您可以使用“系统启动时”触发器，以便在系统启动时总是运行Node-RED。使用“启动程序”操作，并将详细信息设置为</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">C:\Users\&lt;user&gt;\AppData\Roaming\npm\node-red.cmd</code><span style="box-sizing: border-box; vertical-align: inherit;">（将</span><code class="language-plaintext highlighter-rouge" style="box-sizing: border-box; font-family: &quot;Ubuntu Mono&quot;, monospace; color: rgb(85, 51, 51); background: rgb(243, 231, 231); padding: 2px 4px; border-radius: 2px;">&lt;user&gt;</code><span style="box-sizing: border-box; vertical-align: inherit;">替换为您的实际用户名）。</span></p><p style="box-sizing: border-box; color: rgb(85, 85, 85); font-family: &quot;Open Sans&quot;, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; vertical-align: inherit;">您可能希望确保只有在网络可用时才启动。您还可能希望在作业失败时重新启动。也许每分钟重新启动，但最多只有3次 - 如果到那时还无法启动，错误是致命的，需要其他干预。您可以通过查看事件日志来检查失败。如果您在这种方式下运行时需要访问日志，您应该修改node-red.cmd文件将标准和错误输出重定向到文件（创建一个替代启动文件会更好，这样在更新时不会被覆盖）。</span></p><p><br/></p>]]></description><category>日记</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=428#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=428</wfw:commentRss></item><item><title>安装Intouch2017失败解决</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=427</link><pubDate>Wed, 19 Feb 2025 19:36:57 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=427</guid><description><![CDATA[<article data-content="[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;3060-1621846615933&quot;,&quot;name&quot;:&quot;heading&quot;,&quot;data&quot;:{&quot;level&quot;:&quot;h1&quot;,&quot;style&quot;:{}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;p5PQ-1621846617594&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;问题过程&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;x7qx-1739964683163&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;bkhx-1739964683162&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;在安装Intouch2017时，安装到用户协议界面，不能显示用户协议，也不能点击下一步！&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;5h60-1739964956751&quot;,&quot;name&quot;:&quot;image&quot;,&quot;data&quot;:{&quot;version&quot;:1,&quot;url&quot;:&quot;https://note.youdao.com/yws/res/d/WEBRESOURCE06860e1084fd7064250d52710bf9b0bd&quot;,&quot;width&quot;:458,&quot;height&quot;:341,&quot;fromIdentity&quot;:&quot;&quot;},&quot;nodes&quot;:[],&quot;state&quot;:{&quot;loading&quot;:false,&quot;renderSource&quot;:&quot;https://note.youdao.com/yws/res/d/WEBRESOURCE06860e1084fd7064250d52710bf9b0bd&quot;,&quot;initialSize&quot;:{&quot;width&quot;:1492,&quot;height&quot;:1120}}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;vYHl-1739964705386&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;UN7u-1739964705385&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;询问客服时由于系统&quot;,&quot;marks&quot;:[]}]},{&quot;type&quot;:&quot;inline&quot;,&quot;id&quot;:&quot;q5uO-1739963867183&quot;,&quot;name&quot;:&quot;link&quot;,&quot;data&quot;:{&quot;href&quot;:&quot;https://support.microsoft.com/zh-cn/topic/kb5022083-%E5%9F%BA%E4%BA%8E-wpf-%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%98%BE%E7%A4%BA-xps-%E6%96%87%E6%A1%A3%E7%9A%84%E6%96%B9%E5%BC%8F%E5%8F%91%E7%94%9F%E5%8F%98%E5%8C%96-a4ae4fa4-bc58-4c37-acdd-5eebc4e34556&quot;},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;MbF2-1739963867182&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;升级补丁导致&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;underline&quot;},{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#0366d6&quot;}]}]}]},{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;ZKX5-1739963867186&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;PhC2-1739964080529&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;Mlb0-1739964080527&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;剑维官方给的文档是安装补丁&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;kb5022083&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Arial&quot;}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;13Xl-1739963847686&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;d3lA-1739963847679&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;&nbsp;引用巨硬官网&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;QsoB-1739963918719&quot;,&quot;name&quot;:&quot;quote&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;8ZoX-1739963910515&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;niU5-1739963910514&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;使用表结构、情节提要或超链接等结构或语义元素的&nbsp;XPS&nbsp;文档可能无法在基于&nbsp;WPF&nbsp;的阅读器中正确显示。&nbsp;此外，当&nbsp;XPS&nbsp;文档加载到基于&nbsp;WPF&nbsp;的阅读器中时，某些内联图像可能无法正确显示，或者可能发生空引用异常。&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#1e1e1e&quot;},{&quot;type&quot;:&quot;backgroundColor&quot;,&quot;value&quot;:&quot;rgb(255,&nbsp;255,&nbsp;255)&quot;},{&quot;type&quot;:&quot;fontSize&quot;,&quot;value&quot;:16},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Arial&quot;}]}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;Jef1-1739963924294&quot;,&quot;name&quot;:&quot;heading&quot;,&quot;data&quot;:{&quot;level&quot;:&quot;h1&quot;,&quot;style&quot;:{}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;ERde-1739963924293&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;解决方案&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#1e1e1e&quot;},{&quot;type&quot;:&quot;backgroundColor&quot;,&quot;value&quot;:&quot;rgb(255,&nbsp;255,&nbsp;255)&quot;},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Arial&quot;}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;ZHjM-1739963971665&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;textIndent&quot;:28}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;kpGq-1739963971664&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;Microsoft&nbsp;确定了此问题的兼容性解决方法，并制作了一个&nbsp;PowerShell&nbsp;脚本来解决此问题。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;EPgE-1739963971667&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;fotY-1739963971666&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;若要安装兼容性解决方案，请按照下列步骤操作。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;NMj1-1739963971669&quot;,&quot;name&quot;:&quot;list-item&quot;,&quot;data&quot;:{&quot;listId&quot;:&quot;4lab-1739963971703&quot;,&quot;listLevel&quot;:1,&quot;listType&quot;:&quot;ordered&quot;,&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;mCJC-1739963971668&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;下载&nbsp;&quot;,&quot;marks&quot;:[]}]},{&quot;type&quot;:&quot;inline&quot;,&quot;id&quot;:&quot;hfzx-1739963971646&quot;,&quot;name&quot;:&quot;link&quot;,&quot;data&quot;:{&quot;href&quot;:&quot;https://download.microsoft.com/download/0/9/c/09cf661b-6ffb-498e-a031-f75105cdfba0/kb5022083-compat.ps1&quot;},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;b4xc-1739963971671&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;PowerShell&nbsp;脚本&quot;,&quot;marks&quot;:[]}]}]}],&quot;state&quot;:{&quot;index&quot;:1}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;a9tc-1739963971674&quot;,&quot;name&quot;:&quot;list-item&quot;,&quot;data&quot;:{&quot;listId&quot;:&quot;4lab-1739963971703&quot;,&quot;listLevel&quot;:1,&quot;listType&quot;:&quot;ordered&quot;,&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;NHth-1739963971673&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;以管理员身份打开&nbsp;PowerShell&nbsp;提示符&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{&quot;index&quot;:2}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;QlYp-1739963971676&quot;,&quot;name&quot;:&quot;list-item&quot;,&quot;data&quot;:{&quot;listId&quot;:&quot;4lab-1739963971703&quot;,&quot;listLevel&quot;:1,&quot;listType&quot;:&quot;ordered&quot;,&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;YtJb-1739963971675&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;在提示符中，导航到下载脚本的目录&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{&quot;index&quot;:3}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;mrcs-1739963971678&quot;,&quot;name&quot;:&quot;list-item&quot;,&quot;data&quot;:{&quot;listId&quot;:&quot;4lab-1739963971703&quot;,&quot;listLevel&quot;:1,&quot;listType&quot;:&quot;ordered&quot;,&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;20YQ-1739963971677&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;在提示符内运行命令：&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;.\\kb5022083-compat.ps1&nbsp;-Install&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Arial&quot;}]}]}],&quot;state&quot;:{&quot;index&quot;:4}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;Lo8p-1739963971682&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;y0Kh-1739963971681&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;如果命令成功，控制台窗口将显示“安装完成”。&nbsp;如果命令失败，将显示失败的原因。&nbsp;要删除兼容性解决方法，请执行上述相同步骤，但将上面的步骤&nbsp;(4)&nbsp;替换为：&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;.\\kb5022083-compat.ps1&nbsp;-Uninstall&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Arial&quot;}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;6u78-1739963971684&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;LmlS-1739963971683&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;安装兼容性解决方案后，显示&nbsp;XPS&nbsp;文档的基于&nbsp;WPF&nbsp;的应用程序应继续像&nbsp;2022&nbsp;年&nbsp;12&nbsp;月&nbsp;13&nbsp;日安全更新之前那样工作。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;DTFt-1739963971686&quot;,&quot;name&quot;:&quot;heading&quot;,&quot;data&quot;:{&quot;level&quot;:&quot;h1&quot;,&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;6jxE-1739963971685&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;替代解决方案&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Arial&quot;}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;iDH1-1739963971688&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;Pymo-1739963971687&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;如果第一个解决方案不能解决问题，您可以使用注册表项来禁用增强的安全行为。&nbsp;此方法仅适用于您确定系统处理的所有&nbsp;XPS&nbsp;文档都是可信时，例如，它们是由您的系统生成的，而非上传到系统中的，并且任何人都不能更改它们。&nbsp;如果您接受来自&nbsp;Internet&nbsp;的&nbsp;XPS&nbsp;文档、来自外部实体的电子邮件或其他不可信任的来源，请不要关闭该功能。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;s9QJ-1739963971690&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;h3AV-1739963971689&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;要禁用增强的安全行为，请从提升的命令提示符运行此命令：&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;oieE-1739963971693&quot;,&quot;name&quot;:&quot;code&quot;,&quot;data&quot;:{&quot;language&quot;:&quot;cmake&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;B5Rn-1739963971692&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;7T82-1739963971691&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;reg&nbsp;add&nbsp;\&quot;HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\Windows&nbsp;Presentation&nbsp;Foundation\\XPSAllowedTypes\&quot;&nbsp;/v&nbsp;\&quot;DisableDec2022Patch\&quot;&nbsp;/t&nbsp;REG_SZ&nbsp;/d&nbsp;\&quot;*\&quot;&nbsp;/reg:64&quot;,&quot;marks&quot;:[]}]}]}],&quot;state&quot;:{&quot;tokensPerLine&quot;:[[{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;reg&nbsp;add&nbsp;&quot;},{&quot;type&quot;:&quot;string&quot;,&quot;content&quot;:&quot;\&quot;HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\Windows&nbsp;Presentation&nbsp;Foundation\\XPSAllowedTypes\&quot;&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;/v&nbsp;&quot;},{&quot;type&quot;:&quot;string&quot;,&quot;content&quot;:&quot;\&quot;DisableDec2022Patch\&quot;&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;/t&nbsp;REG_SZ&nbsp;/d&nbsp;&quot;},{&quot;type&quot;:&quot;string&quot;,&quot;content&quot;:&quot;\&quot;*\&quot;&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;/reg:&quot;},{&quot;type&quot;:&quot;number&quot;,&quot;content&quot;:&quot;64&quot;}]]}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;aXcx-1739963971715&quot;,&quot;name&quot;:&quot;quote&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;ja93-1739963971695&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;oRud-1739963971694&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;&quot;,&quot;marks&quot;:[]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;cc7X-1739963971698&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;uJiU-1739963971697&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;或者，您可以使用“组策略”创建一个&nbsp;REG_SZ&nbsp;条目，其项名称为&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\Windows&nbsp;Presentation&nbsp;Foundation\\XPSAllowedTypes&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#1e1e1e&quot;},{&quot;type&quot;:&quot;fontSize&quot;,&quot;value&quot;:16},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Courier&nbsp;New&quot;}]},{&quot;text&quot;:&quot;，值名称为&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;DisableDec2022Patch&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#1e1e1e&quot;},{&quot;type&quot;:&quot;fontSize&quot;,&quot;value&quot;:16},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Courier&nbsp;New&quot;}]},{&quot;text&quot;:&quot;，值为&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;*&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#1e1e1e&quot;},{&quot;type&quot;:&quot;fontSize&quot;,&quot;value&quot;:16},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Courier&nbsp;New&quot;}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;agR7-1739963971700&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;UPVu-1739963971699&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;要删除此解决方案并返回增强的安全行为，请从提升的命令提示符下运行此命令：&nbsp;&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;reg&nbsp;delete&nbsp;\&quot;HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\Windows&nbsp;Presentation&nbsp;Foundation\\XPSAllowedTypes\&quot;&nbsp;/reg:64&nbsp;/f&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#1e1e1e&quot;},{&quot;type&quot;:&quot;fontSize&quot;,&quot;value&quot;:16},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Courier&nbsp;New&quot;}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;sluW-1739963971702&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;lineHeight&quot;:&quot;1.5&quot;},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;DHOC-1739963971701&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;这将禁用机器范围内的增强功能，并且仅当您可以完全信任系统中的所有&nbsp;XPS&nbsp;输入时才应使用。&quot;,&quot;marks&quot;:[]}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;gCds-1739963961442&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;xRcM-1739963961441&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;但是安装过程出现权限问题：&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;U7Rf-1739964226897&quot;,&quot;name&quot;:&quot;code&quot;,&quot;data&quot;:{&quot;language&quot;:&quot;basic&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;wrap&quot;:false},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;7ik6-1739964226896&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;ldL6-1739964226895&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;.\\kb5022083-compat.ps1&nbsp;:&nbsp;无法加载文件&nbsp;C:\\Users\\XZB\\Desktop\\kb5022083-compat.ps1，因为在此系统上禁止运行脚本。有关详细信&quot;,&quot;marks&quot;:[]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;5OeZ-1739964228223&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;RjLp-1739964228222&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;息，请参阅&nbsp;https:/go.microsoft.com/fwlink/?LinkID=135170&nbsp;中的&nbsp;about_Execution_Policies。\r&quot;,&quot;marks&quot;:[]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;dA9S-1739964228225&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;P8Yv-1739964228224&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;所在位置&nbsp;行:1&nbsp;字符:&nbsp;1\r&quot;,&quot;marks&quot;:[]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;2Y2a-1739964228227&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;IHqm-1739964228226&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;+&nbsp;.\\kb5022083-compat.ps1&nbsp;-Install\r&quot;,&quot;marks&quot;:[]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;OAOL-1739964228229&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;MMV1-1739964228228&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;+&nbsp;~~~~~~~~~~~~~~~~~~~~~~\r&quot;,&quot;marks&quot;:[]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;JYeX-1739964228231&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;D21J-1739964228230&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;CategoryInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;SecurityError:&nbsp;(:)&nbsp;[]，PSSecurityException\r&quot;,&quot;marks&quot;:[]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;il7r-1739964228233&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;DmDL-1739964228232&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;FullyQualifiedErrorId&nbsp;:&nbsp;UnauthorizedAccess&quot;,&quot;marks&quot;:[]}]}]}],&quot;state&quot;:{&quot;tokensPerLine&quot;:[[{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;.\\kb5022083&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;-&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;compat.ps1&nbsp;&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;无法加载文件&nbsp;C&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;\\Users\\XZB\\Desktop\\kb5022083&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;-&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;compat.ps1，因为在此系统上禁止运行脚本。有关详细信&quot;}],[{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;息，请参阅&nbsp;https&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;/&quot;},{&quot;type&quot;:&quot;function&quot;,&quot;content&quot;:&quot;go&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;.microsoft.&quot;},{&quot;type&quot;:&quot;keyword&quot;,&quot;content&quot;:&quot;com&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;/&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;fwlink&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;/&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;?LinkID&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;=&quot;},{&quot;type&quot;:&quot;number&quot;,&quot;content&quot;:&quot;135170&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;中的&nbsp;about_Execution_Policies。\r&quot;}],[{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;所在位置&nbsp;行&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;number&quot;,&quot;content&quot;:&quot;1&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;字符&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;&quot;},{&quot;type&quot;:&quot;number&quot;,&quot;content&quot;:&quot;1&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;\r&quot;}],[{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;+&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;.\\kb5022083&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;-&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;compat.ps1&nbsp;&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;-&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;Install\r&quot;}],[{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;+&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;~~~~~~~~~~~~~~~~~~~~~~\r&quot;}],[{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;&nbsp;&nbsp;&nbsp;&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;+&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;CategoryInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;SecurityError&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;(&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;)&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;[]，PSSecurityException\r&quot;}],[{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;&nbsp;&nbsp;&nbsp;&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;+&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;FullyQualifiedErrorId&nbsp;&quot;},{&quot;type&quot;:&quot;punctuation&quot;,&quot;content&quot;:&quot;:&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;&nbsp;UnauthorizedAccess&quot;}]]}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;lmX4-1739964226898&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;gg3Y-1739964226899&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;截图如下&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;Zugx-1739964295618&quot;,&quot;name&quot;:&quot;image&quot;,&quot;data&quot;:{&quot;version&quot;:1,&quot;url&quot;:&quot;https://note.youdao.com/yws/res/5/WEBRESOURCE7dae10d8340667803117f12a42895f45&quot;,&quot;width&quot;:836,&quot;height&quot;:114,&quot;fromIdentity&quot;:&quot;&quot;},&quot;nodes&quot;:[],&quot;state&quot;:{&quot;loading&quot;:false,&quot;renderSource&quot;:&quot;https://note.youdao.com/yws/res/5/WEBRESOURCE7dae10d8340667803117f12a42895f45&quot;,&quot;initialSize&quot;:{&quot;width&quot;:836,&quot;height&quot;:114}}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;AfUf-1739964295623&quot;,&quot;name&quot;:&quot;heading&quot;,&quot;data&quot;:{&quot;level&quot;:&quot;h1&quot;,&quot;style&quot;:{}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;lXpR-1739964295622&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;PowerShell授权&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;LLv3-1739964320736&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;jDBA-1739964320735&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;打开提示的&quot;,&quot;marks&quot;:[]}]},{&quot;type&quot;:&quot;inline&quot;,&quot;id&quot;:&quot;JgAg-1739964354854&quot;,&quot;name&quot;:&quot;link&quot;,&quot;data&quot;:{&quot;href&quot;:&quot;https://learn.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.5&quot;},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;QnGX-1739964354853&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;网页界面&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;underline&quot;},{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#0366d6&quot;}]}]}]},{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;0ypq-1739964354857&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;，&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;oL50-1739964447313&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;mL96-1739964447311&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;可以使用“&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;打开脚本执行组策略&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;}]},{&quot;text&quot;:&quot;”设置来管理企业中计算机的执行策略。&nbsp;组策略设置会覆盖&nbsp;PowerShell&nbsp;中在所有范围内设置的执行策略。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;PVUY-1739964447849&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;MHLt-1739964447848&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;“&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;启用脚本执行&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;}]},{&quot;text&quot;:&quot;”策略设置如下所示：&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;5u18-1739964447851&quot;,&quot;name&quot;:&quot;list-item&quot;,&quot;data&quot;:{&quot;listId&quot;:&quot;xD1L-1739964447907&quot;,&quot;listLevel&quot;:1,&quot;listType&quot;:&quot;unordered&quot;,&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;2Ojl-1739964447850&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;如果禁用“&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;启用脚本执行&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;}]},{&quot;text&quot;:&quot;”，则脚本不会运行。&nbsp;这等效于&nbsp;&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;Restricted&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;}]},{&quot;text&quot;:&quot;&nbsp;执行策略。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{&quot;index&quot;:1}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;tp8e-1739964447855&quot;,&quot;name&quot;:&quot;list-item&quot;,&quot;data&quot;:{&quot;listId&quot;:&quot;xD1L-1739964447907&quot;,&quot;listLevel&quot;:1,&quot;listType&quot;:&quot;unordered&quot;,&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;D02g-1739964447854&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;如果启用“&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;启用脚本执行&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;}]},{&quot;text&quot;:&quot;”，则可以选择一个执行策略。&nbsp;组策略设置等效于以下执行策略设置：&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{&quot;index&quot;:2}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;0B2e-1739964447890&quot;,&quot;name&quot;:&quot;table&quot;,&quot;data&quot;:{&quot;colsWidth&quot;:[331,331],&quot;rowsHeight&quot;:[40,40,40,40],&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;N5Nm-1739964447868&quot;,&quot;name&quot;:&quot;table-row&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;VJxN-1739964447864&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;LC3s-1739964447863&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;CwAL-1739964447862&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;组策略&quot;,&quot;marks&quot;:[]}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;ckku-1739964447867&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;1RKO-1739964447866&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;q27M-1739964447865&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;执行策略&quot;,&quot;marks&quot;:[]}]}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;638t-1739964447875&quot;,&quot;name&quot;:&quot;table-row&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;f0Ek-1739964447871&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;0wJY-1739964447870&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;Wxgy-1739964447869&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;允许所有脚本&quot;,&quot;marks&quot;:[]}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;QuUy-1739964447874&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;F4C2-1739964447873&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;Y5ML-1739964447872&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;Unrestricted&quot;,&quot;marks&quot;:[]}]}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;Xi3E-1739964447882&quot;,&quot;name&quot;:&quot;table-row&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;BFsY-1739964447878&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;gCFO-1739964447877&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;TYGD-1739964447876&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;允许本地脚本和远程签名脚本&quot;,&quot;marks&quot;:[]}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;0VQb-1739964447881&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;P6Ve-1739964447880&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;tVZk-1739964447879&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;RemoteSigned&quot;,&quot;marks&quot;:[]}]}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;KSgB-1739964447889&quot;,&quot;name&quot;:&quot;table-row&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;ihFb-1739964447885&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;jK6X-1739964447884&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;bd27-1739964447883&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;仅允许签名脚本&quot;,&quot;marks&quot;:[]}]}]}]},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;3ilR-1739964447888&quot;,&quot;name&quot;:&quot;table-cell&quot;,&quot;data&quot;:{&quot;style&quot;:{&quot;verticalAlign&quot;:&quot;top&quot;}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;TzFL-1739964447887&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;HQpo-1739964447886&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;AllSigned&quot;,&quot;marks&quot;:[]}]}]}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;RuSO-1739964447892&quot;,&quot;name&quot;:&quot;list-item&quot;,&quot;data&quot;:{&quot;listId&quot;:&quot;xD1L-1739964447907&quot;,&quot;listLevel&quot;:1,&quot;listType&quot;:&quot;unordered&quot;,&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;9tdY-1739964447891&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;如果未配置“&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;启用脚本执行&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;}]},{&quot;text&quot;:&quot;”，则不起作用。&nbsp;PowerShell&nbsp;中设置的执行策略有效。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{&quot;index&quot;:3}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;YDfK-1739964447896&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;fur4-1739964447895&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;PowerShellExecutionPolicy.adm&nbsp;和&nbsp;PowerShellExecutionPolicy.admx&nbsp;文件会将“&quot;,&quot;marks&quot;:[]},{&quot;text&quot;:&quot;启用脚本执行&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;bold&quot;}]},{&quot;text&quot;:&quot;”策略添加到组策略编辑器以下路径中的“计算机配置”和“用户配置”节点。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;6vaj-1739964447898&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;K16t-1739964447897&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;对于&nbsp;Windows&nbsp;XP&nbsp;和&nbsp;Windows&nbsp;Server&nbsp;2003：&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;sN0b-1739964447900&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;OB3e-1739964447899&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;Administrative&nbsp;Templates\\Windows&nbsp;Components\\Windows&nbsp;PowerShell&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;backgroundColor&quot;,&quot;value&quot;:&quot;rgb(0,&nbsp;0,&nbsp;0)&quot;},{&quot;type&quot;:&quot;fontSize&quot;,&quot;value&quot;:13},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Courier&nbsp;New&quot;},{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#8DD1AF&quot;}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;dfdk-1739964447902&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;rfs6-1739964447901&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;对于&nbsp;Windows&nbsp;Vista&nbsp;和更高版本的&nbsp;Windows：&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;9L4K-1739964447904&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;Lgh1-1739964447903&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;Administrative&nbsp;Templates\\Classic&nbsp;Administrative&nbsp;Templates\\Windows&nbsp;Components\\Windows&nbsp;PowerShell&quot;,&quot;marks&quot;:[{&quot;type&quot;:&quot;backgroundColor&quot;,&quot;value&quot;:&quot;rgb(0,&nbsp;0,&nbsp;0)&quot;},{&quot;type&quot;:&quot;fontSize&quot;,&quot;value&quot;:13},{&quot;type&quot;:&quot;fontFamily&quot;,&quot;value&quot;:&quot;Courier&nbsp;New&quot;},{&quot;type&quot;:&quot;color&quot;,&quot;value&quot;:&quot;#8DD1AF&quot;}]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;IYUF-1739964447906&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{&quot;style&quot;:{},&quot;version&quot;:1},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;AjOH-1739964447905&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;“计算机配置”节点中设置的策略优先于“用户配置”节点中设置的策略。&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;H2E0-1739964412151&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;tEWj-1739964412149&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;根据解释，将权限设定为可执行脚本&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;1GIj-1739964402787&quot;,&quot;name&quot;:&quot;code&quot;,&quot;data&quot;:{&quot;language&quot;:&quot;basic&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;wrap&quot;:false},&quot;nodes&quot;:[{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;KGDj-1739964402786&quot;,&quot;name&quot;:&quot;code-line&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;GFmx-1739964402785&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;Set-ExecutionPolicy&nbsp;-ExecutionPolicy&nbsp;Unrestricted&quot;,&quot;marks&quot;:[]}]}]}],&quot;state&quot;:{&quot;tokensPerLine&quot;:[[{&quot;type&quot;:&quot;function&quot;,&quot;content&quot;:&quot;Set&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;-&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;ExecutionPolicy&nbsp;&quot;},{&quot;type&quot;:&quot;operator&quot;,&quot;content&quot;:&quot;-&quot;},{&quot;type&quot;:&quot;plain&quot;,&quot;content&quot;:&quot;ExecutionPolicy&nbsp;Unrestricted&quot;}]]}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;pCFp-1739964402788&quot;,&quot;name&quot;:&quot;heading&quot;,&quot;data&quot;:{&quot;level&quot;:&quot;h1&quot;,&quot;style&quot;:{}},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;Ritp-1739964402789&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;补丁安装&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;3rOI-1739964632238&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;uIV2-1739964632237&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;运行如下&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;5x9V-1739964552831&quot;,&quot;name&quot;:&quot;image&quot;,&quot;data&quot;:{&quot;version&quot;:1,&quot;url&quot;:&quot;https://note.youdao.com/yws/res/0/WEBRESOURCE60610765e383a7fc60966d05ddaaee90&quot;,&quot;width&quot;:744,&quot;height&quot;:79,&quot;fromIdentity&quot;:&quot;&quot;},&quot;nodes&quot;:[],&quot;state&quot;:{&quot;loading&quot;:false,&quot;renderSource&quot;:&quot;https://note.youdao.com/yws/res/0/WEBRESOURCE60610765e383a7fc60966d05ddaaee90&quot;,&quot;initialSize&quot;:{&quot;width&quot;:839,&quot;height&quot;:88}}},{&quot;type&quot;:&quot;block&quot;,&quot;id&quot;:&quot;Y6X7-1739964552836&quot;,&quot;name&quot;:&quot;paragraph&quot;,&quot;data&quot;:{},&quot;nodes&quot;:[{&quot;type&quot;:&quot;text&quot;,&quot;id&quot;:&quot;tIpW-1739964552834&quot;,&quot;leaves&quot;:[{&quot;text&quot;:&quot;再次安装，提示安装完成&quot;,&quot;marks&quot;:[]}]}],&quot;state&quot;:{}}]" style="font-size: medium; text-wrap: wrap;"><h1 id="te9N-1739965049436" yne-bulb-block="heading" yne-bulb-level="1" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 16px;">问题过程</span></h1><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">在安装Intouch2017时，安装到用户协议界面，不能显示用户协议，也不能点击下一步！</span><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2025/2/2025021970712593.jpg" title="1739965076291.jpg" style="width: 600px; height: 400px;" width="600" height="400" border="0" hspace="0" vspace="0"/></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">询问客服时由于系统</span><a href="https://support.microsoft.com/zh-cn/topic/kb5022083-%E5%9F%BA%E4%BA%8E-wpf-%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%98%BE%E7%A4%BA-xps-%E6%96%87%E6%A1%A3%E7%9A%84%E6%96%B9%E5%BC%8F%E5%8F%91%E7%94%9F%E5%8F%98%E5%8C%96-a4ae4fa4-bc58-4c37-acdd-5eebc4e34556" style="color: rgb(3, 102, 214); font-size: 14px; text-decoration: underline;"><span style="color: rgb(3, 102, 214); font-size: 14px;">升级补丁导致</span></a></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">剑维官方给的文档是安装补丁<span style="font-size: 14px; font-weight: bold; font-family: Arial;">kb5022083</span></span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">引用巨硬官网</span></div><div><div yne-bulb-block="quote" style="line-height: 1.75; font-size: 14px; white-space-collapse: preserve; padding: 0px 10px 0px 17px; border-left: 3px solid rgb(232, 232, 232); margin: 0px 5px;"><span style="color: rgb(30, 30, 30); background-color: rgb(255, 255, 255); font-family: Arial; font-size: 14px;">使用表结构、情节提要或超链接等结构或语义元素的 XPS 文档可能无法在基于 WPF 的阅读器中正确显示。 此外，当 XPS 文档加载到基于 WPF 的阅读器中时，某些内联图像可能无法正确显示，或者可能发生空引用异常。</span></div></div><h1 id="XzFn-1739965049454" yne-bulb-block="heading" yne-bulb-level="1" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="color: rgb(30, 30, 30); background-color: rgb(255, 255, 255); font-family: Arial; font-size: 16px;">解决方案</span></h1><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px; text-indent: 28px;"><span style="font-size: 14px;">Microsoft 确定了此问题的兼容性解决方法，并制作了一个 PowerShell 脚本来解决此问题。</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">若要安装兼容性解决方案，请按照下列步骤操作。</span></div><div><ol yne-block-type="list" style="margin-left: 14px;" class=" list-paddingleft-2"><li><p><span style="font-size: 14px;">下载&nbsp;</span><a href="https://download.microsoft.com/download/0/9/c/09cf661b-6ffb-498e-a031-f75105cdfba0/kb5022083-compat.ps1" style="text-decoration: underline; color: rgb(0, 56, 132); font-size: 14px;"><span style="color: rgb(0, 56, 132); font-size: 14px;">PowerShell 脚本</span></a></p></li><li><p><span style="font-size: 14px;">以管理员身份打开 PowerShell 提示符</span></p></li><li><p><span style="font-size: 14px;">在提示符中，导航到下载脚本的目录</span></p></li><li><p><span style="font-size: 14px;">在提示符内运行命令：<span style="font-size: 14px; font-weight: bold; font-family: Arial;">.\kb5022083-compat.ps1 -Install</span></span></p></li></ol></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.5; font-size: 14px;"><span style="font-size: 14px;">如果命令成功，控制台窗口将显示“安装完成”。 如果命令失败，将显示失败的原因。 要删除兼容性解决方法，请执行上述相同步骤，但将上面的步骤 (4) 替换为：<span style="font-size: 14px; font-weight: bold; font-family: Arial;">.\kb5022083-compat.ps1 -Uninstall</span></span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.5; font-size: 14px;"><span style="font-size: 14px;">安装兼容性解决方案后，显示 XPS 文档的基于 WPF 的应用程序应继续像 2022 年 12 月 13 日安全更新之前那样工作。</span></div><h1 id="llmC-1739965049474" yne-bulb-block="heading" yne-bulb-level="1" style="white-space-collapse: preserve; line-height: 1.5; font-size: 14px;"><span style="font-family: Arial; font-size: 16px;">替代解决方案</span></h1><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.5; font-size: 14px;"><span style="font-size: 14px;">如果第一个解决方案不能解决问题，您可以使用注册表项来禁用增强的安全行为。 此方法仅适用于您确定系统处理的所有 XPS 文档都是可信时，例如，它们是由您的系统生成的，而非上传到系统中的，并且任何人都不能更改它们。 如果您接受来自 Internet 的 XPS 文档、来自外部实体的电子邮件或其他不可信任的来源，请不要关闭该功能。</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.5; font-size: 14px;"><span style="font-size: 14px;">要禁用增强的安全行为，请从提升的命令提示符运行此命令：</span></div><p style="white-space-collapse: preserve;"><span style="color: rgb(192, 80, 77); font-size: 14px;">&nbsp;&nbsp;&nbsp;&nbsp;reg add &quot;HKLM\SOFTWARE\Microsoft\.NETFramework\Windows Presentation Foundation\XPSAllowedTypes&quot; /v &quot;DisableDec2022Patch&quot; /t REG_SZ /d &quot;*&quot; /reg:64<br/></span></p><div><div yne-bulb-block="quote" style="line-height: 1.5; font-size: 14px; white-space-collapse: preserve; padding: 0px 10px 0px 17px; border-left: 3px solid rgb(232, 232, 232); margin: 0px 5px;"><span style="font-size: 14px;">或者，您可以使用“组策略”创建一个 REG_SZ 条目，其项名称为<span style="color: rgb(30, 30, 30); font-size: inherit; font-family: &quot;Courier New&quot;;">HKLM\SOFTWARE\Microsoft\.NETFramework\Windows Presentation Foundation\XPSAllowedTypes</span>，值名称为<span style="color: rgb(30, 30, 30); font-size: inherit; font-family: &quot;Courier New&quot;;">DisableDec2022Patch</span>，值为<span style="color: rgb(30, 30, 30); font-size: inherit; font-family: &quot;Courier New&quot;;">*</span></span></div></div><div><div yne-bulb-block="quote" style="line-height: 1.5; font-size: 14px; white-space-collapse: preserve; padding: 0px 10px 0px 17px; border-left: 3px solid rgb(232, 232, 232); margin: 0px 5px;"><span style="font-size: 14px;">要删除此解决方案并返回增强的安全行为，请从提升的命令提示符下运行此命令：&nbsp;<span style="color: rgb(30, 30, 30); font-size: inherit; font-family: &quot;Courier New&quot;;">reg delete &quot;HKLM\SOFTWARE\Microsoft\.NETFramework\Windows Presentation Foundation\XPSAllowedTypes&quot; /reg:64 /f</span></span></div></div><div><div yne-bulb-block="quote" style="line-height: 1.5; font-size: 14px; white-space-collapse: preserve; padding: 0px 10px 0px 17px; border-left: 3px solid rgb(232, 232, 232); margin: 0px 5px;"><span style="font-size: 14px;">这将禁用机器范围内的增强功能，并且仅当您可以完全信任系统中的所有 XPS 输入时才应使用。</span></div></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">但是安装过程出现权限问题：</span></div><blockquote><div yne-bulb-block="code" data-theme="default" data-language="basic" style="white-space-collapse: preserve;"><span style="font-size: 14px;">.\kb5022083-compat.ps1 : 无法加载文件 C:\Users\XZB\Desktop\kb5022083-compat.ps1，因为在此系统上禁止运行脚本。有关详细信
息，请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ .\kb5022083-compat.ps1 -Install
+ ~~~~~~~~~~~~~~~~~~~~~~
 &nbsp; &nbsp;+ CategoryInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: SecurityError: (:) []，PSSecurityException
 &nbsp; &nbsp;+ FullyQualifiedErrorId : UnauthorizedAccess</span></div></blockquote><p style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">截图如下：</span></p><p style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;"><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2025/2/2025021970950113.jpg" title="1739965085923.jpg"/></span></p><h1 id="RJIz-1739965049514" yne-bulb-block="heading" yne-bulb-level="1" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 16px;">PowerShell授权</span></h1><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">打开提示的</span><a href="https://learn.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.5" style="color: rgb(3, 102, 214); font-size: 14px; text-decoration: underline;"><span style="color: rgb(3, 102, 214); font-size: 14px;">网页界面</span></a><span style="font-size: 14px;">，</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">可以使用“<span style="font-size: 14px; font-weight: bold;">打开脚本执行组策略</span>”设置来管理企业中计算机的执行策略。 组策略设置会覆盖 PowerShell 中在所有范围内设置的执行策略。</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">“<span style="font-size: 14px; font-weight: bold;">启用脚本执行</span>”策略设置如下所示：</span></div><div><ul yne-block-type="list" style="margin-left: 14px;" class=" list-paddingleft-2"><li><p><span style="font-size: 14px;">如果禁用“<span style="font-size: 14px; font-weight: bold;">启用脚本执行</span>”，则脚本不会运行。 这等效于&nbsp;<span style="font-size: 14px; font-weight: bold;">Restricted</span>&nbsp;执行策略。</span></p></li><li><p><span style="font-size: 14px;">如果启用“<span style="font-size: 14px; font-weight: bold;">启用脚本执行</span>”，则可以选择一个执行策略。 组策略设置等效于以下执行策略设置：</span></p></li></ul></div><div yne-bulb-block="table" style="overflow: auto;"><table width="0"><colgroup><col style="width: 331px;"/><col style="width: 331px;"/></colgroup><tbody><tr style="height: 40px;" class="firstRow"><td data-cell-id="5qei-1739965049530" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">组策略</span></div></td><td data-cell-id="FCba-1739965049533" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">执行策略</span></div></td></tr><tr style="height: 40px;"><td data-cell-id="vyXe-1739965049537" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">允许所有脚本</span></div></td><td data-cell-id="fldy-1739965049540" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">Unrestricted</span></div></td></tr><tr style="height: 40px;"><td data-cell-id="zgJn-1739965049544" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">允许本地脚本和远程签名脚本</span></div></td><td data-cell-id="0NEx-1739965049547" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">RemoteSigned</span></div></td></tr><tr style="height: 40px;"><td data-cell-id="W0Hl-1739965049551" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">仅允许签名脚本</span></div></td><td data-cell-id="NjFt-1739965049555" style="vertical-align: top; border-color: rgb(167, 167, 167); overflow: hidden; font-size: 14px; overflow-wrap: break-word; white-space: pre-wrap; color: rgb(57, 57, 57);"><div class="table-cell-line"><span style="font-family: &quot;Microsoft YaHei&quot;, STXihei; color: rgb(0, 0, 0); font-size: 14px;">AllSigned</span></div></td></tr></tbody></table></div><div><ul start="3" yne-block-type="list" style="margin-left: 14px;" class=" list-paddingleft-2"><li><p><span style="font-size: 14px;">如果未配置“<span style="font-size: 14px; font-weight: bold;">启用脚本执行</span>”，则不起作用。 PowerShell 中设置的执行策略有效。</span></p></li></ul></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">PowerShellExecutionPolicy.adm 和 PowerShellExecutionPolicy.admx 文件会将“<span style="font-size: 14px; font-weight: bold;">启用脚本执行</span>”策略添加到组策略编辑器以下路径中的“计算机配置”和“用户配置”节点。</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">对于 Windows XP 和 Windows Server 2003：</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="background-color: rgb(0, 0, 0); font-family: &quot;Courier New&quot;; color: rgb(141, 209, 175); font-size: 14px;">Administrative Templates\Windows Components\Windows PowerShell</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">对于 Windows Vista 和更高版本的 Windows：</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="background-color: rgb(0, 0, 0); font-family: &quot;Courier New&quot;; color: rgb(141, 209, 175); font-size: 14px;">Administrative Templates\Classic Administrative Templates\Windows Components\Windows PowerShell</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">“计算机配置”节点中设置的策略优先于“用户配置”节点中设置的策略。</span></div><div yne-bulb-block="paragraph" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">根据解释，将权限设定为可执行脚本</span></div><div yne-bulb-block="code" data-theme="default" data-language="basic" style="white-space-collapse: preserve;"><span style="font-size: 14px;">Set-ExecutionPolicy -ExecutionPolicy Unrestricted</span></div><h1 id="JhZS-1739965049578" yne-bulb-block="heading" yne-bulb-level="1" style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">补丁安装</span></h1><p style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">运行如下</span></p><p style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;"><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2025/2/2025021971069849.png" title="1739965093044.jpg" style="white-space: pre-wrap;"/></span></p><p style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><span style="font-size: 14px;">再次安装，提示安装完成</span></p><p style="white-space-collapse: preserve; line-height: 1.75; font-size: 14px;"><br/></p></article><p><br/></p>]]></description><category>软件</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=427#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=427</wfw:commentRss></item><item><title>博途软件V11-V20硬件支持包</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=426</link><pubDate>Wed, 25 Dec 2024 14:00:37 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=426</guid><description><![CDATA[<p><strong>（10）TIA_Portal_V20_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/10dO8m5c6a-BWp4s9rL_6tg&nbsp;</span></p><p><strong>（09）TIA_Portal_V19_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/1XHspk4yJXGJWjpe-fO2PcA&nbsp;</span></p><p><strong>（08）TIA_Portal_V18_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/1NnrHbKtOD6PngM80mGXMSw&nbsp;</span></p><p><strong>（07）TIA_Portal_V17_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/18-jZuHIaU7j6nk0or_8DYw&nbsp;</span></p><p><strong>（06）TIA_Portal_V16_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/11psGvPahh7_Q6QL_IHB8Zg&nbsp;</span></p><p><strong>（05）TIA_Portal_V15_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/1fpeZk1oL-cLUECrHTdlLvg&nbsp;</span></p><p><strong>（04）TIA_Portal_V14_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/1qZGb8PoFdrFU-s5_oEYmAw&nbsp;</span></p><p><strong>（03）TIA_Portal_V13_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/1XpQjHi0i21x4AkjSHCFTQQ&nbsp;</span></p><p><strong>（02）TIA_Portal_V12_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/1SLx2AoVCcJ0tsIp2RR2v7g&nbsp;</span></p><p><strong>（01）TIA_Portal_V11_HSP</strong></p><p><span style="color: rgb(247, 150, 70);">链接: https://pan.baidu.com/s/1Y4ZKVsvsJcti7AJaD-WXpQ&nbsp;</span></p>]]></description><category>资源</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=426#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=426</wfw:commentRss></item><item><title>FactoryTalkActivationManager</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=425</link><pubDate>Thu, 05 Dec 2024 10:31:40 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=425</guid><description><![CDATA[<p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">3.30.01-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1qJiNGVGuLnjMO1A1Nq0tvA</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">3.62.11-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/11by70h0PSmU47WZQYrBRCg</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.00.02-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1TTIWl1pRNifWNUlLeSfgaA</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.01.00-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/14-rUeoXjHSaxKhczyz2Klg</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.02.00-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1eYirmF1ZprQPyFYQzMwRSw</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.03.11-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1zHvdZuVEBFN42TxveGG6WQ</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.04.14-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1P3iMnmfWxDd7YmAf3p1JQQ</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.04.16-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/18EJTF3Cg1jgoZAGYbF2RcQ</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.05.01-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1QE2ry7GNRt2luD1gbycevg</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.05.04-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1Lv8miqxMtPlhyVTv-J5zjw</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">4.06.13-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1HyKOlcBmTGyM6EoZamSolg</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">5.00.12-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1qpyturZy3tmiCAnKT15iMg</span></p><p style="text-align: left;"><span style="font-size: 18px; background-color: rgb(146, 205, 220); color: rgb(0, 0, 0);">5.00.13-FTActivation</span></p><p style="text-align: left;"><span style="color: rgb(247, 150, 70);">https://pan.baidu.com/s/1stmBEYngUCpwCJBKf19eew</span></p>]]></description><category>资源</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=425#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=425</wfw:commentRss></item><item><title>在数据库'master'中拒绝了CREATEDATABASE权限</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=422</link><pubDate>Wed, 04 Dec 2024 22:26:51 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=422</guid><description><![CDATA[<p>今天在优化自己ECS时候，重新安装SQL SSMS时候后，新建SQL用户后，<span style="color: rgb(255, 0, 0);">在新建数据库时不能选择数据库路径</span>，<span style="text-wrap: wrap;">提示：无法找到数据库路径“C:\Program Files\Microsoft SQL Server\MSSQL13.WINCC\MSSQL\DATA”</span></p><p>后来手动输入地址后，显示如下：数据库 &#39;master&#39; 中拒绝了 CREATE DATABASE 权限</p><p><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/12/2024120481886841.png" title="201604011541407183.png"/></p><p><span style="color: rgb(79, 97, 40);">查询是因为新建用户未分配权限</span></p><p><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/12/2024120481703625.jpg" title="360截图20241204224120131.jpg" style="width: 509px; height: 296px;"/></p><p>需要勾选<span style="background-color: rgb(227, 108, 9); color: rgb(255, 255, 255);">sysadmin</span>，指定为系统用户</p><p><span style="color: rgb(0, 176, 80);">注意：更改权限时使用Windows身份验证登录</span></p><p><br/></p>]]></description><category>网站</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=422#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=422</wfw:commentRss></item><item><title>WIN10操作系统下海康摄像头嵌入WINCC7.5</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=420</link><pubDate>Sat, 19 Oct 2024 20:22:27 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=420</guid><description><![CDATA[<div><p>1、准备好WIN10系统、WINCC7.5、NetVideoActiveX23开发包、iVMS-4200客户端。</p><p>2、连接海康摄像头，确认IP地址、设备名称、密码以及是否正常显示画面<span style="white-space-collapse: preserve;">使用控件包中inf安装文件将空间导入C盘windows文件夹。</span></p></div><p style="white-space: pre-wrap; line-height: 1.75;"><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101973754185.jpg" title="1729340762295.jpg" width="500" height="342" border="0" hspace="0" vspace="0" style="width: 500px; height: 342px;"/></p><div><p>3、用管理员身份打开control<a href="https://so.csdn.net/so/search?q=%E6%96%87%E4%BB%B6%E5%A4%B9&spm=1001.2101.3001.7020" style="text-decoration-line: none;"><span style="color: rgb(0, 56, 132);">文件夹</span></a>里的register.bat（如果出错误代码就是没用管理员身份）。</p><p><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101974062497.jpg" title="1729340769134.jpg" width="500" height="134" border="0" hspace="0" vspace="0" style="width: 500px; height: 134px;"/><br/></p></div><div><p>4、使用<a href="https://so.csdn.net/so/search?q=%E5%BC%80%E5%8F%91%E5%8C%85&spm=1001.2101.3001.7020" style="text-decoration-line: none;"><span style="color: rgb(0, 56, 132);">开发包</span></a>中的DEMO进行测试，注意一定要使用<span style="color: rgb(78, 161, 219);">IE浏览器</span>，开发后下方弹窗允许调用NetVideoActiveX23<span style="color: rgb(255, 0, 9);">（即使在上面没有注册成功，在这儿也可以调用注册空间）<img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101975040601.jpg" title="1729340773454.jpg" style="width: 533px; height: 110px;"/></span></p></div><p style="white-space: pre-wrap; line-height: 1.75; text-align: justify;">IE画面<span style="color: rgb(255, 0, 9);">(实际用360浏览器兼容模式也可以)</span></p><p style="white-space: pre-wrap; line-height: 1.75; text-align: justify;"><span style="color: rgb(255, 0, 9);"><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101975054505.jpg" title="1729340894532.jpg" style="width: 500px; height: 420px;" width="500" height="420" border="0" hspace="0" vspace="0"/></span></p><div><p>5、按照顺序点击或者填写，正常的话会看到图像</p><p><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101975137745.jpg" title="1729340898924.jpg" width="500" height="345" border="0" hspace="0" vspace="0" style="width: 500px; height: 345px;"/><br/></p></div><p><span style="background-color: rgb(255, 255, 255);color: rgb(51, 51, 51);">6、把NetVideoActiveX23.ocx拷贝到C:WINDOWSSysWOW64路径</span><span style="background-color: rgb(255, 255, 255);color: rgb(255, 0, 9);">（因为上面已经用inf安装文件啦，这里不拷也行）</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="background-color: rgb(255, 255, 255);color: rgb(255, 0, 9);"><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101975196801.jpg" title="1729340906004.jpg"/></span></p><div><p>7、在<span style="color: rgb(78, 161, 219);">WINCC</span>图形编辑器中选择控件，右击AcitveX控件添加，勾选NetVideoActiveX23 Control确定。</p><p><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101975254857.jpg" title="1729340910942.jpg" width="400" height="615" border="0" hspace="0" vspace="0" style="width: 400px; height: 615px;"/></p><p>8、将控件拖入到画面中，将按钮拖入到画面中来。</p></div><div><p><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101975517801.jpg" title="360截图20241019205755751.jpg"/><br/></p></div><div><p>9、右击按钮，点击属性，选择事件，在鼠标单机右击，选择VBS动作。</p><p><img src="https://www.xuzebo.net.cn/blog/zb_users/upload/2024/10/2024101976004313.jpg" title="1729340920284.jpg"/></p></div><div><p>10、编写如下代码</p><pre class="brush:vb;toolbar:false">Sub&nbsp;OnClick(ByVal&nbsp;Item)&nbsp;&nbsp;
Dim&nbsp;cam,msg,msg2,msg3
&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;cam=ScreenItems(&quot;控件1&quot;)
&nbsp;&nbsp;&nbsp;&nbsp;msg=cam.Login(&quot;169.254.28.68&quot;,8000,&quot;admin&quot;,&quot;159357.000&quot;)
&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;msg=0&nbsp;Then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg2=cam.StartRealPlay(0,0,0)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg3=cam.StartRecord(&quot;C:viedo&quot;)
&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If
End&nbsp;Sub</pre><p>11、点击运行，点击按钮获得视频图像<br/></p></div><p><br/></p><p><br/></p>]]></description><category>通讯</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=420#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=420</wfw:commentRss></item><item><title>win10 wasppx占用内存高</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=419</link><pubDate>Wed, 25 Sep 2024 14:40:11 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=419</guid><description><![CDATA[<p class="marklang-paragraph" style="margin-top: var(--cos-space-3xs); margin-bottom: var(--cos-space-3xs); padding: 0px; list-style: none; line-height: 26px; color: rgb(51, 51, 51); font-family: -apple-system, Arial, Helvetica, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);">‌<span style="font-weight: var(--cos-font-medium); -webkit-text-stroke: var(--cos-font-medium-stroke); background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) center bottom / 100% 12px no-repeat; padding-bottom: 1px;">解决Win1<span style="text-wrap: nowrap;">0<span class="cos-icon cos-icon-research cosd-markdown-research-icon" style="-webkit-font-smoothing: antialiased; display: inline-block; font-size: 9px; line-height: 9px; margin-top: 0px; position: relative; vertical-align: text-top; margin-left: 1px; font-family: cos-icon !important;"></span></span>中wsappx占用内存<span style="text-wrap: nowrap;">高<span class="cos-icon cos-icon-research cosd-markdown-research-icon" style="-webkit-font-smoothing: antialiased; display: inline-block; font-size: 9px; line-height: 9px; margin-top: 0px; position: relative; vertical-align: text-top; margin-left: 1px; font-family: cos-icon !important;"></span></span>的问题</span>‌可以通过以下几种方法进行解决：</p><ol style="list-style-type: none;" class=" list-paddingleft-2"><li><p class="marklang-paragraph" style="margin-top: var(--cos-space-3xs); margin-bottom: var(--cos-space-3xs); padding: 0px; list-style: none; font-size: var(--cos-text-body-lg); line-height: 26px; color: var(--cos-color-text); font-weight: var(--cos-font-regular);">1‌、<span style="font-weight: var(--cos-font-medium); -webkit-text-stroke: var(--cos-font-medium-stroke); background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) center bottom / 100% 12px no-repeat; padding-bottom: 1px;">关闭应用商店自动更新</span>‌：通过Windows 1<span style="text-wrap: nowrap;">0<span class="cos-icon cos-icon-research cosd-markdown-research-icon" style="-webkit-font-smoothing: antialiased; display: inline-block; font-size: 9px; line-height: 9px; margin-top: 0px; position: relative; vertical-align: text-top; margin-left: 1px; font-family: cos-icon !important;"></span></span>自带的应用商<span style="text-wrap: nowrap;">店<span class="cos-icon cos-icon-research cosd-markdown-research-icon" style="-webkit-font-smoothing: antialiased; display: inline-block; font-size: 9px; line-height: 9px; margin-top: 0px; position: relative; vertical-align: text-top; margin-left: 1px; font-family: cos-icon !important;"></span></span>，进入设置界面，关闭“应用自动更新”选项，以减少wsappx进程的运行频率，从而降低内存占用‌。</p></li><li><p class="marklang-paragraph" style="margin-top: var(--cos-space-3xs); margin-bottom: var(--cos-space-3xs); padding: 0px; list-style: none; font-size: var(--cos-text-body-lg); line-height: 26px; color: var(--cos-color-text); font-weight: var(--cos-font-regular);">‌2、<span style="font-weight: var(--cos-font-medium); -webkit-text-stroke: var(--cos-font-medium-stroke); background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) center bottom / 100% 12px no-repeat; padding-bottom: 1px;">停止相关服务</span>‌：通过服务管理<span style="text-wrap: nowrap;">器<span class="cos-icon cos-icon-research cosd-markdown-research-icon" style="-webkit-font-smoothing: antialiased; display: inline-block; font-size: 9px; line-height: 9px; margin-top: 0px; position: relative; vertical-align: text-top; margin-left: 1px; font-family: cos-icon !important;"></span></span>（services.msc）手动停止“Client License Service”和“AppX Deployment Service”这两个服务。如果服务管理器中的AppX Deployment Service无法关闭，可以通过修改注册表来解决。具体步骤是：打开注册表编辑器（regedit），导航到<code style="background: var(--cos-color-border-minor); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; color: var(--cos-color-text);"><span style="color: rgb(255, 0, 0);">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AppXSvc</span></code>，将start的值由3更改为4，以禁用该服务‌。</p></li><li><p class="marklang-paragraph" style="margin-top: var(--cos-space-3xs); margin-bottom: var(--cos-space-3xs); padding: 0px; list-style: none; font-size: var(--cos-text-body-lg); line-height: 26px; color: var(--cos-color-text); font-weight: var(--cos-font-regular);">3‌、<span style="font-weight: var(--cos-font-medium); -webkit-text-stroke: var(--cos-font-medium-stroke); background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) center bottom / 100% 12px no-repeat; padding-bottom: 1px;">修改注册表</span>‌：如果服务管理器的AppX Deployment Service无法关闭，可以通过修改注册表来解决。具体步骤是：打开注册表路径<code style="background: var(--cos-color-border-minor); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; color: var(--cos-color-text);"><span style="color: rgb(255, 0, 0);">HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AppXSvc</span></code>，双击右侧的start，把值由3改为4，然后重启计算机。如果需要再次启用该功能，将值改回3即可‌。</p></li><li><p class="marklang-paragraph" style="margin-top: var(--cos-space-3xs); margin-bottom: var(--cos-space-3xs); padding: 0px; list-style: none; font-size: var(--cos-text-body-lg); line-height: 26px; color: var(--cos-color-text); font-weight: var(--cos-font-regular);">‌4、<span style="font-weight: var(--cos-font-medium); -webkit-text-stroke: var(--cos-font-medium-stroke); background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) center bottom / 100% 12px no-repeat; padding-bottom: 1px;">检查/清理磁盘内部错误</span>‌：使用专业的磁盘管理工具进行检查和清理，以解决可能导致的高内存占用问题‌。</p></li></ol><p class="marklang-paragraph" style="margin-top: var(--cos-space-3xs); margin-bottom: var(--cos-space-3xs); padding: 0px; list-style: none; line-height: 26px; color: rgb(51, 51, 51); font-family: -apple-system, Arial, Helvetica, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);">通过上述方法，可以有效降低Win10系统中wsappx进程的内存占用，提升系统性能。请注意，修改注册表或停止服务可能会影响系统的稳定性和功能性，因此在进行这些操作前，建议备份重要数据，并谨慎操作。</p><p><br/></p>]]></description><category>系统</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=419#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=419</wfw:commentRss></item><item><title>使用和脚本实现图层显示隐藏</title><author>xuzebo@xuzebo.net.cn (许泽博)</author><link>https://www.xuzebo.net.cn/blog/view.asp?id=418</link><pubDate>Thu, 29 Aug 2024 18:24:29 +0800</pubDate><guid>https://www.xuzebo.net.cn/blog/view.asp?id=418</guid><description><![CDATA[<p style="text-wrap: wrap;">
    C写画面控件显示隐藏
</p>
<p style="text-wrap: wrap;">
    #include &quot;apdefap.h&quot;
</p>
<p style="text-wrap: wrap;">
    void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
</p>
<p style="text-wrap: wrap;">
    {
</p>
<p style="text-wrap: wrap;">
    #pragma option(mbcs)
</p>
<p style="text-wrap: wrap;">
    &nbsp; SetVisible(lpszPictureName,&quot;Control1&quot;,0);
</p>
<p style="text-wrap: wrap;">
    &nbsp; SetVisible(lpszPictureName,&quot;Control2&quot;,1);
</p>
<p style="text-wrap: wrap;">
    &nbsp; SetVisible(lpszPictureName,&quot;Control3&quot;,0);
</p>
<p style="text-wrap: wrap;">
    &nbsp; SetVisible(lpszPictureName,&quot;Control4&quot;,0);
</p>
<p style="text-wrap: wrap;">
    }
</p>
<p style="text-wrap: wrap;">
    VB写画面层显示隐藏
</p>
<p style="text-wrap: wrap;">
    &nbsp; &nbsp; HMIRuntime.ActiveScreen.Layers(2).Visible = False&nbsp; &nbsp;
</p>
<p style="text-wrap: wrap;">
    &nbsp; &nbsp; HMIRuntime.ActiveScreen.Layers(3).Visible = True&nbsp; &nbsp; &nbsp;
</p>
<p style="text-wrap: wrap;">
    &nbsp; &nbsp; HMIRuntime.ActiveScreen.Layers(4).Visible = False&nbsp; &nbsp;&nbsp;
</p>
<p style="text-wrap: wrap;">
    &nbsp; &nbsp; HMIRuntime.ActiveScreen.Layers(5).Visible = False
</p>]]></description><category>通讯</category><comments>https://www.xuzebo.net.cn/blog/view.asp?id=418#comment</comments><wfw:commentRss>https://www.xuzebo.net.cn/blog/feed.asp?cmt=418</wfw:commentRss></item></channel></rss>
