简体   繁体   中英

How to change Installation Folder Url after publish the Application

在使用MSBuild.exe发布应用程序后,如何更改安装文件夹URL并更新C#click一次应用程序的位置

Atlast i figured it myself.

Here is how :

Create a batch file by copying the following commands and replace

[PATH] -> Absolute path to mage.exe

[path to current version]-> published folder having the current version

[deploy path]-> published folder path having the exe file

[New Installation Url]-> Installation url you want to update

"[PATH]\\mage.exe" -Update "[path to current version]\\MyApp.application" -ProviderUrl "[New Installation Url]/MyApp.application"

"[PATH]\\mage.exe" -Update "[path to current version]\\MyApp.application" -AppManifest "[path to current version]\\MyApp.exe.manifest"

"[PATH]\\mage.exe" -Sign "[path to current version]\\MyApp.application" -CertFile "[path]\\TemporaryKey.pfx" -Password mypassword

"[PATH]\\mage.exe" -Update [deploy path]\\MyApp.application" -ProviderUrl "[New Installation Url]/MyApp.application"

"[PATH]\\mage.exe" -Update "[deploy path]\\MyApp.application" -AppManifest "[path to current version]\\MyApp.exe.manifest"

"[PATH]\\mage.exe" -Sign "[deploy path]\\MyApp.application" -CertFile "[path]\\TemporaryKey.pfx" -Password mypassword

"[deploy path]\\setup.exe" /url="[New Installation Url]/"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM