本帖最后由 apang 于 2015-1-27 21:52 编辑
- @echo off & setlocal enabledelayedexpansion
- set "k=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
- for /f "tokens=*" %%i in ('reg query "%k%" /s') do (
- set "s=%%i"
- if /i "!s:~,5!" == "HKEY_" set "SID=%%~nxi"
- if /i "!s:~,16!" == "ProfileImagePath" (
- if /i "%%~nxi" == "%userName%" goto :Next
- )
- )
-
- :Next
- SET "renchongyi=%~dp0"
- SET "renchongyi=%renchongyi:\=\\%"
- (for /f "delims=:" %%i in ('findstr /nb :dynamicScript "%~0"') do (
- for /f "delims=" %%a in ('more +%%i "%~0"') do (
- set "s=%%a"
- set "s=!s:\##=\%SID%!"
- set "s=!s:$$\\=%renchongyi%!"
- echo,!s!
- )
- ))>1.reg
- pause & exit/b
-
- :dynamicScript
- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FW_Grisaia]
- "DisplayName"="グリザイアの果実"
- "UninstallString"="$$\\uninst.exe"
- [HKEY_USERS\##\Software\Microsoft\Internet Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore\e6e542c2_0]
- [HKEY_USERS\##\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{CEBFF5CD-ACE2-4F4F-9178-9926F41749EA}\Count]
- "P:\\sebagjvat\\グリザイアの果実\\Tevfnvn.rkr"=hex:03,00,00,00,01,00,00,00,03,00,00,00,\
- 5D,05,00,00,00,00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,00,\
- 00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,FF,FF,FF,FF,70,F0,\
- C4,73,14,30,D0,01,00,00,00,00
- [HKEY_USERS\##\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{F4E57C4B-2036-45F0-A9AB-443BCFE33D9F}\Count]
- "P:\\Hfref\\QZFW\\Qrfxgbc\\グリザイアの果実.yax"=hex:03,00,00,00,01,00,00,00,00,00,00,\
- 00,01,00,00,00,00,00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,\
- 00,00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,00,00,80,BF,FF,FF,FF,FF,80,\
- 17,C5,73,14,30,D0,01,00,00,00,00
- [HKEY_USERS\##\Software\SogouInput.user]
- "CheckFastpassport"=dword:54B694FA
- "LastLoad"=dword:54B5CC18
- "SogouComponentFirstLoad"=dword:54B694BA
- "SogouComponentFirstRun"=dword:54B674D0
- "Used"=dword:54B694BA
- Windows Registry Editor Version 5.00
- [HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
- "LangID"=hex:04,08
- "$$\\Grisaia.exe"="cs2"Windows Registry Editor Version 5.00
- [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
- "LangID"=hex:04,08
- "$$\\Grisaia.exe"="cs2"
- Windows Registry Editor Version 5.00
- [HKEY_CURRENT_USER\Software\Microsoft\DirectInput\MostRecentApplication]
- "Name"="GRISAIA.EXE"
- "Id"="GRISAIA.EXE4D4EA7DF00383000"
- "Version"=hex:0a,05,00,00
- "MostRecentStart"=hex:3a,7c,54,29,48,36,d0,01
- Windows Registry Editor Version 5.00
- [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore\33713289_0]
- @="{0.0.0.00000000}.{cd98d4f9-adca-437a-9e74-9dec67027709}|\\Device\\HarddiskVolume2\\グリザイアの果実\\Grisaia.exe%b{00000000-0000-0000-0000-000000000000}"
- [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore\33713289_0\{219ED5A0-9CBF-4F3A-B927-37C9E5C5F14F}]
- "3"=hex:04,00,00,00,00,00,00,00,00,00,80,3f,00,00,00,00
- "4"=hex:04,20,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00,80,3f,00,00,80,\
- 3f
- "5"=hex:0b,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
- Windows Registry Editor Version 5.00
- [HKEY_USERS\##\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
- "LangID"=hex:04,08
- "$$\\Grisaia.exe"="cs2"
- Windows Registry Editor Version 5.00
- [HKEY_USERS\##\Software\Microsoft\DirectInput\MostRecentApplication]
- "Name"="GRISAIA.EXE"
- "Id"="GRISAIA.EXE4D4EA7DF00383000"
- "Version"=hex:0a,05,00,00
- "MostRecentStart"=hex:3a,7c,54,29,48,36,d0,01
- Windows Registry Editor Version 5.00
- [HKEY_USERS\##\Software\Microsoft\Internet Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore\33713289_0]
- @="{0.0.0.00000000}.{cd98d4f9-adca-437a-9e74-9dec67027709}|\\Device\\HarddiskVolume2\\グリザイアの果実\\Grisaia.exe%b{00000000-0000-0000-0000-000000000000}"
- [HKEY_USERS\##\Software\Microsoft\Internet Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore\33713289_0\{219ED5A0-9CBF-4F3A-B927-37C9E5C5F14F}]
- "3"=hex:04,00,00,00,00,00,00,00,00,00,80,3f,00,00,00,00
- "4"=hex:04,20,00,00,00,00,00,00,10,00,00,00,00,00,00,00,00,00,80,3f,00,00,80,\
- 3f
- "5"=hex:0b,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
- Windows Registry Editor Version 5.00
- [HKEY_USERS\##_Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache]
- "LangID"=hex:04,08
- "$$\\Grisaia.exe"="cs2"
复制代码
|