在某一个函数(具体记不得了)写如下代码:if svDefGroup!="" then
// Add main program icon
AddFolderIcon(FOLDER_PROGRAMS^svDefGroup,@PRODUCT_NAME,
TARGETDIR^"\\AutoDial.exe",TARGETDIR,
TARGETDIR^"\\AutoDial.exe",0,"",REPLACE); // Add help file icon
LogFilePath=TARGETDIR^"\\AutoDial.chm";
LongPathToShortPath(LogFilePath);
AddFolderIcon(FOLDER_PROGRAMS^svDefGroup,@PRODUCT_NAME+" Help",
"hh.exe "+LogFilePath,WINDIR,
"",0,"",REPLACE);
// Add uninstall icon
LogFilePath=TARGETDIR^"\\"^UNINST_LOGFILE_NAME;
LongPathToShortPath(LogFilePath);
AddFolderIcon(FOLDER_PROGRAMS^svDefGroup,("Uninstall "+@PRODUCT_NAME),
("IsUninst.exe -f"+LogFilePath),WINDIR,
"",0,"",REPLACE);
endif;
// Add main program icon
AddFolderIcon(FOLDER_PROGRAMS^svDefGroup,@PRODUCT_NAME,
TARGETDIR^"\\AutoDial.exe",TARGETDIR,
TARGETDIR^"\\AutoDial.exe",0,"",REPLACE); // Add help file icon
LogFilePath=TARGETDIR^"\\AutoDial.chm";
LongPathToShortPath(LogFilePath);
AddFolderIcon(FOLDER_PROGRAMS^svDefGroup,@PRODUCT_NAME+" Help",
"hh.exe "+LogFilePath,WINDIR,
"",0,"",REPLACE);
// Add uninstall icon
LogFilePath=TARGETDIR^"\\"^UNINST_LOGFILE_NAME;
LongPathToShortPath(LogFilePath);
AddFolderIcon(FOLDER_PROGRAMS^svDefGroup,("Uninstall "+@PRODUCT_NAME),
("IsUninst.exe -f"+LogFilePath),WINDIR,
"",0,"",REPLACE);
endif;
解决方案 »
- 虚拟桌面原理及实现
- 困绕N天了。C/S模式,如何获取远程客户端的文件及图标到本地,类似资源管理器,管理远程主机
- 收到第一笔软件开发费,放分!
- 如何实现在秤上放一件物品就自动提交一条记录,而不必每次都点按钮
- 菜鸟的几个问题------------------------(高手请进)
- 我的代码哪里有问题?(关于登陆的)很简单的!!
- 急!!请问各位大侠,DBGrid中排序问题?
- win socket编程问题!
- 请教一个多用户的问题:
- 关于ado和odbc(紧急求救)--问题有点菜,多包涵!!
- 有个数据导入的问题困扰我好久了,高手帮忙。
- 我安装了第三方DBGridEh表格控件,但不知道如何在最后一行添加合计(如字段“数量”的总和),请高手帮助
//szIconPath = TARGETDIR+"\\"+@PRODUCT_KEY;
szIconPath = PROGRAMFILES+"InstallShield Installation Information\\"+PRODUCT_GUID+"\\setup.exe";
szItemName = "卸载 "+@PRODUCT_NAME;
//szProgram = szIconPath;
svTmp = PROGRAMFILES+"InstallShield Installation Information\\"+PRODUCT_GUID+"\\setup.exe";
LongPathToQuote(svTmp, TRUE);
szParam = svTmp;
LongPathToShortPath(szParam);
svTmp = COMMONFILES+"InstallShield\\engine\\6\\Intel 32\\ctor.dll";
LongPathToShortPath(svTmp);
szProgram = "RunDll32"+" "+ svTmp+",LaunchSetup";
szCommandLine = szProgram + " " + szParam;
//RunDll32 D:\PROGRA~1\COMMON~1\INSTAL~1\ENGINE\6\INTEL3~1\ctor.dll,LaunchSetup "D:\Program Files\InstallShield Installation Information\PRODUCT_GUID+"\\setup.exe"
if (AddFolderIcon(szProgramFolder, szItemName, szCommandLine, szWorkingDir,
szIconPath, nIcon, szShortCutKey, nFlag) < 0) then
return -1;
endif;
function OnMoving()
string szAppPath, LogFilePath;
begin
// Set LOGO Compliance Application Path
// TO DO : if your application .exe is in a subfolder of TARGETDIR then add subfolder
szAppPath = TARGETDIR;
szFolder = FOLDER_PROGRAMS^ @PRODUCT_NAME;
RegDBSetItem(REGDB_APPPATH, szAppPath);
RegDBSetItem(REGDB_APPPATH_DEFAULT, szAppPath ^ @PRODUCT_KEY);
// Add uninstall icon
AddFolderIcon(szFolder , ("卸载 "+@PRODUCT_NAME),
(UNINSTALL_STRING),WINDIR,
"",0,"",REPLACE);
end;
Document ID: Q105816
This article applies to the following:
Product(s): InstallShield Developer 7.02
Last Revised On: 02/04/2002
Summary
I am creating a Standard Project and I want to create an uninstall shortcut for my application. How do I do this with a Standard Project?
--------------------------------------------------------------------------------Discussion
The following script function will create a shortcut called "Run the Uninstall" in a folder called "Uninstall Shortcut" under the Start | Programs menu that will run your install in maintenance mode:
prototype CreateUninstallShortcut(); function CreateUninstallShortcut() string strCmdLine; LIST lstPath; begin strCmdLine = UNINSTALL_STRING; // The path has to be handled differently if you are running on // Windows 9X. if ( SYSINFO.WIN9X.bWin9X ) then lstPath = ListCreate( STRINGLIST ); StrGetTokens( lstPath, UNINSTALL_STRING, "/" ); ListGetFirstString( lstPath, strCmdLine ); LongPathToQuote( strCmdLine, TRUE ); strCmdLine = strCmdLine + " /M" + PRODUCT_GUID; endif; // Create the actual shortcut... AddFolderIcon(FOLDER_PROGRAMS ^ "Uninstall Shortcut", "Run the Uninstall",strCmdLine, "","",0, "", NULL ); end;
--------------------------------------------------------------------------------Additional Information
A Windows logo requirement states that the uninstaller must be accessible through Add/Remove Programs in the Control Panel and must operate properly from the Control Panel.
STRING LogFilePath;
begin
// TODO : Add all your folder (program group) along with shortcuts (program items)
//
//
// CreateProgramFolder, AddFolderIcon....
//
// Note : for 16-bit setups you should add an uninstaller icon pointing to
// your log file. Under 32-bit this is automatically done by Windows.
LogFilePath=TARGETDIR^"\\"^UNINST_LOGFILE_NAME;
LongPathToShortPath(LogFilePath);
AddFolderIcon(FOLDER_PROGRAMS^svDefGroup,("卸载 "+@PRODUCT_NAME),("IsUninst.exe -f"+LogFilePath),WINDIR,"",0,"",REPLACE); return 0;
end;
能告诉我InstallShield Developer 7.02的下栽地址吗,不胜感谢,
交个朋友好吗?
[email protected]