Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get around "this component does not fit the criteria for having an automatically generated guid"

WiX is complaining (what are the odds, right?):

Error 95 The component 'blahblah' has a key file with path 'TARGETDIR\blah.dll'. Since this path is not rooted in one of the standard directories (like ProgramFilesFolder), this component does not fit the criteria for having an automatically generated guid. (This error may also occur if a path contains a likely standard directory such as nesting a directory with name "Common Files" under ProgramFilesFolder.)

But I WANT an automatically generated GUID, and I DON'T want to have to set the TARGETDIR to some other path comprised of ProgramFilesFolder since I am setting the TARGETDIR in the UI and I even allow the user to change it so that people can specify the path they want to install the application at...how does someone get this functionality? Is it possible? I mean, can I have the best of both worlds or not? Why is it such a big deal? WiX is way too restrictive sometimes...

like image 816
Alexandru Avatar asked Sep 24 '14 14:09

Alexandru


1 Answers

All you need to do is set Directory/@ComponentGuidGenerationSeed and then you can use auto guids for non-standard folder.

like image 199
Neil Avatar answered Jan 04 '23 14:01

Neil