OK - I've given up on the Advanced UI - it's to advanced for me.
I have downloaded and read a good deal of the Windows Installer SDK as
you suggested. I have a rough idea on how to go about what I want to do
but I cannot find any examples anywhere that will help me understand the
structure of what's required in the .wxs file.
I'm hoping someone can help me with an example of how to achieve the
following:
Get the path of the My Documents folder belonging to the current user
and put it into a variable that I can use in the .wxs file. I also need
to get the users data directory and some other properties but one
example will probably help me enough :-)
Thanks,
Glen.
On 13/05/2007 8:15 AM, Rob Mensching wrote:
Please keep wix-users on the mail as well, so everyone learns.
1. Again, Bob wrote the Advanced UI and can answer your questions. I
try to stay away from UI.
2. The "build time" syntax I provided below is documented in the
Wix.chm under the Preprocessor topic, since build variables are done
by the Preprocessor in the WiX toolset. For MSI? The MSI SDK will
document what I sent you. Probably under the Formatted topic. If you
haven't read through the MSI SDK (it's part of MSDN), I recommend it.
You'll learn much.
*From:* Glen Harvy [mailto:[EMAIL PROTECTED]
*Sent:* Saturday, May 12, 2007 2:54 PM
*To:* Rob Mensching
*Subject:* Re: [WiX-users] WixUI_Advanced Usage
Hi,
Thanks for your response.
Having the application installed into the directory I ask it to be
installed in rather than "one up" is probably something that is pretty
common but I guess using Wix3 in general and WixUI_Advanced in
particular is not pretty common - particularly to a new user.
Is there an alternate but reasonably well documented alternative to
the Advanced UI that will achieve the same thing. I need to learn how
this works and although I may need to write a fair bit of code it will
do me no harm.
With regard to 2.- where on earth do I find some documentation on
these variables and how to access or set them? There's nothing in the
Help File and Googling reveals nothing as well. I need to set the
application install directory as well as the application data
directory in the Registry.
Once again - thanks for your assistance.
Glen.
On 13/05/2007 3:10 AM, Rob Mensching wrote:
1. Advanced UI takes a bit of work to make it work. Bob can answer
the questions better (one day he promises he's going to write a
compiler extension to make it easier)
2. How to reference env vars? Do you want build time or run time?
Build time: $(env.BUILDMACHINEVAR).
Run time: [%CUSTOMERSMACHINEVAR]
*From:* [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
[mailto:[EMAIL PROTECTED] *On Behalf Of *Glen Harvy
*Sent:* Saturday, May 12, 2007 7:27 AM
*To:* WiX Users Group
*Subject:* [WiX-users] WixUI_Advanced Usage
Hi,
Only just learning this new program and have started in the deep end
with Wix3.
I am trying to create my directory levels as follows:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="AquariusCommsFolder" Name="Aquarius
Communications 2">
<Directory Id="APPLICATIONFOLDER"
Name="[ApplicationFolderName]" >
<Component Id="Bin"
ApplicationFolderName is "MyClubV2".
The problem is that when installing using WixUI_Advanced, the default
all users directory is coming up as C:\Program Files\MyClubV2 and not
C:\Program Files\Aquarius Communications 2\MyClubV2 as I want it to.
How do I get around this?
Also, when I used INSTALLDIR in place of APPLICATIONFOLDER (and used
WixUI_INSTALLDIR) the full path as I wanted worked.
Another question while I'm here :-) : How do I retrieve user
environment variables into WiX ?
Thanks in advance.
Glen.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users