要使用程序进行处理,首先声明:
// your script function prototypes
prototype CorrectUninstallString();
// your global variables
然后添加代码:
function CorrectUninstallString()
STRING szString1,szLins,svValue;
NUMBER NLinl,NValue,NSize,nType;
begin
NLinl=StrFind(UNINSTALL_STRING,"<UNINSTALL_CMD>");
if NLinl<0 then
//正常的
else
//需要纠正
StrSub(szString1,UNINSTALL_STRING,0,NLinl);
UNINSTALL_STRING=szString1+",LaunchSetup "+'"'+DISK1TARGET+'//setup.exe"';
endif;
end;