Hello again,
I now have the problem, that in our setup we first search if drive "e:" is
present and set the TARGETDIR-Property to a folder on "e:" otherwise "c:".
This is done like this:
<Property Id='NEWINSTALLDIR' Value='C:\'>
<DirectorySearch Id='MSEwsDefaultInstallRoot_Search' Path='E:\'
Depth='1'/>
</Property>
<CustomAction Id="DirectorySet" Property="TARGETDIR"
Value="[NEWINSTALLDIR]Software\" />
<InstallExecuteSequence>
<Custom Action='DirectorySet' Before='LaunchConditions'/>
</InstallExecuteSequence>
When we come to the InstallDirDlg, the directory is shown correctly, if the
DirectorySet ca is run early enough. If the user now wishes to customize this
path, I get an error 2707, that the path does not exist, when I start up the
BrowseDlg.
It is said, that the customized Path must be set before the CostInitialize [1].
If I schedule it like the BrowseDlg is shown after the CostInitialize I get an
error 2732, cause the directory manager is not initialized [2].
If I do not schedule any dialog, part of my files and folders are installed
into the directory of DirectorySet, and part of them are installed in the new
customized path that the user clicked in the BrowseDlg. I use mergemodules for
different parts of our solution. Exactly, the Folders of one MergeModule, which
uses the IisExtension, are installed into the customized path, all other files
are installed to the path of DirectorySet, which should be overwritten by the
Result from the BrowseDlg. Througout our setup we only use one property for
rootpath and that is TARGETDIR.
Any hints welcome...
Oliver
[1]http://www.appdeploy.com/msierrors/detail.asp?id=337
[2] http://www.appdeploy.com/msierrors/detail.asp?id=458
-------------------------------------------------------------------------
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