1. Wininit.ini 在C:\Windows:  [rename]
  NUL=C:\Program Files\yoursoft\test.exe2. 批处理:
  @ECHO OFF
  :REPEAT
  DEL <file to be deleted>
  IF EXIST <file to be deleted> GOTO REPEAT
  DEL <this batchup file>
  例:
  <file to be deleted>=C:\Program Files\yoursoft\test.exe
  <this batchup file>=C:\Windows\delme.bat
  该批处理在uninstall即将推出时调用,它会循环检查并删除exe, 然后删除自己。如果可能的话,尽量使用第一种方法,因为它才是uninstall程序常用的,包括InstallShield和Wise等等,你注意没有uninstall后常要重起,就是这个原因。