I use the funcation that the InstallShield provides to create a Uninstall Shortcut,
It's OK on WINXP&WIN2K, but there is problem on WIN98&WINME.
CODE:
prototype CreateUninstallShortcut();
function CreateUninstallShortcut()
string strCmdLine;
LIST lstPath;
begin
// For an InstallScript installation:
strCmdLine = DISK1TARGET ^ "Setup.exe";
// For an InstallScript MSI installation:
strCmdLine = UNINSTALL_STRING;
// The path has to be handled differently if you are running
// an InstallScript MSI installation 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 shortcut.
AddFolderIcon(FOLDER_PROGRAMS ^ "Uninstall Shortcut", "Run the Uninstall",strCmdLine, "","",0, "", NULL );
end;
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
who can help me ?Uninstall problem.
Started by
stdcplusplus
, Jan 21 2006 03:29
3 replies to this topic
Posted 24 January 2006 - 09:05
If your project type is "InstallScript" (and not "InstallScript MSI") then you should remove all the stuff that applies only to InstallScript MSI from the script sample.
Stefan Krüger
InstallSite.org twitter facebook
Posted 14 February 2006 - 12:53
Which program?
Stefan Krüger
InstallSite.org twitter facebook