[Pkg-owncloud-commits] [owncloud-client] 24/47: NSIS: accept /noautoupdate

Sandro Knauß hefee-guest at moszumanska.debian.org
Mon Feb 17 18:06:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 4db7b5f2a7f8ea7e6fd31b85d1d5da7ffe8ef1be
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Wed Feb 12 17:57:50 2014 +0100

    NSIS: accept /noautoupdate
---
 cmake/modules/NSIS.template.in | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/cmake/modules/NSIS.template.in b/cmake/modules/NSIS.template.in
index 9c5fbed..d6af9d8 100644
--- a/cmake/modules/NSIS.template.in
+++ b/cmake/modules/NSIS.template.in
@@ -54,6 +54,7 @@
 !define VERSION "@CPACK_PACKAGE_VERSION@"
 
 Var InstallRunIfSilent
+Var NoAutomaticUpdates
 
 ;-----------------------------------------------------------------------------
 ; Installer build timestamp.
@@ -628,6 +629,13 @@ Function .onInit
       StrCpy $InstallRunIfSilent "yes"
    ${EndIf}
 
+   ${GetParameters} $R0
+   ${GetOptions} $R0 "/noautoupdate" $R0
+   ${IfNot} ${Errors}
+      StrCpy $NoAutomaticUpdates "yes"
+   ${EndIf}
+
+
    !insertmacro INSTALLOPTIONS_EXTRACT "NSIS.InstallOptions.ini"
 
    ; uncomment this line if you want to see the language selection
@@ -695,6 +703,10 @@ FunctionEnd
 Function .onInstSuccess
    ${MementoSectionSave}
 
+   ${If} $NoAutomaticUpdates == "yes"
+      WriteRegDWORD HKLM "Software\${APPLICATION_VENDOR}\${APPLICATION_NAME}" "skipUpdateCheck" "1"
+   ${EndIf}
+
    ${If} ${Silent}
    ${AndIf} $InstallRunIfSilent == "yes"
      Call LaunchApplication

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list