To answer why it's done at bind time, instead of compile time... The hash for the GUID is generated based on the install path. That path is constructed from the directory tree which is not complete until all the wixobj's have been linked together. Furthermore, those paths may contain bind time variables, if a bind time variable in a path changes, the component GUID needs to change.
Why would GUID generation at compile time cost more or less than GUID generation at Bind time. You would still be generating the same amount of GUIDs wouldn't you? Also, the algorithm for generating component guids was reworked recently in WiX v3. If you are planning on using auto generated component guids you should pick up the latest wix v3 toolset (As in, a build within the last few weeks). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Ridd Sent: Saturday, October 13, 2007 11:07 AM To: wix-users@lists.sourceforge.net Cc: SQL Server CE Setup Team Subject: Re: [WiX-users] Component Guids - Version Changes On 13 Oct 2007, at 18:53, Laxmi Narsimha Rao Oruganti (SQL CE) wrote: > 2) The GUID is pretty much stable (rather same) across all MSI > where a fragment (locale independent) is used. However, I still > think that for performance reasons, the GUID getting generated at > compile time is better. > GUID generation is extremely cheap. Or at least it is meant to be... do you have evidence to the contrary? A simple test would be to time how long it takes to create a package with 10000 automatically generated GUIDs vs one with 10000 hand (OK, script) generated ones. Cheers, Chris ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users