找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 1091|回复: 5

研究了一夜,我才发现Office2007这货根本不能算例子

[复制链接]
发表于 2017-2-1 06:00:51 | 显示全部楼层 |阅读模式
本帖最后由 1400700226 于 2017-2-1 06:22 编辑

研究了一夜VC2005/2008的注册表的作用,

就是因为Office2007要用得到其注册表。

然而到头来我才发现Office2007用这注册表大概就是为了检查VC的完整性的,难怪怎么Office2007运行还需要msi.dll莫名其妙。

Office2007运行需要很多压根只是安装用得到的注册表。这简直微软大奇葩。有必要弄这么保险么。

精简了一夜查了一夜的资料,到最后弄出大概的VC2008/2005的可能有用的注册表:
p1.reg.zip (16.41 KB, 下载次数: 16)

主要就是
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Installations

可我忽然发现03PE原本的VC6.0等的注册表也是没有的。
03PE下压根没有
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer

真是醉了。

评分

参与人数 1无忧币 +5 收起 理由
糊涂 + 5 赞一个!

查看全部评分

发表于 2017-6-16 13:21:30 | 显示全部楼层
kcyou的自用office2007
  1. rem  安装VC2005(此处VC05仅适用于NT6.0)

  2. for /f  %%i in ('dir /b Wins\x*') do if not exist "%windir%\winsxs\%%i\." md "%windir%\winsxs\%%i" && copy "Wins\%%i" "%windir%\winsxs\%%i"
  3. for /f  %%i in ('dir /b Wins\Manifests') do if not exist "%windir%\winsxs\Manifests\%%i" copy "Wins\Manifests\%%i" "%windir%\winsxs\Manifests\%%i"

  4. rem ---注册vc80注册表----

  5. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.atl_1fc8b3b9a1e18e3b_none_bcab4e08946f6004\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  6. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.atl_1fc8b3b9a1e18e3b_none_bcab4e08946f6004\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  7. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_none_bcc8f3fc9457ed28\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  8. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_none_bcc8f3fc9457ed28\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  9. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_none_bd39c11e9405d29b\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  10. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_none_bd39c11e9405d29b\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  11. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_none_36654d36d135ea77\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  12. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_none_36654d36d135ea77\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  13. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.openmp_1fc8b3b9a1e18e3b_none_ffd3ce2ff7491d9e\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  14. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft.vc80.openmp_1fc8b3b9a1e18e3b_none_ffd3ce2ff7491d9e\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  15. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.atl_1fc8b3b9a1e18e3b_none_e8ff9ccd99f7096b" /f /ve /t REG_SZ /d "8.0"
  16. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.atl_1fc8b3b9a1e18e3b_none_e8ff9ccd99f7096b\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  17. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.atl_1fc8b3b9a1e18e3b_none_e8ff9ccd99f7096b\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  18. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_none_e8a8ec119a3821e7" /f /ve /t REG_SZ /d "8.0"
  19. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_none_e8a8ec119a3821e7\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  20. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.crt_1fc8b3b9a1e18e3b_none_e8a8ec119a3821e7\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  21. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.mfc_1fc8b3b9a1e18e3b_none_e95fc02599af695c" /f /ve /t REG_SZ /d "8.0"
  22. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.mfc_1fc8b3b9a1e18e3b_none_e95fc02599af695c\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  23. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.mfc_1fc8b3b9a1e18e3b_none_e95fc02599af695c\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  24. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_none_fc7803bb717e28a6" /f /ve /t REG_SZ /d "8.0"
  25. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_none_fc7803bb717e28a6\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  26. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_none_fc7803bb717e28a6\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
  27. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.openmp_1fc8b3b9a1e18e3b_none_e1ca20498859d627" /f /ve /t REG_SZ /d "8.0"
  28. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.openmp_1fc8b3b9a1e18e3b_none_e1ca20498859d627\8.0" /f /ve /t REG_SZ /d "8.0.50727.6195"
  29. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_policy.8.0.microsoft.vc80.openmp_1fc8b3b9a1e18e3b_none_e1ca20498859d627\8.0" /f /v "8.0.50727.6195" /t REG_BINARY /d 01
复制代码

这个在MSDN WIn7 x86 x64上运行的话就会报错
他说PE上用没问题……
虽说非PE的话直接不装VC就好了
但是office2007依赖到底是怎样就成了迷
搜了一下没几个人研究给pe加绿色版VC的……
说起来只是因为这东西只能用在PE上吧

点评

猜测这个应该是因为正常Win7系统的WinSxS文件夹有权限吧,管理员权限复制不进去  详情 回复 发表于 2017-6-16 16:28
回复

使用道具 举报

发表于 2017-6-16 13:46:44 来自手机 | 显示全部楼层
干了一夜,楼主注意身体。
回复

使用道具 举报

 楼主| 发表于 2017-6-16 16:28:47 | 显示全部楼层
求道者 发表于 2017-6-16 13:21
kcyou的自用office2007

这个在MSDN WIn7 x86 x64上运行的话就会报错

猜测这个应该是因为正常Win7系统的WinSxS文件夹有权限吧,管理员权限复制不进去

点评

有可能 是那个t开头的用户权限? 我安装那个office2007的时候是提示复制失败 试着放到wepe里安装?  详情 回复 发表于 2017-6-16 17:59
回复

使用道具 举报

发表于 2017-6-16 17:59:10 来自手机 | 显示全部楼层

PE

本帖最后由 求道者 于 2017-6-16 18:27 编辑
1400700226 发表于 2017-6-16 16:28
猜测这个应该是因为正常Win7系统的WinSxS文件夹有权限吧,管理员权限复制不进去


有可能
是那个t开头的用户权限?
我安装那个office2007的时候是提示复制失败
PE下能正常安装……
XP我忽然不太想测了……
果然正常系统还是用安装包好了……

点评

恩恩,是那个TrustedInstaller还是什么来的  详情 回复 发表于 2017-6-16 21:31
回复

使用道具 举报

 楼主| 发表于 2017-6-16 21:31:52 | 显示全部楼层
求道者 发表于 2017-6-16 17:59
有可能
是那个t开头的用户权限?
我安装那个office2007的时候是提示复制失败

恩恩,是那个TrustedInstaller还是什么来的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1|闽公网安备35020302032614号 )

GMT+8, 2026-8-22 10:01

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表