installshield創建反安裝快捷方式

 

卸載文件的快捷方式

function OnMoved()

string szApp, szCmdLine;

number nDelimiter;

begin

 

   if( !REMOVEALLMODE ) then

 

      // Find the delimiter

      nDelimiter = StrFind( UNINSTALL_STRING, DISK1SETUPEXENAME ) + StrLengthChars( DISK1SETUPEXENAME );

 

      // Build app & quote

      StrSub( szApp, UNINSTALL_STRING, 0, nDelimiter );

      LongPathToQuote( szApp, TRUE );

 

      // Build command line

      StrSub( szCmdLine, UNINSTALL_STRING, nDelimiter, StrLengthChars( UNINSTALL_STRING ) - nDelimiter );

 

      // Create shortcut.

      AddFolderIcon( FOLDER_DESKTOP, "Uninstall Application_ FOLDER_DESKTOP", szApp + szCmdLine, "", "", 0, "", REPLACE );

     AddFolderIcon( FOLDER_STARTMENU, "Uninstall Application_FOLDER_STARTMENU", szApp + szCmdLine, "", "", 0, "", REPLACE );

 

  AddFolderIcon( FOLDER_PROGRAMS "Uninstall Application_FOLDER_PROGRAMS", szApp + szCmdLine, "", "", 0, "", REPLACE );  

  endif;

 

end;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章