This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Corrupt Cygwin64 install?


> Mike McCarty writes:
>> Ooo...  You still have that script lying around?  ;^)

Hit send too soon…  That reg file needs to be combined with actually
adding the exclusion, which I did inside the batch script that also
updated Cygwin:

@ECHO OFF
REM ############################################################
SETLOCAL
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
REM ############################################################
SET CYGWIN_INSTALL=\\full\path\to\Cygwin
SET REM=ECHO.
SET TM_EXCLUDED_FOLDER="HKLM\Software\TrendMicro\PC-cillinNTCorp\CurrentVersion\Real Time Scan Configuration" /V "ExcludedFolder"
FOR /F "usebackq tokens=2* delims=       " %%O IN (`REG QUERY %TM_EXCLUDED_FOLDER% 2^> NUL ^| FIND "REG_SZ"`) DO (
  %REM%ECHO "%%P" | FIND /V /I "C:\Programs|" 1>NUL 2>NUL
  IF ERRORLEVEL 1 (
    ECHO unchanged ExcludedFolders: %%P
  ) ELSE (
    IF NOT DEFINED OPTION_NOREGEDIT (
      %REM%REG ADD %TM_EXCLUDED_FOLDER% /D "%%P%CYGWIN_INSTALL%|" /F 1>NUL 2>NUL
    )
    ECHO extended  ExcludedFolders: %%PC:Programs^|
  )
)


Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]