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 等工具修改解決,但是沒找到對應的參數...