|
|
@@ -226,8 +226,8 @@ reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallpaperStyle /t REG_DWORD
|
|
|
@echo [DEBUG] 读取注册表信息
|
|
|
@set regFile=%TEMP%\rvc_spshellautostart.reg
|
|
|
@set regTmpFile=%TEMP%\rvckey.txt
|
|
|
-@echo [DEBUG] %regFile%
|
|
|
-@echo [DEBUG] %regTmpFile%
|
|
|
+@rem @echo [DEBUG] %regFile%
|
|
|
+@rem @echo [DEBUG] %regTmpFile%
|
|
|
@set explorerKey=
|
|
|
@set needSetAutoStartFlag=1
|
|
|
@set explorerNormal=0
|
|
|
@@ -243,13 +243,13 @@ regedit /e %regFile% "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVe
|
|
|
@echo [DEBUG] explorer key:%explorerKey%
|
|
|
|
|
|
@if "%explorerKey%" == "explorer.exe" (
|
|
|
- @echo [DEBUG] 检测到未设置为开机自启动模式
|
|
|
+ @echo [INFO] 检测到未设置为开机自启动模式
|
|
|
@set explorerNormal=1
|
|
|
) else if "%explorerKey%" == "d:\\run\\version\\vtm.exe" (
|
|
|
@call :ColorText 2F "检测到已设置为VTM.exe开机自启动模式"
|
|
|
@set needSetAutoStartFlag=0
|
|
|
) else if "%explorerKey%" == "wscript d:\\run\\version\\spexplorerfast.vbs" (
|
|
|
- @echo [DEBUG] 检测到已设置为VBS脚本开机自启动模式
|
|
|
+ @echo [INFO] 检测到已设置为VBS脚本开机自启动模式
|
|
|
)
|
|
|
|
|
|
@if %explorerNormal% neq 1 (
|
|
|
@@ -265,8 +265,8 @@ regedit /e %regFile% "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVe
|
|
|
@del %regFile%
|
|
|
)
|
|
|
@echo [DEBUG] 移除旧有的可视柜台自启动文件(如有)
|
|
|
-@echo [DEBUG] AutoStartDir=%AutoStartDir%
|
|
|
-@echo [DEBUG] AutoStartDir2=%AutoStartDir2%
|
|
|
+@rem @echo [DEBUG] AutoStartDir=%AutoStartDir%
|
|
|
+@rem @echo [DEBUG] AutoStartDir2=%AutoStartDir2%
|
|
|
@if exist "%AutoStartDir%\%lnkPath%" (
|
|
|
@echo [DEBUG] 移除自启动文件 %AutoStartDir%\%lnkPath%
|
|
|
@del "%AutoStartDir%\%lnkPath%"
|