Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: WixUI_InstallDir dir location

$
0
0
Hi there,

Just before we dive in I want to let you know that you can use Wix# XML extensions for simplifying your XML manipulations. Thus your XML event can also be implemented like this:
 project.WixSourceGenerated += document =>
        {
            document.FindAll("Property")
                    .Where(p=>p.HasAttribute("Id", "WIXUI_INSTALLDIR"))
                    .First()
                    .SetAttribute("Value=INSTALLDIR");
        };
Now about your problem. Indeed there is a logical problem with auto assigning WIXUI_INSTALLDIR. The current implementation sets it to the GetTopLevelDir() value, which is fine for all cases except yours.

Thus the proper solution would be to allow user to nominate a directory to be an InstallDir.

I have logged the issue on your behalf (https://wixsharp.codeplex.com/workitem/117).
The feature is already implemented and the binaries are available form Git. But if you have to wait until a full or a NuGet release then you will need to use your XML-based work around.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>