Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reference the user's home directory in WIX

Tags:

wix

I am creating an installer for an SDK, which includes source code to be compiled by the end-user.

I want my Wix installer to put this in the users' home directory by default, but I can't find the right property name to use.

like image 916
Rob Avatar asked Mar 09 '12 14:03

Rob


People also ask

What is SourceDir in WiX?

TARGETDIR is where you want to install to, SourceDir is the path to where the installation package you are running is located: msdn.microsoft.com/en-us/library/aa372452(VS.85).aspx. – Stein Åsmul.

How do I use heat EXE on WiX?

Navigate to WiX's bin directory from a command prompt and type heat.exe -? to see information about its usage. To make things easy, consider adding the path to the WiX bin directory to your computer's PATH environment variable so that you won't have to reference the full path to the executable each time you use it.

What are WiX fragments?

The Fragment element is the building block of creating an installer database in WiX. Once defined, the Fragment becomes an immutable, atomic unit which can either be completely included or excluded from a product.


2 Answers

You could also reference the HOMEPATH environment variable with [%HOMEPATH]. For more detail about the syntax used for properties, see the Formatted datatype.

like image 88
Dave Andersen Avatar answered Sep 28 '22 08:09

Dave Andersen


I believe you are looking for PersonalFolder.

There is a full list of special folders here:

http://msdn.microsoft.com/en-us/library/aa370905%28VS.85%29.aspx#system_folder_properties

like image 32
gymbrall Avatar answered Sep 28 '22 06:09

gymbrall