I'm trying to use Wix# to build an MSI installer and I'm quite satisfied with the easy-to-use syntax compared to Wix.
Now, I'm trying to do something off-standard and I'm a bit lost, as I'm not really acquainted with Wix.
Basically, I wanted to set the default target installation directory depending if the installer was called with admin rights or being installed by a default user.
Being a normal user I want to set the default installation directory to %LocalAppData%\MyProduct
, whereas as an admin the default installation directory should be %ProgramFiles%
.
Using plain Wix there seems to be an solution, that is managable.
How, can this be accomplished by using Wix#?
I have to mention, that I'm really laking the skills to do so alone, as I neither really know WiX, Msi and even C# in any kind of depths. Hence, I'm looking for a minimal, reproducible solution of my problem.