問題描述
將 VS 2013 中的 WPF 應用程序發佈到 Programm Files 中——不可能嗎? (Publishing a WPF app in VS 2013 in to Programm Files ‑‑ impossible?)
我想知道,是否有任何方法可以創建安裝程序以將 wpf 應用程序發佈到 Program Files?我猜它叫ClickOnce,但由於我從未使用過它,我無法相處。而且我還沒有找到任何選項來指定在哪裡發布它,或者至少選擇是在默認位置還是在Program Files發布它。
參考解法
方法 1:
You can't specify where your application will be installed in clickonce, see this answers :Deploying to Program Files directory Installation path of ClickOnce apps
If you wish to specify where your app will be installed I suggest using Wix.
I also strongly recomed you to read this : Choosing a Deployment Strategy before you choose your way of installation, a little reading ahead can save a lot of time later.
(by user266003、Ravid Goldenberg)