Bill Brooks <[EMAIL PROTECTED]> writes: > How would one go about changing the default destination folder > (<Directory Id="destFolder" ... >) depending on the OS version?
See "Changing the Target Location for a Directory": http://msdn2.microsoft.com/en-us/library/aa367852.aspx You could use a custom action to change the value of the destFolder property; then CostFinalize would change the target of the destFolder directory to match that property. To get different results on different versions of Windows, you could set up the Directory table so that it is right for Win2k+, and make the custom action run only on Win9x. Use the Version9X or VersionNT property in the condition. > I have the same question regarding the target filename, but I > assume the answer would be the same, or at least point me in > the right direction. No, the answer is not the same. The File.FileName column is not Formatted, so to change the file name, you should instead define a separate component for each possibility, and put conditions on either the components or the containing features. And then you can easily change the directory names and file contents as well.
pgp7FPP2mNNuq.pgp
Description: PGP signature
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users