你用的是什么版本的?如果是低于7.0的版本需要自己写安装脚本:)我用的是6.2英文版的!
你要在Setup.rul安装脚本文件中加你需要的脚本!!!!
对于在开始菜单中加入删除程序,你可以先创建程序组:
用CreateProgramFolder(程序组名称)来完成,
AddFolderIcon (szProgramFolder, szItemName, szCommandLine, szWorkingDir, szIconPath, nIcon, szShortCutKey, nFlag);
然后再用AddFolderIcon(程序组名称,需加入的条目名,可执行程序的完成路径,应用程序目录,要显示的图标完整路径,
图标索引,快捷键,图标外观标志),返回值0表示成功或已存在,
给个实际例子给你:
//创建程序组
string szFolderName;
szFolderName="你的程序组名称";
if (CreateProgramFolder (szFolderName) < 0) then
MessageBox ("Unable to create program folder", SEVERE);
endif;
//创建条目
#define PROGRAM "C://Windows//Notepad.exe"
#define PARAM "C://Windows//Readme.txt"
STRING szProgramFolder, szItemName, szCommandLine, szWorkingDir, szIconPath;
STRING szShortCutKey, szProgram, szParam;
NUMBER nIcon;
#include "ifx.h"
program
// Set up parameters for call to AddFolderIcon.
szProgramFolder = FOLDER_STARTMENU;
szItemName = "Notepad Example 1";
szProgram = PROGRAM;
szParam = PARAM;
LongPathToQuote (szProgram, TRUE);
LongPathToShortPath (szParam);
szCommandLine = szProgram + " " + szParam;
szWorkingDir = "";
szIconPath = "";
nIcon = 0;
szShortCutKey = "";
// Add a shortcut to the Start menu.
if (AddFolderIcon (szProgramFolder, szItemName, szCommandLine, szWorkingDir,
szIconPath, nIcon, szShortCutKey, REPLACE) < 0) then
MessageBox ("AddFolderIcon failed.", SEVERE);
else
SprintfBox (INFORMATION, "AddFolderIcon", "%s created successfully.",
szItemName);
endif;
szProgramFolder = "";
szItemName = "Notepad Example 2";
// Add a shortcut to the Programs menu.
if (AddFolderIcon (szProgramFolder, szItemName, szCommandLine, szWorkingDir,
szIconPath, nIcon, szShortCutKey, REPLACE) < 0) then
MessageBox ("AddFolderIcon failed.", SEVERE);
else
SprintfBox (INFORMATION, "AddFolderIcon", "%s created successfully.",
szItemName);
endif;
endprogram
对于删除程序,你需要在
function OnUninstallingFile(File)
begin
//添加你的删除程序代码
end;
及:
function OnRemovingSharedFile(File)
begin
//添加删除共享文件代码
return SdExceptions(SHARED, File);
end;
等函数中加自己的删除文件的代码;
太多东西要说了,
如果你对安装脚本不清楚,你最好自己看看它的帮助文件,(虽然是英文的,但比较简单)!