Skip to content

Empty directory is created in Program files if user changes install location #790

@Katara98

Description

@Katara98

I have simple project setup like:

var project = new Project(
                              myProduct,
                              new Dir(
                                  Path.Combine(@"%ProgramFiles%", myCompany, myProduct),
                                  new Files("*.*"),
                                  ...);
project.UI = WUI.WixUI_InstallDir;
...

If user changes install location, everything is installed in chosen location, but also empty directory 'C:\Program Files (x86)\myCompany' is created.
Is there some way to prevent creating of this empty directory?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions