imlzr 发表于 2011-9-16 09:14:31

关于软件安装完成后打开主页的问题

刚接触au3,问一个小白问题,有些软件安装完成后会调用IE(或默认浏览器)打开其软件主页,怎么写脚本不让其这样做?

imlzr 发表于 2011-9-16 12:22:36

高手啊,请解答一下

xms77 发表于 2011-9-16 12:35:28

这个问题貌似比较难解决啊!

紫色风林 发表于 2011-9-16 23:53:59

顶一下吧.....

大叔 发表于 2011-9-21 01:01:02

如果非要通过AU3来完成的话我建议你在软件安装前干掉IE等装完以后再修复。

gzh888666 发表于 2011-9-21 01:07:32

本帖最后由 gzh888666 于 2011-9-21 01:34 编辑

最好的办法就是P版说的截取CreateProcess函数。希望高手能写一下如何截取CreateProcess函数CreateProcess function
Creates a new process and its primary thread. The new process runs in the security context of the calling process.

If the calling process is impersonating another user, the new process uses the token for the calling process, not the impersonation token. To run the new process in the security context of the user represented by the impersonation token, use the CreateProcessAsUser or CreateProcessWithLogonW function.

Syntax
Copy
BOOL WINAPI CreateProcess(
__in_opt   LPCTSTR lpApplicationName,
__inout_optLPTSTR lpCommandLine,
__in_opt   LPSECURITY_ATTRIBUTES lpProcessAttributes,
__in_opt   LPSECURITY_ATTRIBUTES lpThreadAttributes,
__in         BOOL bInheritHandles,
__in         DWORD dwCreationFlags,
__in_opt   LPVOID lpEnvironment,
__in_opt   LPCTSTR lpCurrentDirectory,
__in         LPSTARTUPINFO lpStartupInfo,
__out      LPPROCESS_INFORMATION lpProcessInformation
);

drunk 发表于 2011-9-21 09:45:47

processclose("iexplore.exe")

imlzr 发表于 2011-9-21 10:40:15

关键不一定是ie,有可能是其它第三方浏览器。
页: [1]
查看完整版本: 关于软件安装完成后打开主页的问题