12
返回列表 发新帖
楼主: firefox3
收起左侧

[求助] win8 64位 下能用的绿色版 vmware9 或者 8

 关闭 [复制链接]
lsldream
发表于 2012-10-26 14:29:16 | 显示全部楼层
firefox3 发表于 2012-10-23 17:36
好了 开启管理员账户安装成功 ,现在用的很顺手

请问你用的是哪个版本,给个地址。我win8 64位能安装vm9,但VM9虚拟装xp时报错。
firefox3
 楼主| 发表于 2012-10-26 14:31:41 | 显示全部楼层
lsldream 发表于 2012-10-26 14:29
请问你用的是哪个版本,给个地址。我win8 64位能安装vm9,但VM9虚拟装xp时报错。

http://bbs.kafan.cn/thread-1124261-1-1.html
cantianlin
发表于 2012-10-30 16:06:21 | 显示全部楼层
firefox3
 楼主| 发表于 2012-10-30 16:59:28 | 显示全部楼层
cantianlin 发表于 2012-10-30 16:06
http://www.xp911.com/lvse/System/enhance/8394.htm这个看看!

谢谢
cantianlin
发表于 2012-11-5 16:26:51 | 显示全部楼层
可以的!
不会写信
发表于 2012-11-9 01:36:18 | 显示全部楼层
本帖最后由 不会写信 于 2012-11-9 01:38 编辑

用这个不用开admin就能安装,而且解决了WIN8下不识别“%CD%"变量的问题
  1. cd /d %~dp0
  2. cls
  3. @echo off
  4. CLS
  5. color 0a
  6. Title VMware 9.0.0 绿色精简汉化版
  7. set vmbit=
  8. echo 提示:最好在安装之前,先运行一下"!)卸载VMware.cmd"文件,以免旧版本干扰新版本安装
  9. echo.
  10. echo 注意:
  11. echo 运行此批处理文件后,安装过程持续十几秒钟,并将跳出VMware服务安装窗口.
  12. echo 如果窗口一闪而过,说明安装过程中出了错误.
  13. echo 未正确安装VMware将导致虚拟机运行出错.
  14. echo 请先排除故障后再次运行"!)安装VMware.cmd"批处理文件进行安装.
  15. echo.
  16. echo 按任意键继续安装VMware&pause>nul
  17. reg query "HKLM\SOFTWARE\VMware, Inc." >nul 2>nul || reg query "HKLM\SOFTWARE\Wow6432Node\VMware, Inc." >nul 2>nul&&(echo.&echo  系统中已经安装了VMware,请先卸载干净并重启电脑!!!&pause>nul&exit)
  18. cls
  19. echo ................
  20. echo 正在安装VMware 9.0.0 绿色精简汉化版,请稍后...
  21. echo ................
  22. echo.
  23. rd /s /q "%AllUsersProfile%\VMware" >nul 2>nul
  24. rd /s /q "%AllUsersProfile%\Application Data\VMware" >nul 2>nul
  25. rd /s /q "%AppData%\VMware" >nul 2>nul||del /f /s /q "%AppData%\VMware" >nul 2>nul
  26. ver|find "6.">nul && (set profilepath=%AllUsersProfile%)
  27. ver|find "5.">nul && (set profilepath=%AllUsersProfile%\Application Data)
  28. md "%AppData%\VMware" >nul
  29. if %errorlevel% neq 0 echo 创建目录失败,请关闭杀毒软件或者HIPS后再重新安装VMware&pause>nul&exit
  30. md "%profilepath%\VMware" >nul
  31. md "%profilepath%\VMware\VMware Workstation" >nul
  32. md "%profilepath%\VMware\VMware Player" >nul
  33. md "%profilepath%\VMware\VMware USB Arbitration Service" >nul
  34. if "%PROCESSOR_ARCHITECTURE%" neq "x86" goto _64
  35. goto _86

  36. :_64
  37. set vmbit=64
  38. if not exist "%cd%\64Drv" (echo.&echo  64Drv文件夹不存在或者已被删除,安装文件不全,请下载完整版!!!&pause>nul&exit)
  39. echo 添加注册表项目...
  40. regedit /s "%cd%\vm64.reg"
  41. reg query "HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\Installer" >nul 2>nul||(echo.&echo 注册表文件vm64.reg导入失败,请关闭杀毒软件或者HIPS后再重新安装VMware&rd /s /q "%AppData%\VMware"&rd /s /q "%profilepath%\VMware"&pause>nul&exit)
  42. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\Installer\VMware Workstation\Features" /v core /t REG_SZ /d "%cd%" /f
  43. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Player" /v InstallPath /t REG_SZ /d "%cd%\" /f
  44. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Player" /v InstallPath64 /t REG_SZ /d "%cd%\x64\" /f
  45. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation" /v InstallPath /t REG_SZ /d "%cd%\" /f
  46. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation" /v InstallPath64 /t REG_SZ /d "%cd%\x64\" /f

  47. reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4B6C7001-C7D6-3710-913E-5BC23FCE91E6} >nul 2>nul||(echo.&echo 正在安装VC++2008......)
  48. copy /y 64Drv\*.* >nul

  49. ver|find "5.">nul && (
  50. copy /y 64Drv\bridge\_vmnetbridge.cat_xp_64 .\vmnetBridge.cat >nul
  51. copy /y 64Drv\bridge\_vmnetBridge.dll_xp_64 .\vmnetBridge.dll >nul
  52. copy /y 64Drv\bridge\_vmnetBridge.sys_xp_64 .\vmnetBridge.sys >nul
  53. )
  54. ver|find "6.">nul && (
  55. copy /y 64Drv\bridge\_vmnetbridge.cat_vista_64 .\vmnetBridge.cat >nul
  56. copy /y 64Drv\bridge\_vmnetBridge.dll_vista_64 .\vmnetBridge.dll >nul
  57. copy /y 64Drv\bridge\_vmnetBridge.sys_vista_64 .\vmnetBridge.sys >nul
  58. )

  59. copy /y vmci\x64\* .\ >nul
  60. copy /y vmci\vsocklib64.dll .\ >nul

  61. echo.
  62. goto install

  63. :_86
  64. if not exist "%cd%\86Drv" (echo.&echo  86Drv文件夹不存在或者已被删除,安装文件不全,请下载完整版!!!&pause>nul&exit)
  65. echo 添加注册表项目...
  66. regedit /s "%cd%\vm86.reg"
  67. reg query "HKLM\SOFTWARE\VMware, Inc.\Installer" >nul 2>nul||(echo.&echo 注册表文件vm86.reg导入失败,请关闭杀毒软件或者HIPS后再重新安装VMware&rd /s /q "%AppData%\VMware"&rd /s /q "%profilepath%\VMware"&pause>nul&exit)
  68. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\Installer\VMware Workstation\Features" /v core /t REG_SZ /d "%cd%" /f
  69. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Player" /v InstallPath /t REG_SZ /d "%cd%\" /f
  70. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Workstation" /v InstallPath /t REG_SZ /d "%cd%\" /f
  71. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Workstation" /v DATASTORE_PATH /t REG_SZ /d "%cd%\\VOS" /f

  72. reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1F1C2DFC-2D24-3E06-BCB8-725134ADF989} >nul 2>nul||reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{86CE1746-9EFF-3C9C-8755-81EA8903AC34} >nul 2>nul||(echo.&echo 正在安装VC++2008......)
  73. copy /y 86Drv\*.* >nul

  74. ver|find "5.">nul && (
  75. copy /y 86Drv\bridge\_vmnetbridge.cat_xp .\vmnetBridge.cat >nul
  76. copy /y 86Drv\bridge\_vmnetBridge.dll_xp .\vmnetBridge.dll >nul
  77. copy /y 86Drv\bridge\_vmnetBridge.sys_xp .\vmnetBridge.sys >nul
  78. )
  79. ver|find "6.">nul && (
  80. copy /y 86Drv\bridge\_vmnetbridge.cat_vista_32 .\vmnetBridge.cat >nul
  81. copy /y 86Drv\bridge\_vmnetBridge.dll_vista_32 .\vmnetBridge.dll >nul
  82. copy /y 86Drv\bridge\_vmnetBridge.sys_vista_32 .\vmnetBridge.sys >nul
  83. )

  84. copy /y vmci\x86\* .\ >nul
  85. copy /y vmci\vsocklib.dll .\ >nul

  86. echo.

  87. :install
  88. str.exe preferences.ini 0 0 /R /asc:"VMwareDir" /asc:"%cd%" /A >nul 2>nul
  89. str.exe environments.xml 0 0 /R /asc:"VMwareDir" /asc:"%cd%" /A >nul 2>nul
  90. echo 复制文件...
  91. echo.
  92. copy /y preferences.ini "%AppData%\VMware" >nul
  93. copy /y inventory.vmls "%AppData%\VMware" >nul
  94. copy /y vmconfig.ini "%profilepath%\VMware\VMware Workstation\config.ini" >nul
  95. copy /y settings.ini "%profilepath%\VMware\VMware Player" >nul
  96. copy /y settings.ini "%profilepath%\VMware\VMware Workstation" >nul
  97. copy /y vpconfig.ini "%profilepath%\VMware\VMware Player\config.ini" >nul
  98. copy /y vnetinst.dll "%WinDir%\System32" >nul
  99. copy /y vnetlib%vmbit%.dll "%WinDir%\System32" >nul
  100. move /y vsock.sys "%WinDir%\system32\drivers" >nul 2>nul
  101. move /y vsocklib.dll "%WinDir%\system32" >nul 2>nul
  102. echo.

  103. echo 注册所需的DLL文件...
  104. regsvr32 /s vmappcfg.dll
  105. regsvr32 /s vmappsdk.dll
  106. regsvr32 /s vmdbCOM.dll
  107. echo.

  108. echo 创建 __vmware_user__ 用户组 ...
  109. net localgroup users __vmware_user__ /del >nul 2>nul
  110. net localgroup __vmware__ /del >nul 2>nul
  111. net user __vmware_user__ /del >nul 2>nul
  112. echo.
  113. net localgroup __vmware__ /add /comment:"VMware User Group" >nul
  114. if %errorlevel% neq 0 echo 用户组创建失败,请关闭杀毒软件或者HIPS后再重新安装VMware&pause>nul&exit

  115. echo 安装VM基本服务 ...
  116. reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VMware\Performance" /v Library /t REG_SZ /d "%cd%\vmPerfmon.dll" /f

  117. sc create vsock type= kernel start= boot binpath= "%WinDir%\system32\drivers\vsock.sys" Group= "System Bus Extender" displayname= "vSockets Driver"
  118. net stop vmx86 >nul 2>nul
  119. sc delete vmx86 >nul 2>nul
  120. start /wait vnetlib%vmbit%.exe -- install vmx86
  121. start /wait vnetlib%vmbit%.exe -- start vmx86

  122. net stop vmx86 >nul
  123. net start vmx86 >nul
  124. if %errorlevel% neq 0 echo 服务启动失败,请关闭杀毒软件或者HIPS后,再运行"卸载VMware.cmd"清理安装记录,然后重新安装VMware&pause>nul&exit

  125. net stop vmci >nul 2>nul
  126. sc delete vmci >nul 2>nul

  127. if "%PROCESSOR_ARCHITECTURE%" equ "x86" (DrvInst.exe -install "ROOT\VMWVMCIHOSTDEV" .\vmci.inf >nul)
  128. if "%PROCESSOR_ARCHITECTURE%" neq "x86" (DrvInst64.exe installRootDriver HWND "ROOT\VMWVMCIHOSTDEV" .\vmci.inf "" >nul)

  129. vnetlib%vmbit%.exe -- install vmci
  130. if not exist "%WinDir%\System32\Drivers\vsock.sys" copy /y vsock.sys "%WinDir%\System32\Drivers"
  131. net start vsock >nul
  132. echo 创建快捷方式
  133. mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\VMware.lnk""):b.TargetPath=""%~dp0vmware.exe"":b.WorkingDirectory=""%~dp0"":b.Save:close") >nul
  134. echo.
  135. echo.
  136. echo.
  137. echo 请注意上面错误提示,若安装后无法正常运行VMware,
  138. echo 请把上面的错误提示复制下来反馈到我的帖子里,谢谢.
  139. echo 按任意键继续安装VMware服务.
  140. pause >nul

  141. :ST
  142. CALL "!)安装服务.cmd"
  143. :EX
  144. exit

  145. :prompt
  146. echo ..................
  147. echo 提示:现在登录系统的并非是administrator用户
  148. echo 安装VMware请切换到administrator管理员用户!
  149. echo 如果系统未激活administrator用户,请在CMD
  150. echo 命令行下使用"net user administrator /active:yes"
  151. echo 这条命令激活administrator用户,这样注销系统后
  152. echo 就能看到administrator账户了。登陆administrator
  153. echo 用户就能安装VMware了。如果administrator用户名
  154. echo 已经更名,在Vista/Win7/2008系统下,登陆改了名字
  155. echo 的超级管理员账号,然后把此批处理的以"ver|find"开头
  156. echo 的第9行和第10行删除掉再进行安装VMware。
  157. echo ..................
  158. pause
  159. goto :EX
复制代码
firefox3
 楼主| 发表于 2012-11-9 10:38:32 | 显示全部楼层
不会写信 发表于 2012-11-9 01:36
用这个不用开admin就能安装,而且解决了WIN8下不识别“%CD%"变量的问题

多谢
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-12-25 21:31 , Processed in 0.085566 second(s), 14 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

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