I would simply use the TARGETDIR directory as the base directory for all
files, and only define subfolders for anything that needed to go into the
subfolder. The step I think you're missing is setting the initial value of
the TARGETDIR property to something, which you should probably do with a
type 51 custom action if it's not set on the msiexec command line/preset by
the calling application (condition the custom action on TARGETDIR = "").

What is everyone's obsession with this INSTALLDIR public property? It has no
meaning to Windows Installer itself, and it's easier for administrators
trying to do unattended installs if everyone uses the standard, built-in
meaning for 'where the software installs to', i.e. TARGETDIR.

-- 
Mike Dimmick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nick
Sent: 26 April 2007 21:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Install to C:\Whatever

I realize the hip new thing to do is install into C:\Program Files\Whatever.

But I have a legacy app that absolutely must be installed into C:\Whatever.
I
tried this:

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="INSTALLDIR" Name="Whatever">

But then it wants to install my application into R:\Whatever.  Any idea how
to
make it install into C:\Whatever?  Thanks!

-------------------------------------------------------------------------
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


-------------------------------------------------------------------------
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

Reply via email to