I am making an MSI for one of the WPF application using Installer Service class.
Lets say abc.msi has been created. Now i have changed its name from abc to def.msi.
I want to extract the name of msi at the time of MSI installation in Install Method of InstallerService class.
这很可能会满足您的要求:
Path.GetFileName(Environment.GetCommandLineArgs()[1])
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.