WindoStroy Posted January 7, 2009 Share Posted January 7, 2009 to all. my method:;check for browser in ram;Internet ExlorererIf ProcessExists("iexplore.exe") Then ProcessClose("iexplore.exe")EndIf;Mozilla FirefoxIf ProcessExists("firefox.exe") Then ProcessClose("firefox.exe")EndIf;Opera If ProcessExists("opera.exe") Then ProcessClose("opera.exe")EndIf;Internet ExlorerIf FileExists(@ProgramFilesDir & "\Internet Explorer\iexplore.exe") Then FileMove(@ProgramFilesDir & "\Internet Explorer\iexplore.exe", @ProgramFilesDir & "\Internet Explorer\iexplore.exe.bak")EndIf;Mozilla FirefoxIf FileExists(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe") Then FileMove(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe", @ProgramFilesDir & "\Mozilla Firefox\firefox.exe.bak")EndIf;Opera If FileExists(@ProgramFilesDir & "\Opera\opera.exe") Then FileMove(@ProgramFilesDir & "\Opera\opera.exe", @ProgramFilesDir & "\Opera\opera.exe.bak")EndIfProcessWaitClose($EXENAME,300);Internet ExlorerIf FileExists(@ProgramFilesDir & "\Internet Explorer\iexplore.exe.bak") Then FileMove(@ProgramFilesDir & "\Internet Explorer\iexplore.exe.bak", @ProgramFilesDir & "\Internet Explorer\iexplore.exe")EndIf;Mozilla FirefoxIf FileExists(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe.bak") Then FileMove(@ProgramFilesDir & "\Mozilla Firefox\firefox.exe.bak", @ProgramFilesDir & "\Mozilla Firefox\firefox.exe")EndIf;Opera If FileExists(@ProgramFilesDir & "\Opera\opera.exe.bak") Then FileMove(@ProgramFilesDir & "\Opera\opera.exe.bak", @ProgramFilesDir & "\Opera\opera.exe")EndIf Link to comment Share on other sites More sharing options...
radix Posted January 7, 2009 Share Posted January 7, 2009 @WindoStroyHave you tried your script in Windows with WFP turned on? Link to comment Share on other sites More sharing options...
Csimbi Posted October 16, 2009 Share Posted October 16, 2009 Here's my script.I install SPTD, then reboot, then DT, then remove the crap.REM Daemon Tools Phase 1START /WAIT %1\!INSTALL\DAEMON\SPTDinst-v160-x86.exe add /q<insert reboot cycle here>REM Daemon Tools Phase 2START /WAIT %1\!INSTALL\DAEMON\daemon4304-lite(158).exe /S /D=%ProgramFiles%\DTLS_LT\REM Daemon Tools Phase 3 - uninstall the toolbarfor /f "tokens=3*" %%i IN ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Toolbar" /v "UninstallString" ^| findstr "REG_SZ"') do "%%i %%j" /SREM Daemon Tools Phase 4 - remove leftoverDIR_LOC.CMD "%ProgramFiles%" "RD /S /Q " "_DTLite.xml"You can find DIR_LOC.CMD here. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now