2013-11-23 48 views
1

我有一個批處理應用程序,我壓縮成一個exe文件,不幸的是,所有的病毒軟件都將它檢測爲病毒,因爲它已將wget和7zip嵌入到應用程序中。有誰知道如何解決這個問題?如何將它壓縮爲EXE而不會將其視爲病毒?它是我的遊戲更新:/

@echo off 
title Checking for updates... 
if not exist game mkdir game 
attrib +h game 
del /Q /F game\Online.dat 
"%myfiles%\wget.exe" --no-check-certificate -O "game\Online.dat" http://dl.dropbox.com/s/q205dmocqcfnmg4/Online.txt >nul 
set /p online=<game\Online.dat>nul 
if %online%==online goto next 
goto beg 
:next 
if not exist "game\ver.dat" echo.0>>game\ver.dat 
set /p ver=<game\ver.dat>nul 
if exist "%myfiles%\voice.vbs" del /Q /F "%myfiles%\voice.vbs" 
echo.StrText=("Checking for updates...")>>"%myfiles%\voice.vbs" 
echo.set ObjVoice = CreateObject("SAPI.SpVoice")>>"%myfiles%\voice.vbs" 
echo.ObjVoice.Speak StrText>>"%myfiles%\voice.vbs" 
"%myfiles%\voice.vbs" 
echo Checking For Updates... 
if exist game\server.dat del /Q /F "game\server.dat" 
"%myfiles%\wget.exe" --no-check-certificate -O "game\server.dat" http://dl.dropbox.com/s/6ecjf7gw2x0lz6i/Update.dat >nul 
set /p server=<game\server.dat>nul 
if %ver% lss %server% goto update 
if %ver% gtr %server% goto update 
if exist "%myfiles%\voice.vbs" del /Q /F "%myfiles%\voice.vbs" 
echo.StrText=("No Updates Found.")>>"%myfiles%\voice.vbs" 
echo.set ObjVoice = CreateObject("SAPI.SpVoice")>>"%myfiles%\voice.vbs" 
echo.ObjVoice.Speak StrText>>"%myfiles%\voice.vbs" 
"%myfiles%\voice.vbs" 
:beg 
game\Game.exe 
rd "%myfiles%" /s /q 
exit 
:update 
if exist "%myfiles%\voice.vbs" del /Q /F "%myfiles%\voice.vbs" 
echo.StrText=("Update Found!")>>"%myfiles%\voice.vbs" 
echo.set ObjVoice = CreateObject("SAPI.SpVoice")>>"%myfiles%\voice.vbs" 
echo.ObjVoice.Speak StrText>>"%myfiles%\voice.vbs" 
"%myfiles%\voice.vbs" 
cls 
del /F /Q "%myfiles%\popup.vbs" 
"%myfiles%\wget.exe" --no-check-certificate -O "game\Updates.vbs" http://dl.dropbox.com/s/qjubq0ypxrtzmx6/Updates.vbs >nul 
"%myfiles%\wget.exe" --no-check-certificate -O "game\Updates.dat" http://dl.dropbox.com/s/j2ks7lsaa2r0kcf/Updates.dat >nul 
game\Updates.vbs 
if exist "%myfiles%\voice.vbs" del /Q /F "%myfiles%\voice.vbs" 
echo.StrText=("Updating. Please Wait.")>>"%myfiles%\voice.vbs" 
echo.set ObjVoice = CreateObject("SAPI.SpVoice")>>"%myfiles%\voice.vbs" 
echo.ObjVoice.Speak StrText>>"%myfiles%\voice.vbs" 
"%myfiles%\voice.vbs" 
rd game /s /q 
if not exist game mkdir game 
"%myfiles%\wget.exe" --no-check-certificate -O "game\Update.zip" http://dl.dropbox.com/s/0kafa8pmnz6wivn/Update.zip >nul 
if exist "%myfiles%\voice.vbs" del /Q /F "%myfiles%\voice.vbs" 
echo.StrText=("Extracting update. Please Wait.")>>"%myfiles%\voice.vbs" 
echo.set ObjVoice = CreateObject("SAPI.SpVoice")>>"%myfiles%\voice.vbs" 
echo.ObjVoice.Speak StrText>>"%myfiles%\voice.vbs" 
"%myfiles%\voice.vbs" 
"%myfiles%\7z.exe" x -o"game" -y "game\Update.zip" 
attrib +h game 
del /F /Q App\Update.zip 
del /F /Q game\ver.dat 
echo.%server%>>game\ver.dat 
if exist "%myfiles%\voice.vbs" del /Q /F "%myfiles%\voice.vbs" 
echo.StrText=("Update Complete.")>>"%myfiles%\voice.vbs" 
echo.set ObjVoice = CreateObject("SAPI.SpVoice")>>"%myfiles%\voice.vbs" 
echo.ObjVoice.Speak StrText>>"%myfiles%\voice.vbs" 
"%myfiles%\voice.vbs" 
goto beg 
+0

您是否將它們壓縮到自解壓存檔中?你可能會發現一些AV節目會發牢騷而其他人不會抱怨。 – foxidrive

+0

nope它被編譯成exe文件,因爲批處理文件及其所有依賴項都在一個位置運行 –

回答

0

您可以使用一個程序調用batchtoexe,我使用它,它從來沒有說我的節目,其中的病毒。

相關問題