设置自启动:
[Registry]
Root: HKLM; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\Run; ValueType: string; ValueName: netfairy; ValueData: {app}\netfairy.exe; Flags: uninsdeletevalue
设置程序组、桌面图标:
[Icons]
Name: {group}\Start netfairy; Filename: {app}\netfairy.exe; IconFilename: {app}\netfairy.exe; IconIndex: 0; WorkingDir: {app}
Name: {group}\Uninstall; Filename: {app}\unins000.exe; IconFilename: {app}\unins000.exe; WorkingDir: {app}
Name: {commondesktop}\网络精灵流量监控; Filename: {app}\netfairy.exe; IconFilename: {app}\netfairy.exe; IconIndex: 0; WorkingDir: {app}
安装后设置IE主页:
[Registry]
Root: HKCU; Subkey: "SOFTWARE\Microsoft\Internet Explorer\Main"; ValueType: string; ValueName: "Start Page"; ValueData: "http://www.google.com; tasks: changestartpage
[Tasks]
Name: changestartpage; Description: "设置谷歌为首页"
安装前、卸载前关闭正在运行的程序:
[Code]
function InitializeSetup():Boolean;
var
ResultCode: Integer;
begin
ShellExec('open' , ExpandConstant('{cmd}'), '/c taskkill /f /im netfairy.exe', '',SW_HIDE, ewNoWait, ResultCode);
Result:=true;
end;
function InitializeUninstall(): Boolean;
var
ResultCode: Integer;
begin
ShellExec('open' , ExpandConstant('{cmd}'), '/c taskkill /f /im netfairy.exe', '',SW_HIDE, ewNoWait, ResultCode);
Result:=true;
end;
这里还有一些其它的 http://www.cnblogs.com/pyw0818/archive/2011/01/22/1941797.html
呵呵,谢谢
VaTG790i.最好的<a href=http://www.kyfei.com>网站推广软件</a>,
非常好
....................
;ui;普i;uighur;ui;ui;个
在unix网络编程中看到了关于TCP/IP的一些内容,我感觉还是写的不够。正在下载中,一定
下载地址呢