<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Win7 on 冯威的博客</title><link>https://fwhyy.com/tags/win7/</link><description>Recent content in Win7 on 冯威的博客</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 24 May 2011 00:00:00 +0800</lastBuildDate><atom:link href="https://fwhyy.com/tags/win7/atom.xml" rel="self" type="application/rss+xml"/><item><title>Windows服务在Win7中不能安装的解决方法</title><link>https://fwhyy.com/2011/05/windows-service-in-windows-7-cant-install-solution/</link><pubDate>Tue, 24 May 2011 00:00:00 +0800</pubDate><guid>https://fwhyy.com/2011/05/windows-service-in-windows-7-cant-install-solution/</guid><description>&lt;p&gt;用C#写的Windows服务在Win7中安装时出现如下错误：&lt;/p&gt;
&lt;p&gt;&lt;img src="https://img.fwhyy.com/2022/202201290648137.webp" alt="2011-05-24_102447" loading="lazy" decoding="async"&gt;
&lt;/p&gt;
&lt;p&gt;解决方法：&lt;/p&gt;
&lt;p&gt;1 安装服务的脚本写在bat文件中，一定要注意路径，如下&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;D:\Project\JXW\Code\WorkFlow\FlowServer\installutil.exe D:\Project\JXW\Code\WorkFlow\FlowServer\FlowServer.exe

pause


net start ShineFlow.FlowServer
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2 在bat文件上点击右键-》以管理员身份运行。&lt;/p&gt;
&lt;p&gt;3 成功安装服务，如下：&lt;/p&gt;
&lt;p&gt;&lt;img src="https://img.fwhyy.com/2022/202201290649864.webp" alt="2011-05-24_102806" loading="lazy" decoding="async"&gt;
&lt;/p&gt;</description></item></channel></rss>