Jump to content


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.
Photo

who can help me ?Uninstall problem.


3 replies to this topic

stdcplusplus

stdcplusplus
  • Members
  • 14 posts

Posted 21 January 2006 - 03:29

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;

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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.

stdcplusplus

stdcplusplus
  • Members
  • 14 posts

Posted 14 February 2006 - 09:35

then how can i remove the program?
I'm newer

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 February 2006 - 12:53

Which program?