Install Shield静默安装第三方应用

本文详细介绍了如何使用LaunchApplication函数进行第三方应用的静默安装,包括参数设置,如隐藏窗口、等待应用终止等选项。通过指定路径、命令行参数、工作目录和窗口状态,实现自动化安装过程。
摘要由CSDN通过智能技术生成

1、LaunchAppAndWait函数的第三个参数:传入LAAW_OPTION_HIDDEN即给示隐藏窗口

2、The LaunchApplication function launches and optionally waits for the specified application.

LaunchApplication uses either the Windows API function CreateProcess or the Windows API function ShellExecuteEx (if nOptions includes LAAW_OPTION_USE_SHELLEXECUTE) to launch the specified application. After the application is launched, if the LAAW_OPTION_WAIT option is specified, the installation calls WaitForApplication to wait for the application to terminate; once the process has completed or the specified timeout value has elapsed, the installation continues.
 Syntax

 LaunchApplication( byval string szProgram, byval string szCmdLine, byval string szDirectory, byval number nShowWindow, byval number nTimeOut, byval number nOptions );
 Parameters

 LaunchApplication Parameters 
 Parameter  
 Description

 szProgram  
 Specifies the complete path and file name of the application to be launched.

 If nOptions does not include LAAW_OPTION_USE_SHELLEXECUTE, you can instead specify the file name of the application to be launched in the szCmdLine parameter; if you do so, pass an empty string ("") in the szProgram parameter.

 The szProgram parameter does not support URLs.

 szCmdLine  
 Specifies the command-line parameters to pass to the launched application. To launch the application with no command-line parameters, pass a null string ("").

 If nOptions does not include LAAW_OPTION_USE_SHELLEXECUTE, you can also specify the file name of the ap

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值