Win7系统把exe文件注册成为系统服务的方法
原创
2016年12月27日 23:57:57
- 标签:
<li><a href="http://so.csdn.net/so/search/s.do?q=intellij idea&t=blog" target="_blank">intellij idea</a> <span>/</span></li>
<li><a href="http://so.csdn.net/so/search/s.do?q=激活&t=blog" target="_blank">激活</a> <span>/</span></li>
<li><a href="http://so.csdn.net/so/search/s.do?q=注册服务&t=blog" target="_blank">注册服务</a> <span>/</span></li>
<li><a href="http://so.csdn.net/so/search/s.do?q=license&t=blog" target="_blank">license</a> <span style="display: none;">/</span></li>
</ul>
<ul class="right_bar">
<li><button class="btn-noborder"><i class="icon iconfont icon-read"></i><span class="txt">3100</span></button></li>
<!--<li><button class="btn-noborder"><i class="icon iconfont icon-dashang-"></i><span class="txt">0</span></button></li>-->
<li class="edit" style="display: none;">
<a class="btn-noborder" href="http://write.blog.csdn.net/postedit/53900618">
<i class="icon iconfont icon-bianji"></i><span class="txt">编辑</span>
</a>
</li>
<li class="del" style="display: none;">
<a class="btn-noborder" onclick="javascript:deleteArticle(fileName);return false;">
<i class="icon iconfont icon-shanchu"></i><span class="txt">删除</span>
</a>
</li>
</ul>
</div>
<div id="article_content" class="article_content csdn-tracking-statistics" data-mod="popu_519" data-dsm="post" style="overflow: hidden;">
<div class="markdown_views"><p>在博客<a href="http://blog.csdn.net/rickyit/article/details/51790069" target="_blank">IntelliJ IDEA 16 本地LicenseServer激活(破解)</a>中有提到直接把license EXE程序注册为服务,感觉还是把EXE注册为服务舒服,这里记录一下实际的操作过程!</p>
1.下载工具
一个叫做instsrv.exe,第二个叫做srvany.exe;百度网盘上也有的。
2.安装服务
执行命令:instsrv.exe IntelliJIDEALicenseServer d:srvanysrvany.exe //IntelliJIDEALicenseServer
IntelliJIDEALicenseServer是服务的名字,自己也定义个服务名,前后两个要一致。
3.修改注册表
1.打开注册表
在HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices
这个目录下可以看到新创建的服务
2. 创建项
鼠标右击新建一个项,将其命名为Parameters;
3. 创建字符串值
进入Parameters后,在右侧窗口里新建一个命名为Application的字符串值,字符串的值就是程序的路径,这个路径不要删除!!!经过2、3之后得到以下:
4.启动服务
注意:可执行文件路径
不要删除!!!
5.启动IDEA
完美!!!