visual studio 2013 prerequisites安装错误解决方法

在尝试卸载vs2010并安装vs2013时遇到prerequisites安装错误。解决方案包括使用Windows Installer Clean Up工具彻底卸载vs2010,然后以管理员权限运行cmd,输入secedit命令刷新组策略。执行后,vs2013安装成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解决方法

本想卸载vs2010安装vs2013尝尝鲜,可是一直提示visual studio 2013 prerequisites安装错误。从网上查找大量资料,终于找到解决方法!


1.完整卸载vs2010. 为了防止vs2010有参与,建议下载Windows Installer Clean Up小工具进行清路。(Windows Installer Clean Up下载地址

2.给cmd管理员权限,并在cmd中输入secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbos 

3.尝试安装vs2013发现,已经没有问题


secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbos 的意思是根据%windir%\inf\defltbase.inf创建defltbase.sdb ,并根据defltbase.sdb 刷新组策略

secedit 命令介绍

以下是百度百科的定义“该命令是Windows NT系列中的一个命令,它是组策略工具的命令行版本,通过跟一个组策略模板比较来配置分析系统组策略安全。”

参数

/configure 配置组策略
/analyze 分析组策略
/import 导入组策略
/export 导出组策略
/generaterollback 生成回滚和配置模板
/validate 验证配置文件中的语法
/db <database file name> 必须参数,指定包含要分析的存储文件的数据库,如果数据库为新数据,/cfg参数为必须。
/cfg <configuration file name> 指定安全模板的路径和名称,仅当/db参数时使用,如果不指定,则执行存储在数据中的数据。
/overwrite 是否覆盖
/log <log file name> 指定处理的日志文件名称和路径,如果不指定,则使用默认。
/quiet 是否静默模式
/areas 指定允许系统的安全区域,如果不指定,则默认所有取悦,每个区域使用空格分隔开。
/mergedpolicy 合并并导出域和本地安全策略。

区域备注

区域名字 描述
SECURITYPOLICY 指定本地和域的系统策略,包括账户、审计策略
GROUP_MGMT 从安全模板中指定限制组设置
USER_RIGHTS 指定登录用户的权限和允许特权
REGKEYS 指定本地注册表的安全性
FILESTORE 制定本地存储文件的安全性
SERVICES 指定所有服务的安全性 


应用举例:

     与访问注册表只需reg文件不同的是,访问组策略除了要有个 模板文件(还是inf),还需要一个 安全数据库文件(sdb)。要修改组策略,必须先将 模板导入安全数据库,再通过应用 安全数据库来刷新组策略
    假设我要将密码长度最小值设置为6,并启用“密码必须符合复杂性要求”,那么先写这么一个模板:
[version]
  signature="$CHICAGO$"
[System Access]
  MinimumPasswordLength = 6
  PasswordComplexity = 1

  保存为gp.inf,然后导入:
  secedit /configure /db gp.sdb /cfg gp.inf /quiet
  这个命令执行完成后,将在当前目录产生一个gp.sdb,它是“中间产品”,你可以删除它。
  /quiet参数表示“安静模式”,不产生日志。但根据我的试验,在2000sp4下该参数似乎不起作用,XP下正常。日志总是保存在%windir%/security/logs/scesrv.log。你也可以   自己指定日志以便随后删除它。比如:
  secedit /configure /db gp.sdb /cfg gp.inf /log gp.log
  del gp.*
  另外,在导入模板前,还可以先分析语法是否正确:
  secedit /validate gp.inf
 那么,如何知道具体的语法呢?当然到MSDN里找啦。也有偷懒的办法,因为系统自带了一些安全模板,在%windir%/security/templates目录下。打开这些模板,基本上包含了常用的安全设置语法,一看就懂。




如果有什么疑问欢迎到我的微信公众号提问~


### ns-3 Installation Guide for Visual Studio #### Prerequisites and Environment Setup To install and configure ns-3 in Visual Studio, ensuring that all prerequisites are met is essential. This includes installing necessary tools such as CMake, Python, and other dependencies specific to Windows environments. #### Installing Dependencies For a successful build process within an IDE like Visual Studio, setting up the correct environment variables plays a critical role[^1]. Tools and libraries required by ns-3 must be accessible through these configurations. For instance, when configuring projects inside Eclipse, similar principles apply regarding environmental settings; hence adapting those guidelines can provide useful insights into preparing one’s development environment properly before proceeding with ns-3 installation under Visual Studio. #### Configuring Visual Studio Project Once dependencies have been installed, creating or importing an existing project file compatible with Visual Studio becomes necessary. Typically, this involves generating solution files using CMake from the root directory of the ns-3 source code repository: ```bash mkdir build && cd build cmake .. ``` Afterwards, opening generated `.sln` files via Visual Studio allows further customization according to personal preferences concerning compiler options, debugging symbols inclusion among others. #### Building ns-3 Within Visual Studio With everything configured appropriately, initiating builds directly through Visual Studio interface should proceed without issues provided that system-wide paths were adjusted accordingly during initial setup stages mentioned earlier. #### Additional Modules Configuration In cases where additional modules beyond core functionalities need integration—such as enhancements made available through `opencv_contrib`, particularly its OGRE-based visualization capabilities—it may require extra steps not covered explicitly here but worth exploring depending on intended applications[^2]. --related questions-- 1. What are common pitfalls encountered while setting up ns-3 on different operating systems? 2. How does integrating third-party libraries impact performance optimization efforts within simulations built upon ns-3 framework? 3. Can custom visualizations developed leveraging opencv_contrib's features enhance educational materials related to network simulation studies?
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值