PageRenderTime 39ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/viewer_components/updater/llupdateinstaller.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 58 lines | 14 code | 10 blank | 34 comment | 0 complexity | 2c0cf020fd978454eeafa679b3db00e4 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llupdateinstaller.h
  3. *
  4. * $LicenseInfo:firstyear=2010&license=viewerlgpl$
  5. * Second Life Viewer Source Code
  6. * Copyright (C) 2010, Linden Research, Inc.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation;
  11. * version 2.1 of the License only.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  23. * $/LicenseInfo$
  24. */
  25. #ifndef LL_UPDATE_INSTALLER_H
  26. #define LL_UPDATE_INSTALLER_H
  27. #include <string>
  28. enum LLInstallScriptMode {
  29. LL_RUN_INSTALL_SCRIPT_IN_PLACE,
  30. LL_COPY_INSTALL_SCRIPT_TO_TEMP
  31. };
  32. //
  33. // Launch the installation script.
  34. //
  35. // The updater will overwrite the current installation, so it is highly recommended
  36. // that the current application terminate once this function is called.
  37. //
  38. int ll_install_update(
  39. std::string const & script, // Script to execute.
  40. std::string const & updatePath, // Path to update file.
  41. bool required, // Is the update required.
  42. LLInstallScriptMode mode=LL_COPY_INSTALL_SCRIPT_TO_TEMP); // Run in place or copy to temp?
  43. //
  44. // Returns the path which points to the failed install marker file, should it
  45. // exist.
  46. //
  47. std::string const & ll_install_failed_marker_path(void);
  48. #endif