cmWIXFilesSourceWriter.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2014-2015 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmWIXFilesSourceWriter_h
  11. #define cmWIXFilesSourceWriter_h
  12. #include "cmWIXSourceWriter.h"
  13. #include "cmWIXPatch.h"
  14. #include "cmWIXShortcut.h"
  15. #include <CPack/cmCPackGenerator.h>
  16. /** \class cmWIXFilesSourceWriter
  17. * \brief Helper class to generate files.wxs
  18. */
  19. class cmWIXFilesSourceWriter : public cmWIXSourceWriter
  20. {
  21. public:
  22. cmWIXFilesSourceWriter(cmCPackLog* logger, std::string const& filename);
  23. void EmitShortcut(std::string const& id, cmWIXShortcut const& shortcut,
  24. std::string const& shortcutPrefix, size_t shortcutIndex);
  25. void EmitRemoveFolder(std::string const& id);
  26. void EmitInstallRegistryValue(std::string const& registryKey,
  27. std::string const& cpackComponentName,
  28. std::string const& suffix);
  29. void EmitUninstallShortcut(std::string const& packageName);
  30. std::string EmitComponentCreateFolder(std::string const& directoryId,
  31. std::string const& guid,
  32. cmInstalledFile const* installedFile);
  33. std::string EmitComponentFile(std::string const& directoryId,
  34. std::string const& id,
  35. std::string const& filePath, cmWIXPatch& patch,
  36. cmInstalledFile const* installedFile);
  37. };
  38. #endif