How to get the path of Where MSI file is located from wix source code at run time(Installation time)

风流意气都作罢 提交于 2019-12-25 18:24:32

问题


I want to Locate path of MSI from WIX Source code when we perform installation. I tried using $(sys.SOURCEFILEPATH) which returns what I need (C:\temp\myProj\sample.msi)). But when I copy MSI file to a different folder (D:\temp\sample.msi) and tried to install I am getting the same path as previous(C:\temp\myproj\sample.msi).

Thanks for your answers in advance


回答1:


The Windows Installer sets the OriginalDatabase property to the path of the installation database used to launch the installation.

https://docs.microsoft.com/en-us/windows/desktop/msi/originaldatabase



来源:https://stackoverflow.com/questions/55241445/how-to-get-the-path-of-where-msi-file-is-located-from-wix-source-code-at-run-tim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!