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

New Post: How to specify the specific installation directory

$
0
0
Hi Oleg,

first of all I wnat to thank you for this great project! I really appreciate it. It is the long time missed piece of puzzle.

I just installed version 1.0.4.0 and I tried the absolute paths.


string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "company", "productname", "appName");
var installproject = new Project(appName, new Dir(path.....)
installproject.UI = WUI.WixUI_InstallDir;
Compiler.PreserveTempFiles = true;
Compiler.BuildMsi(installproject);

The result in the wxs File is:

<Directory Id="TARGETDIR" Name="SourceDir" >
<Directory Id="INSTALLDIR" Name="AbsolutePath">
....
<UIRef Id="WixUI_InstallDir" />
<CustomAction Id="Set_INSTALLDIR_AbsolutePath" Property="INSTALLDIR" Value="C:\Program Files\company\productname\appName" />

The Setup GUI provides the path:
D:\AbsolutePath

Is there something wrong in my code, or is there a bug in the version 1.0.4.0?

Best regards,
Kai

Viewing all articles
Browse latest Browse all 1354

Trending Articles



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