![](/img/trans.png)
[英]Get the name of the current msi installation file from an Installer class
[英]Get the MSI Name during installation
我正在使用Installer Service類為WPF應用程序之一創建MSI。
可以說已經創建了abc.msi。 現在,我將其名稱從abc更改為def.msi。
我想在InstallerService類的Install Method中安裝MSI時提取msi的名稱。
這很可能會滿足您的要求:
Path.GetFileName(Environment.GetCommandLineArgs()[1])
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.