使用'WiRunSQL.vbs'文件尝试更新msi [英] using 'WiRunSQL.vbs' file trying to update msi

查看:212
本文介绍了使用'WiRunSQL.vbs'文件尝试更新msi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2008的"设置和部署项目",我需要将Reglocator表的Type值从'2'更新为'16'以进行64位注册表搜索,目前正在通过将msi打开进入ORCA手动,我想通过命令行做同样的事情,所以我是
尝试从命令执行命令但是得到这个错误,我根本不使用Wix。我安装了安装程序SDK,并使用'WiRunSQL.vbs'文件尝试更新msi。

尝试按照以下链接:

http://msdn.microsoft.com /en-us/library/aa368562%28v=VS.85%29.aspx



请告诉我我做错了什么。

I am using 'setup and deployment project' of VS2008, I need to update the Type value of Reglocator table from '2' to '16' for 64 bit registry search, currently am doing so by opening msi into ORCA manually, same thing I want to do by command line, so I am trying to execute the command from command but getting this error, I am not at all using Wix. I have Installed installer SDK, and using 'WiRunSQL.vbs' file trying to update msi.
Trying to follow following link:
http://msdn.microsoft.com/en-us/library/aa368562%28v=VS.85%29.aspx

Please let me know what am doing wrong.

 

我收到以下错误:

Msi API错误80004005:OpenDatabase,DatabasePath,OpenMode

Msi API Error 80004005: OpenDatabase,DatabasePath,OpenMode

当我尝试从VS命令提示符执行以下命令时:

When I am trying to execute following command from VS Command prompt:

Cscript WiRunSQL.vbs setup.msi" UPDATE`RegLocator` SET`RegLocator` .Type` = 16"在哪里`RegLocator``Signature_` =`__E92C820691FC4717A23FAF7201234F60`"

Cscript WiRunSQL.vbs setup.msi "UPDATE `RegLocator` SET `RegLocator`.`Type`=16" WHERE `RegLocator`.`Signature_`=`__E92C820691FC4717A23FAF7201234F60`"

 

 

--- \

D:\ Release64> Cscript WiRunSQL.vbs setup.msi" UPDATE`RegLocator` SET`RegLocator` .Type` = 16 WHERE`RegLocator` .`Signature_` =`__E92C822567893FAF72095E2F60`"

Microsoft(R)Windows Script Host Version 5.8

版权所有(C)Microsoft Corporation。保留所有权利。



Msi API错误80004005:OpenDatabase,DatabasePath,OpenMode

1:2203 2:setup.msi 3:-2147287038

D:\Release64>Cscript WiRunSQL.vbs setup.msi "UPDATE `RegLocator` SET `RegLocator`.`Type`=16 WHERE `RegLocator`.`Signature_`=`__E92C822567893FAF72095E2F60`"
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Msi API Error 80004005: OpenDatabase,DatabasePath,OpenMode
1: 2203 2:setup.msi 3: -2147287038

----

推荐答案

我收到以下错误:

Msi API错误80004005:OpenDatabase,DatabasePath,OpenMode

Msi API Error 80004005: OpenDatabase,DatabasePath,OpenMode

当我尝试从VS命令提示符执行以下命令时:

When I am trying to execute following command from VS Command prompt:

Cscript WiRunSQL.vbs setup.msi" UPDATE`RegLocator` SET`RegLocator` .Type` = 16"在哪里`RegLocator``Signature_` =`__E92C820691FC4717A23FAF7201234F60`"

Cscript WiRunSQL.vbs setup.msi "UPDATE `RegLocator` SET `RegLocator`.`Type`=16" WHERE `RegLocator`.`Signature_`=`__E92C820691FC4717A23FAF7201234F60`"

 

 

--- \

D:\ Release64> Cscript WiRunSQL.vbs setup.msi" UPDATE`RegLocator` SET`RegLocator` .Type` = 16 WHERE`RegLocator` .`Signature_` =`__E92C822567893FAF72095E2F60`"

Microsoft(R)Windows Script Host Version 5.8

版权所有(C)Microsoft Corporation。保留所有权利。



Msi API错误80004005:OpenDatabase,DatabasePath,OpenMode

1:2203 2:setup.msi 3:-2147287038

D:\Release64>Cscript WiRunSQL.vbs setup.msi "UPDATE `RegLocator` SET `RegLocator`.`Type`=16 WHERE `RegLocator`.`Signature_`=`__E92C822567893FAF72095E2F60`"
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Msi API Error 80004005: OpenDatabase,DatabasePath,OpenMode
1: 2203 2:setup.msi 3: -2147287038

----

谢谢。

 


这篇关于使用'WiRunSQL.vbs'文件尝试更新msi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆