如何解决“The instance name specified is invalid"


 Q:
      公司的项目用MSDE 数据库,一切就绪,可以在用户没有卸载原来的MSDE(仅删除数据) 的机器上安装MSDE版安装程序,虽然能够检测到MSDE 已经安装,如何解决"The instance name specified is invalid"问题

A: 
      
      Setup preqs launch installs seperatly so your MSI won't know that it's setup.exe installed MSDE. So when you uninstall your app it wont automatically uninstall MSDE.
      However when you define your .PRQ file you should give it a condition that tells it whether MSDE is installed or not. That way when you run your app again it will skip over the MSDE install.
       If you want your install to automatically uninstall MSDE ( not reccomended since it might have already been installed and there might be other databases using it ) then you will have to make a custom action in the UI sequence that calls msiexec to uninstall it. You can't put it in the execute sequence because there is a mutex that only allows 1 execute sequence at a time.

希望可以用orac 等工具修改解决,但是没找到对应的参数...

 
posted @ 2007-08-07 12:57  winzheng  阅读(8195)  评论(5编辑  收藏  举报