CachePath removed

This commit is contained in:
Simon Rozman 2016-03-25 13:24:58 +01:00
parent e31849680f
commit 8bc1d0157e
2 changed files with 1 additions and 52 deletions

View File

@ -50,7 +50,6 @@ wxUpdCheckInitializer::wxUpdCheckInitializer() :
if (wxLocale::IsAvailable(language))
wxVERIFY(m_locale.Init(language));
if (!m_config.Read(wxT("CachePath"), &m_path))
m_path = wxFileName::GetTempDir();
if (!wxEndsWithPathSeparator(m_path))
m_path += wxFILE_SEP_PATH;

View File

@ -1,50 +0,0 @@
#
# Copyright 2016 Amebis
#
# This file is part of Updater.
#
# Updater is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Updater is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Updater. If not, see <http://www.gnu.org/licenses/>.
#
!IFNDEF UPDATER_CFG
UPDATER_CFG=HKLM\Software\Amebis\ZRCola\Updater
!ENDIF
!IFNDEF UPDATER_OUTPUT_DIR
UPDATER_OUTPUT_DIR=output\update
!ENDIF
!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64"
UPDATER_REG_FLAGS=/f /reg:64
UPDATER_REG_FLAGS32=/f /reg:32
!ELSE
UPDATER_REG_FLAGS=/f
!ENDIF
######################################################################
# Main targets
######################################################################
UpdaterRegisterSettings ::
reg.exe add "$(UPDATER_CFG)" /v "CachePath" /t REG_SZ /d "$(MAKEDIR)\$(UPDATER_OUTPUT_DIR)" $(UPDATER_REG_FLAGS) > NUL
!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64"
reg.exe add "$(UPDATER_CFG)" /v "CachePath" /t REG_SZ /d "$(MAKEDIR)\$(UPDATER_OUTPUT_DIR)" $(UPDATER_REG_FLAGS32) > NUL
!ENDIF
UpdaterUnregisterSettings ::
-reg.exe delete "$(UPDATER_CFG)" /v "CachePath" $(UPDATER_REG_FLAGS) > NUL
!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64"
-reg.exe delete "$(UPDATER_CFG)" /v "CachePath" $(UPDATER_REG_FLAGS32) > NUL
!ENDIF