Installing Outside of "Program Files" #8973
-
I've searched Up and Down the internet and can't seem to find a straight answer, so forgive me if this is answered already. I've used Wix on and off for ~17 years and I swear there used to be a way to do this. Every time I search for this all I get is the same references to "StandardDirectory" with the Id being set to "ProgramFiles6432Folder" or something similar and references to a "Directory" with an Id of "INSTALLFOLDER". I understand how to configure the Application folder, but it always wants to go into "C:\Program Files" or "C:\Program Files(x86)" My questions are simple:
Also Note: I would prefer to use WixUI_FeatureTree, but I'm not opposed to one of the other UI options as long as I can control features Background
While I understand the wonderful integration with windows applications "Liking" to be in "Program Files" I don't have a need for Windows to like where I put this, I have a requirement for our custom Tool Chain/Development process to be happy. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
As far as your comment about "Liking" .... I like the old adage it's ok to break the rules as long as you know you are breaking them ... and you know why the rules are what they are. Make sure you don't get bit by the old you don't know what you don't know. The primary scenario for this type of thing is internal applications for systems rather then products. Products are best to play by the windows logo requirements. Even if they barely exist anymore. So many people were bad at playing nice that they just said to containerize everything instead. |
Beta Was this translation helpful? Give feedback.
-
There is no industry standard name for the primary installation folder id. Some use TARGETDIR some use INSTALLDIR some use INSTALLLOCATION You don't want to set PF632F you want to set INSTALLFOLDER and you only want to set it if it doesn't have a value. (Imagine if someone passed INSTALLFOLDER=D:\APPS at the command line. I'd also schedule it sooner like before AppSearch and I'd make sure it's scheduled for both sequences in case of a silent installation. I'm a consultant so much more detailed explanations and samples are available upon engagement. Otherwise I suggest you check out my open source tool called IsWiX. It has project templates that will greatly easy creating projects and learning WiX. You'll find IsWiX and IsWiX-Tutorials on Github. |
Beta Was this translation helpful? Give feedback.
-
After some back and forth, I found there are multiple ways to skin a cat. I think in the end essentially the answer to my questions is the SetProperty Action. Using this to modify the "base" Directory you use when setting up your paths. Ultimately I ended up modifying my directory structure and rather than overriding a StandardDirectory I implemented the Base using INSTALLDIR then set it with the action before the AppSearch Action
Feel free to take note of some of Chris's other tips, but overall this is the simple answer. |
Beta Was this translation helpful? Give feedback.
-
Dude, your funny. You ask for help and you get it from an expert with 30 years of installation experience, 22 of which is using WiX/MSI and you decide that you already know better then me and accept your own answer. Stuff like this is why people are getting worn out and not bothering to provide support unless they get paid for it. |
Beta Was this translation helpful? Give feedback.
After some back and forth, I found there are multiple ways to skin a cat. I think in the end essentially the answer to my questions is the SetProperty Action. Using this to modify the "base" Directory you use when setting up your paths.
Ultimately I ended up modifying my directory structure and rather than overriding a StandardDirectory I implemented the Base using INSTALLDIR then set it with the action before the AppSearch Action
Feel free…