How can I change PATH modification between user and system with perUserOrMachine? #7578
-
I'm currently working on a new MSI installer for the Julia language, and am stuck on (hopefully) one last thing: I use
in there, but the The entire wxs file as it stands right now is here if that is helpful. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I should say, it would also be super helpful if someone could point me to an example of an existing installer that does this. This entire scenario doesn't strike me as very niche, I would think others must have solved this somehow? |
Beta Was this translation helpful? Give feedback.
Ah, that link was very helpful, thanks!
My takeaway from that is that I won't be able to handle this with one entry in the
Environment
table. Whether something is installed system or user depends on the prefix of the name in that table, and the type of that isText
, which I assume means I can't make that depend on the value of some property during install.What I ended up doing now is just have two components with a condition
ALLUSERS=2 OR MSIINSTALLPERUSER=1
for one andNOT (ALLUSERS=2 OR MSIINSTALLPERUSER=1)
for the other, and one has an environment element withSystem='yes'
and the other one withSystem='no'
. That part looks like this now: