Remove WiX template

Add CMAKE_PACKAGE_REGISTRY value for WIX
Add visit and match member functions to optional types.