PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/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
 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
26#ifndef LL_UPDATE_INSTALLER_H
27#define LL_UPDATE_INSTALLER_H
28
29
30#include <string>
31
32
33enum LLInstallScriptMode {
34	LL_RUN_INSTALL_SCRIPT_IN_PLACE,
35	LL_COPY_INSTALL_SCRIPT_TO_TEMP
36};
37
38//
39// Launch the installation script.
40// 
41// The updater will overwrite the current installation, so it is highly recommended
42// that the current application terminate once this function is called.
43//
44int ll_install_update(
45					  std::string const & script, // Script to execute.
46					  std::string const & updatePath, // Path to update file.
47					  bool required, // Is the update required.
48					  LLInstallScriptMode mode=LL_COPY_INSTALL_SCRIPT_TO_TEMP); // Run in place or copy to temp?
49
50
51//
52// Returns the path which points to the failed install marker file, should it
53// exist.
54//
55std::string const & ll_install_failed_marker_path(void);
56
57
58#endif