delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=3.1 required=5.0 tests=AWL,BAYES_50,EXECUTABLE_URI,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL |
X-Spam-Check-By: | sourceware.org |
Date: | Sat, 18 Aug 2012 22:37:08 +0400 |
From: | Andrey Repin <anrdaemon AT freemail DOT ru> |
Reply-To: | Andrey Repin <cygwin AT cygwin DOT com> |
Message-ID: | <1523147992.20120818223708@mtu-net.ru> |
To: | Tom Schutter <t DOT schutter AT comcast DOT net>, cygwin AT cygwin DOT com |
Subject: | Re: semi-automated installation and/or updates |
In-Reply-To: | <20120818163404.GA8853@shadow.schutter.home> |
References: | <20120818163404 DOT GA8853 AT shadow DOT schutter DOT home> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Greetings, Tom Schutter! > I have seen various scripts that do semi-automated installation and/or > updates of Cygwin, but none seemed to have all of the features that I > wanted. So I wrote yet another batch file which can be found at: > https://github.com/tschutter/AppData/blob/master/bin/cygwin_setup.bat There's a couple of errors in it. Also you can move configuration to an external file and CALL "%~dp0\conffile.bat" it. Though, I suggest .cmd extension for batch files. I'm actually surprized, that >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" works, normally, you'd want to place redirects after the command. if "%ERRORLEVEL%" EQU "0" goto :endif_check_admin should be EQL, not EQU. Keep in mind that this comparison WILL fail, if extended mode is disabled. Fail-proof syntax: IF NOT ERRORLEVEL <number> References to _TEMPFILE MUST be quoted. You're referring to a filename, which may contain spaces. You SHOULD NOT run rebaseall manually, unless you really need to do so. -- WBR, Andrey Repin (anrdaemon AT freemail DOT ru) 18.08.2012, <22:00> Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |