|
回复 #8 lianjiang 的帖子
看了一下卸载部分代码,应该不致于发生这种情况才对
可能是把它脱壳后,程序表现异常。
把overlay补上后,正常了。
------------------------
#Region
#AutoIt3Wrapper_Icon=G:\素材大全\图标资源\XP图标\Icon_102.ico
#AutoIt3Wrapper_Res_Comment=OneKey_Ghost卸载程序
#AutoIt3Wrapper_Res_Description=OneKey_Ghost卸载程序
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=阿福所?侵权不究
#AutoIt3Wrapper_Run_Tidy=y
#Tidy_Parameters=/rel /kv 1
#EndRegion
#NoTrayIcon
DIM $RESULT,$SAVE,$SYSTEM,$MBR,$ID
$RESULT=MSGBOX(289,"OneKey_Ghost","你确定要卸载“OneKey_Ghost”吗?)
IF $RESULT=2 THEN EXIT
$SAVE=INIREAD(@SCRIPTDIR&"\Config.ini","OneKey_Ghost","Save","")
$SYSTEM=INIREAD(@SCRIPTDIR&"\Config.ini"," OneKey_Ghost"," system","")
$MBR=INIREAD(@SCRIPTDIR&"\Config.ini","OneKey_Ghost","mbr","")
$TIMEOUT=INIREAD(@SCRIPTDIR&"\Config.ini","OneKey_Ghost"," timeout","")
$ID=INIREAD(@SCRIPTDIR&"\Config.ini"," OneKey_Ghost"," id","")
$RESULT=MSGBOX(36,"OneKey_Ghost","是否要保留系统备份文件?")
IF $RESULT=7 THEN DIRREMOVE($SAVE&"\OneKey",1)
RUNWAIT(@SCRIPTDIR&"\grubinst.exe --restore="&$MBR&" (hd0)",@SCRIPTDIR,@SW_HIDE)
IF @OSVERSION="WIN_XP" THEN
FILEDELETE($SYSTEM&"\orldr")
FILESETATTRIB($SYSTEM&"\boot.ini","-r")
INIDELETE($SYSTEM&"\boot.ini","operating systems",$SYSTEM&"\orldr")
INIWRITE($SYSTEM&"\boot.ini","boot loader","timeout",$TIMEOUT)
FILESETATTRIB($SYSTEM&"\boot.ini","+r")
ELSE
FILEDELETE($SYSTEM&"\orldr")
FILEDELETE($SYSTEM&"\orldr.mbr")
RUNWAIT("bcdedit /delete "&$ID,@SYSTEMDIR,@SW_HIDE)
RUNWAIT("bcdedit /timeout 3",@SYSTEMDIR,@SW_HIDE)
ENDIF
FILEDELETE(STRINGMID(@SCRIPTDIR,1,3)&"orldr")
FILEDELETE($SYSTEM&"\windows\OneKey_Ghost.txt")
DIRREMOVE(@PROGRAMSDIR&"\OneKey_Ghost",1)
MSGBOX(64,"OneKey_Ghost","卸载完毕?)
RUN(@COMSPEC&' /c ping 127.0.0.1 -n 3&rd /s/q "'&@SCRIPTDIR&'"&exit',@SYSTEMDIR,@SW_HIDE)
EXIT |
|