zoukankan      html  css  js  c++  java
  • Delphi安装NT服务程序时(不出现提示信息)

    如果我们不加上"/silent",那么Delphi在安装和卸载NT服务程序时候,都会出现一个提示信息,不希望出现这个提示信息,那么使用如下命令:

    1,安装:“你的nt程序 /install /silent”。

    2,卸载:“你的nt程序 /uninstall /silent”。

    这是Delphi中注册服务方法声明,Silent是决定是否提示的参数:

    procedure TServiceApplication.RegisterServices(Install, Silent: Boolean); 

    下面是具体出现提示的代码:

       if Success and not Silent then
          if Install then
            DisplayMessage(SServiceInstallOK, mtInformation)
          else
            DisplayMessage(SServiceUninstallOK, mtInformation);

    看到这些,我想大家就知道为什么不加那个"/silent"参数会出现提示了!

    http://blog.csdn.net/sunylat/article/details/8847730

  • 相关阅读:
    创建被访问的swf文件
    BFS寻路算法的实现
    Flex里的命名空间,fx、mx、s【转】
    Flex的基础用法【转】
    Pow(x, n)
    Roman to Integer
    Integer to Roman
    Divide Two Integers
    Single Number II
    Single Number I
  • 原文地址:https://www.cnblogs.com/findumars/p/5236988.html
Copyright © 2011-2022 走看看