2009-09-18 81 views

回答

1

答案其實很簡單,但也相當難看。

在在我想取消卸載的自定義動作的時候,我只是拋出一個ApplicationException

//Nono. Don't uninstall. To abort uninstall, throw an exception 
throw new ApplicationException(Constants.CONST_APP_NAME + @" can't be uninstalled because the preparation hasn't been completed."); 
0

如果可能的話,它會讓我感到驚訝。根據我的經驗,只要嘗試使用VS安裝項目去做任何不能在設計器中拖動的東西,就會有麻煩。

換句話說,它很爛,但我不知道另一邊的草地是否更綠(例如InstallShield),因爲我從來沒有使用過。

相關問題