cmWIXFilesSourceWriter.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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,
  23. std::string const& filename);
  24. void EmitShortcut(
  25. std::string const& id,
  26. cmWIXShortcut const& shortcut,
  27. std::string const& shortcutPrefix,
  28. size_t shortcutIndex);
  29. void EmitRemoveFolder(std::string const& id);
  30. void EmitInstallRegistryValue(
  31. std::string const& registryKey,
  32. std::string const& cpackComponentName,
  33. std::string const& suffix);
  34. void EmitUninstallShortcut(std::string const& packageName);
  35. std::string EmitComponentCreateFolder(
  36. std::string const& directoryId,
  37. std::string const& guid,
  38. cmInstalledFile const* installedFile);
  39. std::string EmitComponentFile(
  40. std::string const& directoryId,
  41. std::string const& id,
  42. std::string const& filePath,
  43. cmWIXPatch &patch,
  44. cmInstalledFile const* installedFile);
  45. };
  46. #endif