Anything starting $(.) is a compile-time variable. Anything starting !(.) is
a link-time variable.
Environment variables can be accessed at runtime with the [%...] syntax. See
the Formatted topic in the SDK for details.
There is also the [WindowsVolume] property which is similar, although I'm
not too certain what SYSTEMDRIVE does when the boot files are on one volume
and the Windows installation on another (e.g. dual-booting).
--
Mike Dimmick
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Callum Hibbert
Sent: 25 January 2008 16:56
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Finding the system drive on the target machine
Hello,
I have an installer built with WiX that (amoungst alot of other things) adds
some entries in the registry.
I have one small glitch. To identify the system drive I am using
"$(env.SYSTEMDRIVE)", for example:
<
RegistryValue Action='write' Type='string' Name='MyName'
Value='$(env.SYSTEMDRIVE)\MyPath' />
Unfortunately, this means that the string in the value that is installed is
the system drive of the machine on which the installer package was built.
This doesn't always match the target machine (the OS may be installed to C:,
D: or anywhere).
I guess the answer is simple but I can't find it anywhere.
Thanks,
Callum
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users