I prefer to us a RegistryValue as the KeyPath. <Component Id="CreateTheAppFolder"> <CreateFolder Directory="MyAppDataFolder" /> <RegistryValue Root="HKMU" Key="MyAppRegKey" Name="CreateTheAppFolder" Value="[MyAppDataFolder]" Type="string" KeyPath="yes" /> </Component>
The name and value could be anything, such as the path to the folder or the app's version, but the registry value gets used as the KeyPath for the component, allowing the GUID to be auto generated. I would rather take the hit, I assume, of creating this registry entry rather than managing a GUID manually. I am also interested in advice on a better approach. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Creating-a-folder-in-Common-App-Data-Folder-Windows-tp7600643p7600644.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users