高分请教在InstallShield for VC 创建卸载快捷方式的问题
我在程序的安装包里创建卸载快捷方式,方法如下:
function SetupFolders()
NUMBER nResult;
STRING svLogFile,szCommandLine;
begin
// TODO : Add all your folder (program group) along with shortcuts (program items)
//
//
// CreateProgramFolder, AddFolderIcon....
//
svLogFile=TARGETDIR^"\\Uninst.isu";
LongPathToQuote(svLogFile ,TRUE );
szCommandLine = UNINST + " -f " + svLogFile;
AddFolderIcon(TARGETDIR,"卸载系统",szCommandLine,WINDIR, " ",0, " ",REPLACE);
nResult = CreateShellObjects( "" );
return nResult;
end;
运行的结果是快捷方式是创建了,目标是:C:\WINDOWS\IsUninst.exe -f "d:\Program Files\机载SAR数据处理演示系统\Uninst.isu"。可是双击时报如下错误:
Unable to locate the installation log file' '.
大家谁知道这是怎么回事?是不是我的参数传错了?