Get an environment variable into a WIX property

后端 未结 4 934
粉色の甜心
粉色の甜心 2020-12-06 05:26

Is there a way to get an environment variable in WIX into a property?

I\'m trying to get the USERPROFILE with:

Property Id=\"UserFolder\         


        
4条回答
  •  旧巷少年郎
    2020-12-06 05:33

    since i cant add a comment yet, with regard to @demp's answer, i had to do this to get the condition to evaluate sometime during initialization so that the value could be displayed in a UI dialog:

        
    

    I believe that Before="InstallInitialize" happens just before the installation itself proceeds (i.e. copying files and whatnot) and not during the initialization phase of the installer itself.

提交回复
热议问题