<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Silent_install on HiDa</title><link>https://www.0niu.cn/tags/silent_install/</link><description>Recent content in Silent_install on HiDa</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Wed, 13 May 2020 22:28:58 +0800</lastBuildDate><atom:link href="https://www.0niu.cn/tags/silent_install/index.xml" rel="self" type="application/rss+xml"/><item><title>常见软件静默安装参数</title><link>https://www.0niu.cn/posts/common-software-silent-installation-argument/</link><pubDate>Wed, 13 May 2020 22:28:58 +0800</pubDate><guid>https://www.0niu.cn/posts/common-software-silent-installation-argument/</guid><description>&lt;h2 id="installshield">Installshield&lt;/h2>
&lt;ul>
&lt;li>录制iss文件&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>Setup.exe -r -f1&lt;span style="color:#e6db74">&amp;#34;c:\setup.iss&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>静默安装&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe /s /f1&lt;span style="color:#e6db74">&amp;#34;C:\setup.iss&amp;#34;&lt;/span> /f2&lt;span style="color:#e6db74">&amp;#34;c:\setup.log&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>卸载&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe -r -f1uninstall.iss
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>setup.exe -s -f1uninstall.iss
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description><content>&lt;h2 id="installshield">Installshield&lt;/h2>
&lt;ul>
&lt;li>录制iss文件&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>Setup.exe -r -f1&lt;span style="color:#e6db74">&amp;#34;c:\setup.iss&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>静默安装&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe /s /f1&lt;span style="color:#e6db74">&amp;#34;C:\setup.iss&amp;#34;&lt;/span> /f2&lt;span style="color:#e6db74">&amp;#34;c:\setup.log&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>卸载&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe -r -f1uninstall.iss
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>setup.exe -s -f1uninstall.iss
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="installshield-with-msi">InstallShield with MSI&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe /s /v &lt;span style="color:#e6db74">&amp;#34;/qb&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="installanywhere">InstallAnywhere&lt;/h2>
&lt;ul>
&lt;li>Install&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>Create a configuration replay file (install.properties) by starting the setup in replay mode.
&lt;code>&amp;lt;setup.exe&amp;gt; -r install.properties&lt;/code>&lt;/li>
&lt;li>Complete the installation by selecting the desired options.&lt;/li>
&lt;li>Edit the newly install.properties file. Add this line before the install directory definition.
&lt;code>Installer_UI=silent&lt;/code>&lt;/li>
&lt;li>Save&lt;/li>
&lt;li>Run the following command:
&lt;code>&amp;lt;setup.exe&amp;gt; -i silent -f&amp;quot;&amp;lt;pathto&amp;gt;\install.properties&amp;quot;&lt;/code>&lt;/li>
&lt;/ol>
&lt;p>ATTENTION: Try to keep the path to the .properties file short (no spaces). Otherwise, the setup might fail (Problem opening install properties file). Try something like c:\tmp or c:\temp…&lt;/p>
&lt;p>By default, log files (or something close) can be found in c:\tmp.&lt;/p>
&lt;ul>
&lt;li>Uninstall&lt;/li>
&lt;/ul>
&lt;p>In order to uninstall the software silently, look for an &lt;code>Uninstall*.exe&lt;/code> in the installation directory. Run it with the &lt;code>-i silent&lt;/code> parameter.&lt;/p>
&lt;h2 id="inno-setup">Inno Setup&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe /sp- /silent /norestart
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>使用Inno技术制成的程序安装包可以使用&lt;code>/SILENT&lt;/code> 和 &lt;code>/VERYSILENT&lt;/code>参数进行静默安装&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe /VERYSILENT
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>会看到一个对话框，询问你是否打算继续安装：&lt;/p>
&lt;p>我们可以通过使用一个参数跳过这个对话框：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe /VERYSILENT /SP-
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="nullsoft-installation-system">NullSoft Installation System&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>Setup.exe /S //S大小写敏感
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Setup.exe /S /D=E:\Software\QQ2007
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="wise-installation-professional">Wise Installation Professional&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-batch" data-lang="batch">&lt;span style="display:flex;">&lt;span>setup.exe /silent
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></content></item></channel></rss>