Skip to content

WIX wont install to Program Files #1875

@PhoneCoolie

Description

@PhoneCoolie

Hi I have a basic WixSharp installer for a simple .Net 8 WinForms project. I have this in the setup program:

var project = new ManagedProject($"{productName}",
new Dir($@"%ProgramFiles%{companyName}{productName}",
new Files(".")));

But it always installs to (x86). I tried using a different variable (ProgramW6432) instead of ProgramFiles but it fails compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions