如何在部署结束时重新启动 [英] How to reboot at end of deployment
问题描述
我的部署包含几个项目,其中一个是服务。
安装不会在
安装过程结束时自动执行重启,这是启动服务所必需的。是否有任何
的方式我可以将一些东西放入deplyment项目来制作目标系统
在设置结束时重启?
- -
Dave
My deployment contains sevral projects, one of which is a service. The
installation does not automatically carry out a reboot at the end of the
installation process, which is required to start the service. Is there any
way I can put something into the deplyment project to make the target system
reboot at the end of the setup?
--
Dave
推荐答案
你必须重新开始使用WinApi和pinvoke。
MSDN中有一个例子:
ms-help://MS.MSDNQTR.2005APR.1033/sysinfo/base/how_to_shut_down_the_system.htm
问候,
Tasos
You will have to restort to WinApi and pinvoke.
There is an example in MSDN at :
ms-help://MS.MSDNQTR.2005APR.1033/sysinfo/base/how_to_shut_down_the_system.htm
Regards,
Tasos
感谢Tasos,但你的链接不起作用。也许我应该提到
我正在使用VS2003。
-
Dave
Tasos Vogiatzoglou ;写道:
Thanks Tasos, but your link didn''t work. Perhaps I should have mentioned that
I am using VS2003.
--
Dave
"Tasos Vogiatzoglou" wrote:
你将不得不重新使用WinApi和pinvoke。
在MSDN中有一个例子:
ms-帮助://MS.MSDNQTR.2005APR.1033/sysinfo/base/how_to_shut_down_the_system.htm
问候,
Tasos
You will have to restort to WinApi and pinvoke.
There is an example in MSDN at :
ms-help://MS.MSDNQTR.2005APR.1033/sysinfo/base/how_to_shut_down_the_system.htm
Regards,
Tasos
你好戴夫,
这里 http://msdn.microsoft.com/library/de...the_system.asp
D>谢谢Tasos,但你的链接不起作用。也许我应该有
D>提到我使用的是VS2003。
D>
D> Tasos Vogiatzoglou写道:
D>
Hello Dave,
Here http://msdn.microsoft.com/library/de...the_system.asp
D> Thanks Tasos, but your link didn''t work. Perhaps I should have
D> mentioned that I am using VS2003.
D>
D> "Tasos Vogiatzoglou" wrote:
D>
你将不得不重新进入WinApi和pinvoke。
有一个例子在MSDN中:
ms-help://MS.MSDNQTR.2005APR.1033/sysinfo/base/how_to_shut_down_the_s
ystem.htm
问候,
Tasos
You will have to restort to WinApi and pinvoke.
There is an example in MSDN at :
ms-help://MS.MSDNQTR.2005APR.1033/sysinfo/base/how_to_shut_down_the_s
ystem.htm
Regards,
Tasos
---
WBR,
Michael Nemtsev ::博客: http://spaces.msn.com/laflour
有时一个人仍然忠于一个事业,只因为它的对手不会因为b $ b不再是平淡的。 (c)Friedrich Nietzsche
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
这篇关于如何在部署结束时重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!