安装完成后,我要执行一个配置程序。我在OnEnd里面实现了,现在问题是,卸载的时候,也运行。我的代码如下:
function OnEnd()
string szCmdLine;
begin
//执行系统配置
if(svSetupType == "Server") then
szCmdLine = "server";
else
szCmdLine = "client";
endif;
if(LaunchAppAndWait(TARGETDIR + "\\BIN\\egsysconfig.exe", szCmdLine, WAIT) < 0) then
MessageBox ("运行系统配置出错", SEVERE);
endif;
end;需要怎么处理这个问题?
function OnEnd()
string szCmdLine;
begin
//执行系统配置
if(svSetupType == "Server") then
szCmdLine = "server";
else
szCmdLine = "client";
endif;
if(LaunchAppAndWait(TARGETDIR + "\\BIN\\egsysconfig.exe", szCmdLine, WAIT) < 0) then
MessageBox ("运行系统配置出错", SEVERE);
endif;
end;需要怎么处理这个问题?
if (nType = REMOVEALL) then
加入你的程序
if(LaunchAppAndWait(TARGETDIR + "\\BIN\\egsysconfig.exe", szCmdLine, WAIT) < 0) then
MessageBox ("运行系统配置出错", SEVERE);
endif;