Update v1.8.0

Update v1.8.0

--- Patchers_Auto_Update/IOS-Patcher/patch.bat
+++ Patchers_Auto_Update/IOS-Patcher/patch.bat
@@ -1,22 +1,24 @@
 @echo off
 :: The version variable - it's being used to check for update and just to show user what version is user using.
-set version=1.7.8
+set version=1.8.0
 if exist temp.bat del /q temp.bat
 if exist "C:\Users\%username%\Desktop\IOSPatcherDebug.txt" goto debug_load
 :1
 set /a copyingsdcard=0
 set /a translationsserror=0
 :: Window size (Lines, columns)
-mode 126,35
+set mode=126,35
+mode %mode%
 :: Coding page
 chcp 65001
+
 set error4112=0
 set filcheck=0
 set patchingok=1
 :: Window Title
 title IOS Patcher for RiiConnect24 v.%version%  Created by @Larsenv, @KcrPL
-set last_build=2017/08/07
-set at=12:52
+set last_build=2017/08/14
+set at=15:51
 :: ### Auto Update ###
 :: 1=Enable 0=Disable
 :: IOSPatcher_Update_Activate - If disabled, patcher will not even check for updates, default=1
@@ -43,7 +45,7 @@
 echo.
 echo Please don't run our IOS Patcher in MS-DOS :P.
 echo Run it only on Windows Vista+ computer. :)
-pause>NUL
+pause>NUL
 exit
 :admin_error
 cls
@@ -54,7 +56,7 @@
 pause>NUL
 goto admin_error
 :begin_main
-mode 126,35
+mode %mode%
 cls
 echo RiiConnect24 IOS Patcher - (C) Larsenv, (C) KcrPL. v%version%. (Compiled on %last_build% at %at%)
 echo              `..````
@@ -91,13 +93,18 @@
 echo                                   -odhhhhyddmmmmmNNmhs/:`
 echo                                     :syhdyyyyso+/-`
 pause>NUL
+if not exist %MainFolder% md %MainFolder%
+if not exist %MainFolder%\eula.txt echo 0 >>%MainFolder%\eula.txt
+set /p eula=<%MainFolder%\eula.txt
+if %eula%==0 goto show_eula
+
 goto startup_script
 :startup_script
 cls
-echo.
-echo              `..````
-echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
-echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo.
+echo              `..````                                     :-------------------------:
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`   : Launching powershell... :
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd   :-------------------------:
 echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
 echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
 echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
@@ -128,7 +135,45 @@
 echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
 echo                                   -odhhhhyddmmmmmNNmhs/:`
 echo                                     :syhdyyyyso+/-`
-echo                                                                        Please wait...
+powershell -c >NUL
+goto check_for_update
+:check_for_update
+cls
+echo.
+echo              `..````                                     :-------------------------:
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`   : Checking for updates... :
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd   :-------------------------:
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo             mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
+echo            `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
+echo            -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
+echo            :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
+echo            +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
+echo            smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
+echo            hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
+echo            mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
+echo           `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+
 :: We don't support Windows XP anymore. Windows XP don't have timeout command, it means that if that command will be runned on Windows XP it will return exit code 1.
 set /a errorwinxp=0
 timeout -0 /nobreak >NUL || set /a errorwinxp=1
@@ -715,7 +760,7 @@

 :set_language
 set translationsserror=0
-mode 126,35
+mode %mode%
 set s=NUL
 rem ### Please do not make any changes to this part of code. ###
 rem # Please contact me on Discord - KcrPL#4625 ###
@@ -786,7 +831,7 @@
 set error4112=1
 goto error4112
 :error_code_error
-mode 126,35
+mode %mode%
 cls
 echo.
 echo IOS Patcher for RiiConnect24 - @Larsenv, @KcrPL
@@ -801,7 +846,7 @@
 goto error_code_error

 :error_translation_not_completed
-mode 126,35
+mode %mode%
 cls
 echo IOS Patcher for RiiConnect24 - @Larsenv, @KcrPL
 echo ---------------------------------------------------------------------------------------------------------------------------
@@ -815,7 +860,7 @@
 set /a translationsserror=1
 goto begin
 :3
-mode 126,35
+mode %mode%
 cls
 echo.
 echo IOS Patcher for RiiConnect24 - @Larsenv, @KcrPL
@@ -831,7 +876,7 @@
 if %s%==2 goto error_3
 goto 3
 :error_3
-mode 126,35
+mode %mode%
 cls
 echo.
 echo IOS Patcher for RiiConnect24 - @Larsenv, @KcrPL
@@ -845,7 +890,7 @@
 pause>NUL
 goto 3
 :4
-mode 126,35
+mode %mode%
 set instalorder=1
 set intrepeat=0
 cls
@@ -861,7 +906,7 @@
 goto 5

 :5
-mode 126,35
+mode %mode%
 set modul=NOT DEFINED
 if exist WAD rmdir WAD /s /q
 cls
@@ -1018,7 +1063,7 @@
 rem ### Patching Done ###
 goto ask_for_copy_to_an_sd_card
 :error_patching
-mode 126,35
+mode %mode%
 cls
 echo.
 echo              `..````
@@ -1057,7 +1102,7 @@
 pause>NUL
 goto begin_main
 :ask_for_copy_to_an_sd_card
-mode 126,35
+mode %mode%
 cls
 echo.
 echo IOS Patcher for RiiConnect24 - @Larsenv, @KcrPL
@@ -1282,7 +1327,7 @@
 set /p sdcard=
 goto sd_card_defined
 :sd_card_error
-mode 126,35
+mode %mode%
 cls
 echo.
 echo IOS Patcher for RiiConnect24 - @Larsenv, @KcrPL
@@ -1313,7 +1358,7 @@
 timeout 1 /nobreak >NUL && set /a timeouterror=0
 goto end1
 :end1
-mode 126,35
+mode %mode%
 cls
 cls
 echo.
@@ -1345,3 +1390,756 @@
 if %timeouterror%==1 ping localhost -n 2 >NUL
 set /a exiting=%exiting%-1
 goto end1
+
+
+
+
+
+
+
+
+
+
+:show_eula
+cls
+echo.
+echo              `..````
+echo              yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.`
+echo              hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
+echo              ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs
+echo             `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
+echo             .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
+echo             :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
+echo             /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+echo             ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
+echo             smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
+echo             hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo    /---\   IOS Patcher is shared under GNU Affero General Public License v3.0 license.
+echo   /     \  In order to use this program, you need to read the license.
+echo  /   !   \
+echo  ---------
+echo                       1. Read                                                           2. Dismiss
+echo ------------------------------------------------------------------------------------------------------------------------------
+echo           -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
+echo           :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
+echo          .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
+echo          o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
+echo          o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
+echo         `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
+echo         .o////////::+++++++oo++///+syyyymMmNmmmNMMm
+echo         -+//////////o+ooooooosydmdddhhsosNMMmNNNmho            `:/
+echo         .+++++++++++ssss+//oyyysso/:/shmshhs+:.          `-/oydNNNy
+echo           `..-:/+ooss+-`          +mmhdy`           -/shmNNNNNdy+:`
+echo                   `.              yddyo++:    `-/oymNNNNNdy+:`
+echo                                   -odhhhhyddmmmmmNNmhs/:`
+echo                                     :syhdyyyyso+/-`
+set /p s=
+if %s%==1 goto read_eula
+if %s%==2 goto begin_main
+goto show_eula
+:read_eula
+cls
+mode 100,9001
+echo :------------------------------:
+echo : Press any button to continue :
+echo :------------------------------:
+echo.                    GNU AFFERO GENERAL PUBLIC LICENSE
+echo.                       Version 3, 19 November 2007
+echo.
+echo. Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/
+echo. Everyone is permitted to copy and distribute verbatim copies
+echo. of this license document, but changing it is not allowed.
+pause>NUL
+echo.
+echo.                            Preamble
+echo.
+echo.  The GNU Affero General Public License is a free, copyleft license for
+echo.software and other kinds of works, specifically designed to ensure
+echo.cooperation with the community in the case of network server software.
+echo.
+echo.  The licenses for most software and other practical works are designed
+echo.to take away your freedom to share and change the works.  By contrast,
+echo.our General Public Licenses are intended to guarantee your freedom to
+echo.share and change all versions of a program--to make sure it remains free
+echo.software for all its users.
+echo.
+echo.  When we speak of free software, we are referring to freedom, not
+echo.price.  Our General Public Licenses are designed to make sure that you
+echo.have the freedom to distribute copies of free software (and charge for
+echo.them if you wish), that you receive source code or can get it if you
+echo.want it, that you can change the software or use pieces of it in new
+echo.free programs, and that you know you can do these things.
+echo.
+echo.  Developers that use our General Public Licenses protect your rights
+echo.with two steps: (1) assert copyright on the software, and (2) offer
+echo.you this License which gives you legal permission to copy, distribute
+echo.and/or modify the software.
+echo.
+echo.  A secondary benefit of defending all users' freedom is that
+echo.improvements made in alternate versions of the program, if they
+echo.receive widespread use, become available for other developers to
+echo.incorporate.  Many developers of free software are heartened and
+echo.encouraged by the resulting cooperation.  However, in the case of
+echo.software used on network servers, this result may fail to come about.
+echo.The GNU General Public License permits making a modified version and
+echo.letting the public access it on a server without ever releasing its
+echo.source code to the public.
+echo.
+echo.  The GNU Affero General Public License is designed specifically to
+echo.ensure that, in such cases, the modified source code becomes available
+echo.to the community.  It requires the operator of a network server to
+echo.provide the source code of the modified version running there to the
+echo.users of that server.  Therefore, public use of a modified version, on
+echo.a publicly accessible server, gives the public access to the source
+echo.code of the modified version.
+echo.
+echo.  An older license, called the Affero General Public License and
+echo.published by Affero, was designed to accomplish similar goals.  This is
+echo.a different license, not a version of the Affero GPL, but Affero has
+echo.released a new version of the Affero GPL which permits relicensing under
+echo.this license.
+echo.
+echo.  The precise terms and conditions for copying, distribution and
+echo.modification follow.
+pause>NUL
+echo.
+echo.                       TERMS AND CONDITIONS
+echo.
+echo.  0. Definitions.
+echo.
+echo.  "This License" refers to version 3 of the GNU Affero General Public License.
+echo.
+echo.  "Copyright" also means copyright-like laws that apply to other kinds of
+echo.works, such as semiconductor masks.
+echo.
+echo.  "The Program" refers to any copyrightable work licensed under this
+echo.License.  Each licensee is addressed as "you".  "Licensees" and
+echo."recipients" may be individuals or organizations.
+echo.
+echo.  To "modify" a work means to copy from or adapt all or part of the work
+echo.in a fashion requiring copyright permission, other than the making of an
+echo.exact copy.  The resulting work is called a "modified version" of the
+echo.earlier work or a work "based on" the earlier work.
+echo.
+echo.  A "covered work" means either the unmodified Program or a work based
+echo.on the Program.
+echo.
+echo.  To "propagate" a work means to do anything with it that, without
+echo.permission, would make you directly or secondarily liable for
+echo.infringement under applicable copyright law, except executing it on a
+echo.computer or modifying a private copy.  Propagation includes copying,
+echo.distribution (with or without modification), making available to the
+echo.public, and in some countries other activities as well.
+echo.
+echo.  To "convey" a work means any kind of propagation that enables other
+echo.parties to make or receive copies.  Mere interaction with a user through
+echo.a computer network, with no transfer of a copy, is not conveying.
+echo.
+echo.  An interactive user interface displays "Appropriate Legal Notices"
+echo.to the extent that it includes a convenient and prominently visible
+echo.feature that (1) displays an appropriate copyright notice, and (2)
+echo.tells the user that there is no warranty for the work (except to the
+echo.extent that warranties are provided), that licensees may convey the
+echo.work under this License, and how to view a copy of this License.  If
+echo.the interface presents a list of user commands or options, such as a
+echo.menu, a prominent item in the list meets this criterion.
+echo.
+echo.  1. Source Code.
+echo.
+echo.  The "source code" for a work means the preferred form of the work
+echo.for making modifications to it.  "Object code" means any non-source
+echo.form of a work.
+echo.
+echo.  A "Standard Interface" means an interface that either is an official
+echo.standard defined by a recognized standards body, or, in the case of
+echo.interfaces specified for a particular programming language, one that
+echo.is widely used among developers working in that language.
+echo.
+echo.  The "System Libraries" of an executable work include anything, other
+echo.than the work as a whole, that (a) is included in the normal form of
+echo.packaging a Major Component, but which is not part of that Major
+echo.Component, and (b) serves only to enable use of the work with that
+echo.Major Component, or to implement a Standard Interface for which an
+echo.implementation is available to the public in source code form.  A
+echo."Major Component", in this context, means a major essential component
+echo.(kernel, window system, and so on) of the specific operating system
+echo.(if any) on which the executable work runs, or a compiler used to
+echo.produce the work, or an object code interpreter used to run it.
+echo.
+echo.  The "Corresponding Source" for a work in object code form means all
+echo.the source code needed to generate, install, and (for an executable
+echo.work) run the object code and to modify the work, including scripts to
+echo.control those activities.  However, it does not include the work's
+echo.System Libraries, or general-purpose tools or generally available free
+echo.programs which are used unmodified in performing those activities but
+echo.which are not part of the work.  For example, Corresponding Source
+echo.includes interface definition files associated with source files for
+echo.the work, and the source code for shared libraries and dynamically
+echo.linked subprograms that the work is specifically designed to require,
+echo.such as by intimate data communication or control flow between those
+echo.subprograms and other parts of the work.
+echo.
+echo.  The Corresponding Source need not include anything that users
+echo.can regenerate automatically from other parts of the Corresponding
+echo.Source.
+echo.
+echo.  The Corresponding Source for a work in source code form is that
+echo.same work.
+pause>NUL
+echo.
+echo.  2. Basic Permissions.
+echo.
+echo.  All rights granted under this License are granted for the term of
+echo.copyright on the Program, and are irrevocable provided the stated
+echo.conditions are met.  This License explicitly affirms your unlimited
+echo.permission to run the unmodified Program.  The output from running a
+echo.covered work is covered by this License only if the output, given its
+echo.content, constitutes a covered work.  This License acknowledges your
+echo.rights of fair use or other equivalent, as provided by copyright law.
+echo.
+echo.  You may make, run and propagate covered works that you do not
+echo.convey, without conditions so long as your license otherwise remains
+echo.in force.  You may convey covered works to others for the sole purpose
+echo.of having them make modifications exclusively for you, or provide you
+echo.with facilities for running those works, provided that you comply with
+echo.the terms of this License in conveying all material for which you do
+echo.not control copyright.  Those thus making or running the covered works
+echo.for you must do so exclusively on your behalf, under your direction
+echo.and control, on terms that prohibit them from making any copies of
+echo.your copyrighted material outside their relationship with you.
+echo.
+echo.  Conveying under any other circumstances is permitted solely under
+echo.the conditions stated below.  Sublicensing is not allowed; section 10
+echo.makes it unnecessary.
+echo.
+pause>NUL
+echo.  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+echo.
+echo.  No covered work shall be deemed part of an effective technological
+echo.measure under any applicable law fulfilling obligations under article
+echo.11 of the WIPO copyright treaty adopted on 20 December 1996, or
+echo.similar laws prohibiting or restricting circumvention of such
+echo.measures.
+echo.
+echo.  When you convey a covered work, you waive any legal power to forbid
+echo.circumvention of technological measures to the extent such circumvention
+echo.is effected by exercising rights under this License with respect to
+echo.the covered work, and you disclaim any intention to limit operation or
+echo.modification of the work as a means of enforcing, against the work's
+echo.users, your or third parties' legal rights to forbid circumvention of
+echo.technological measures.
+echo.
+pause>NUL
+echo.  4. Conveying Verbatim Copies.
+echo.
+echo.  You may convey verbatim copies of the Program's source code as you
+echo.receive it, in any medium, provided that you conspicuously and
+echo.appropriately publish on each copy an appropriate copyright notice;
+echo.keep intact all notices stating that this License and any
+echo.non-permissive terms added in accord with section 7 apply to the code;
+echo.keep intact all notices of the absence of any warranty; and give all
+echo.recipients a copy of this License along with the Program.
+echo.
+echo.  You may charge any price or no price for each copy that you convey,
+echo.and you may offer support or warranty protection for a fee.
+echo.
+pause>NUL
+echo.  5. Conveying Modified Source Versions.
+echo.
+echo.  You may convey a work based on the Program, or the modifications to
+echo.produce it from the Program, in the form of source code under the
+echo.terms of section 4, provided that you also meet all of these conditions:
+echo.
+echo.    a) The work must carry prominent notices stating that you modified
+echo.    it, and giving a relevant date.
+echo.
+echo.    b) The work must carry prominent notices stating that it is
+echo.    released under this License and any conditions added under section
+echo.    7.  This requirement modifies the requirement in section 4 to
+echo.    "keep intact all notices".
+echo.
+echo.    c) You must license the entire work, as a whole, under this
+echo.    License to anyone who comes into possession of a copy.  This
+echo.    License will therefore apply, along with any applicable section 7
+echo.    additional terms, to the whole of the work, and all its parts,
+echo.    regardless of how they are packaged.  This License gives no
+echo.    permission to license the work in any other way, but it does not
+echo.    invalidate such permission if you have separately received it.
+echo.
+echo.    d) If the work has interactive user interfaces, each must display
+echo.    Appropriate Legal Notices; however, if the Program has interactive
+echo.    interfaces that do not display Appropriate Legal Notices, your
+echo.    work need not make them do so.
+echo.
+echo.  A compilation of a covered work with other separate and independent
+echo.works, which are not by their nature extensions of the covered work,
+echo.and which are not combined with it such as to form a larger program,
+echo.in or on a volume of a storage or distribution medium, is called an
+echo."aggregate" if the compilation and its resulting copyright are not
+echo.used to limit the access or legal rights of the compilation's users
+echo.beyond what the individual works permit.  Inclusion of a covered work
+echo.in an aggregate does not cause this License to apply to the other
+echo.parts of the aggregate.
+echo.
+pause>NUL
+echo.  6. Conveying Non-Source Forms.
+echo.
+echo.  You may convey a covered work in object code form under the terms
+echo.of sections 4 and 5, provided that you also convey the
+echo.machine-readable Corresponding Source under the terms of this License,
+echo.in one of these ways:
+echo.
+echo.    a) Convey the object code in, or embodied in, a physical product
+echo.    (including a physical distribution medium), accompanied by the
+echo.    Corresponding Source fixed on a durable physical medium
+echo.    customarily used for software interchange.
+echo.
+echo.    b) Convey the object code in, or embodied in, a physical product
+echo.    (including a physical distribution medium), accompanied by a
+echo.    written offer, valid for at least three years and valid for as
+echo.    long as you offer spare parts or customer support for that product
+echo.    model, to give anyone who possesses the object code either (1) a
+echo.    copy of the Corresponding Source for all the software in the
+echo.    product that is covered by this License, on a durable physical
+echo.    medium customarily used for software interchange, for a price no
+echo.    more than your reasonable cost of physically performing this
+echo.    conveying of source, or (2) access to copy the
+echo.    Corresponding Source from a network server at no charge.
+echo.
+echo.    c) Convey individual copies of the object code with a copy of the
+echo.    written offer to provide the Corresponding Source.  This
+echo.    alternative is allowed only occasionally and noncommercially, and
+echo.    only if you received the object code with such an offer, in accord
+echo.    with subsection 6b.
+echo.
+echo.    d) Convey the object code by offering access from a designated
+echo.    place (gratis or for a charge), and offer equivalent access to the
+echo.    Corresponding Source in the same way through the same place at no
+echo.    further charge.  You need not require recipients to copy the
+echo.    Corresponding Source along with the object code.  If the place to
+echo.    copy the object code is a network server, the Corresponding Source
+echo.    may be on a different server (operated by you or a third party)
+echo.    that supports equivalent copying facilities, provided you maintain
+echo.    clear directions next to the object code saying where to find the
+echo.    Corresponding Source.  Regardless of what server hosts the
+echo.    Corresponding Source, you remain obligated to ensure that it is
+echo.    available for as long as needed to satisfy these requirements.
+echo.
+echo.    e) Convey the object code using peer-to-peer transmission, provided
+echo.    you inform other peers where the object code and Corresponding
+echo.    Source of the work are being offered to the general public at no
+echo.    charge under subsection 6d.
+echo.
+echo.  A separable portion of the object code, whose source code is excluded
+echo.from the Corresponding Source as a System Library, need not be
+echo.included in conveying the object code work.
+echo.
+echo.  A "User Product" is either (1) a "consumer product", which means any
+echo.tangible personal property which is normally used for personal, family,
+echo.or household purposes, or (2) anything designed or sold for incorporation
+echo.into a dwelling.  In determining whether a product is a consumer product,
+echo.doubtful cases shall be resolved in favor of coverage.  For a particular
+echo.product received by a particular user, "normally used" refers to a
+echo.typical or common use of that class of product, regardless of the status
+echo.of the particular user or of the way in which the particular user
+echo.actually uses, or expects or is expected to use, the product.  A product
+echo.is a consumer product regardless of whether the product has substantial
+echo.commercial, industrial or non-consumer uses, unless such uses represent
+echo.the only significant mode of use of the product.
+echo.
+echo.  "Installation Information" for a User Product means any methods,
+echo.procedures, authorization keys, or other information required to install
+echo.and execute modified versions of a covered work in that User Product from
+echo.a modified version of its Corresponding Source.  The information must
+echo.suffice to ensure that the continued functioning of the modified object
+echo.code is in no case prevented or interfered with solely because
+echo.modification has been made.
+echo.
+echo.  If you convey an object code work under this section in, or with, or
+echo.specifically for use in, a User Product, and the conveying occurs as
+echo.part of a transaction in which the right of possession and use of the
+echo.User Product is transferred to the recipient in perpetuity or for a
+echo.fixed term (regardless of how the transaction is characterized), the
+echo.Corresponding Source conveyed under this section must be accompanied
+echo.by the Installation Information.  But this requirement does not apply
+echo.if neither you nor any third party retains the ability to install
+echo.modified object code on the User Product (for example, the work has
+echo.been installed in ROM).
+echo.
+echo.  The requirement to provide Installation Information does not include a
+echo.requirement to continue to provide support service, warranty, or updates
+echo.for a work that has been modified or installed by the recipient, or for
+echo.the User Product in which it has been modified or installed.  Access to a
+echo.network may be denied when the modification itself materially and
+echo.adversely affects the operation of the network or violates the rules and
+echo.protocols for communication across the network.
+echo.
+echo.  Corresponding Source conveyed, and Installation Information provided,
+echo.in accord with this section must be in a format that is publicly
+echo.documented (and with an implementation available to the public in
+echo.source code form), and must require no special password or key for
+echo.unpacking, reading or copying.
+echo.
+pause>NUL
+echo.  7. Additional Terms.
+echo.
+echo.  "Additional permissions" are terms that supplement the terms of this
+echo.License by making exceptions from one or more of its conditions.
+echo.Additional permissions that are applicable to the entire Program shall
+echo.be treated as though they were included in this License, to the extent
+echo.that they are valid under applicable law.  If additional permissions
+echo.apply only to part of the Program, that part may be used separately
+echo.under those permissions, but the entire Program remains governed by
+echo.this License without regard to the additional permissions.
+echo.
+echo.  When you convey a copy of a covered work, you may at your option
+echo.remove any additional permissions from that copy, or from any part of
+echo.it.  (Additional permissions may be written to require their own
+echo.removal in certain cases when you modify the work.)  You may place
+echo.additional permissions on material, added by you to a covered work,
+echo.for which you have or can give appropriate copyright permission.
+echo.
+echo.  Notwithstanding any other provision of this License, for material you
+echo.add to a covered work, you may (if authorized by the copyright holders of
+echo.that material) supplement the terms of this License with terms:
+echo.
+echo.    a) Disclaiming warranty or limiting liability differently from the
+echo.    terms of sections 15 and 16 of this License; or
+echo.
+echo.    b) Requiring preservation of specified reasonable legal notices or
+echo.    author attributions in that material or in the Appropriate Legal
+echo.    Notices displayed by works containing it; or
+echo.
+echo.    c) Prohibiting misrepresentation of the origin of that material, or
+echo.    requiring that modified versions of such material be marked in
+echo.    reasonable ways as different from the original version; or
+echo.
+echo.    d) Limiting the use for publicity purposes of names of licensors or
+echo.    authors of the material; or
+echo.
+echo.    e) Declining to grant rights under trademark law for use of some
+echo.    trade names, trademarks, or service marks; or
+echo.
+echo.    f) Requiring indemnification of licensors and authors of that
+echo.    material by anyone who conveys the material (or modified versions of
+echo.    it) with contractual assumptions of liability to the recipient, for
+echo.    any liability that these contractual assumptions directly impose on
+echo.    those licensors and authors.
+echo.
+echo.  All other non-permissive additional terms are considered "further
+echo.restrictions" within the meaning of section 10.  If the Program as you
+echo.received it, or any part of it, contains a notice stating that it is
+echo.governed by this License along with a term that is a further
+echo.restriction, you may remove that term.  If a license document contains
+echo.a further restriction but permits relicensing or conveying under this
+echo.License, you may add to a covered work material governed by the terms
+echo.of that license document, provided that the further restriction does
+echo.not survive such relicensing or conveying.
+echo.
+echo.  If you add terms to a covered work in accord with this section, you
+echo.must place, in the relevant source files, a statement of the
+echo.additional terms that apply to those files, or a notice indicating
+echo.where to find the applicable terms.
+echo.
+echo.  Additional terms, permissive or non-permissive, may be stated in the
+echo.form of a separately written license, or stated as exceptions;
+echo.the above requirements apply either way.
+echo.
+pause>NUL
+echo.  8. Termination.
+echo.
+echo.  You may not propagate or modify a covered work except as expressly
+echo.provided under this License.  Any attempt otherwise to propagate or
+echo.modify it is void, and will automatically terminate your rights under
+echo.this License (including any patent licenses granted under the third
+echo.paragraph of section 11).
+echo.
+echo.  However, if you cease all violation of this License, then your
+echo.license from a particular copyright holder is reinstated (a)
+echo.provisionally, unless and until the copyright holder explicitly and
+echo.finally terminates your license, and (b) permanently, if the copyright
+echo.holder fails to notify you of the violation by some reasonable means
+echo.prior to 60 days after the cessation.
+echo.
+echo.  Moreover, your license from a particular copyright holder is
+echo.reinstated permanently if the copyright holder notifies you of the
+echo.violation by some reasonable means, this is the first time you have
+echo.received notice of violation of this License (for any work) from that
+echo.copyright holder, and you cure the violation prior to 30 days after
+echo.your receipt of the notice.
+echo.
+echo.  Termination of your rights under this section does not terminate the
+echo.licenses of parties who have received copies or rights from you under
+echo.this License.  If your rights have been terminated and not permanently
+echo.reinstated, you do not qualify to receive new licenses for the same
+echo.material under section 10.
+echo.
+echo.  9. Acceptance Not Required for Having Copies.
+echo.
+echo.  You are not required to accept this License in order to receive or
+echo.run a copy of the Program.  Ancillary propagation of a covered work
+echo.occurring solely as a consequence of using peer-to-peer transmission
+echo.to receive a copy likewise does not require acceptance.  However,
+echo.nothing other than this License grants you permission to propagate or
+echo.modify any covered work.  These actions infringe copyright if you do
+echo.not accept this License.  Therefore, by modifying or propagating a
+echo.covered work, you indicate your acceptance of this License to do so.
+echo.
+echo.  10. Automatic Licensing of Downstream Recipients.
+echo.
+echo.  Each time you convey a covered work, the recipient automatically
+echo.receives a license from the original licensors, to run, modify and
+echo.propagate that work, subject to this License.  You are not responsible
+echo.for enforcing compliance by third parties with this License.
+echo.
+echo.  An "entity transaction" is a transaction transferring control of an
+echo.organization, or substantially all assets of one, or subdividing an
+echo.organization, or merging organizations.  If propagation of a covered
+echo.work results from an entity transaction, each party to that
+echo.transaction who receives a copy of the work also receives whatever
+echo.licenses to the work the party's predecessor in interest had or could
+echo.give under the previous paragraph, plus a right to possession of the
+echo.Corresponding Source of the work from the predecessor in interest, if
+echo.the predecessor has it or can get it with reasonable efforts.
+echo.
+echo.  You may not impose any further restrictions on the exercise of the
+echo.rights granted or affirmed under this License.  For example, you may
+echo.not impose a license fee, royalty, or other charge for exercise of
+echo.rights granted under this License, and you may not initiate litigation
+echo.(including a cross-claim or counterclaim in a lawsuit) alleging that
+echo.any patent claim is infringed by making, using, selling, offering for
+echo.sale, or importing the Program or any portion of it.
+echo.
+pause>NUL
+echo.  11. Patents.
+echo.
+echo.  A "contributor" is a copyright holder who authorizes use under this
+echo.License of the Program or a work on which the Program is based.  The
+echo.work thus licensed is called the contributor's "contributor version".
+echo.
+echo.  A contributor's "essential patent claims" are all patent claims
+echo.owned or controlled by the contributor, whether already acquired or
+echo.hereafter acquired, that would be infringed by some manner, permitted
+echo.by this License, of making, using, or selling its contributor version,
+echo.but do not include claims that would be infringed only as a
+echo.consequence of further modification of the contributor version.  For
+echo.purposes of this definition, "control" includes the right to grant
+echo.patent sublicenses in a manner consistent with the requirements of
+echo.this License.
+echo.
+echo.  Each contributor grants you a non-exclusive, worldwide, royalty-free
+echo.patent license under the contributor's essential patent claims, to
+echo.make, use, sell, offer for sale, import and otherwise run, modify and
+echo.propagate the contents of its contributor version.
+echo.
+echo.  In the following three paragraphs, a "patent license" is any express
+echo.agreement or commitment, however denominated, not to enforce a patent
+echo.(such as an express permission to practice a patent or covenant not to
+echo.sue for patent infringement).  To "grant" such a patent license to a
+echo.party means to make such an agreement or commitment not to enforce a
+echo.patent against the party.
+echo.
+echo.  If you convey a covered work, knowingly relying on a patent license,
+echo.and the Corresponding Source of the work is not available for anyone
+echo.to copy, free of charge and under the terms of this License, through a
+echo.publicly available network server or other readily accessible means,
+echo.then you must either (1) cause the Corresponding Source to be so
+echo.available, or (2) arrange to deprive yourself of the benefit of the
+echo.patent license for this particular work, or (3) arrange, in a manner
+echo.consistent with the requirements of this License, to extend the patent
+echo.license to downstream recipients.  "Knowingly relying" means you have
+echo.actual knowledge that, but for the patent license, your conveying the
+echo.covered work in a country, or your recipient's use of the covered work
+echo.in a country, would infringe one or more identifiable patents in that
+echo.country that you have reason to believe are valid.
+echo.
+echo.  If, pursuant to or in connection with a single transaction or
+echo.arrangement, you convey, or propagate by procuring conveyance of, a
+echo.covered work, and grant a patent license to some of the parties
+echo.receiving the covered work authorizing them to use, propagate, modify
+echo.or convey a specific copy of the covered work, then the patent license
+echo.you grant is automatically extended to all recipients of the covered
+echo.work and works based on it.
+echo.
+echo.  A patent license is "discriminatory" if it does not include within
+echo.the scope of its coverage, prohibits the exercise of, or is
+echo.conditioned on the non-exercise of one or more of the rights that are
+echo.specifically granted under this License.  You may not convey a covered
+echo.work if you are a party to an arrangement with a third party that is
+echo.in the business of distributing software, under which you make payment
+echo.to the third party based on the extent of your activity of conveying
+echo.the work, and under which the third party grants, to any of the
+echo.parties who would receive the covered work from you, a discriminatory
+echo.patent license (a) in connection with copies of the covered work
+echo.conveyed by you (or copies made from those copies), or (b) primarily
+echo.for and in connection with specific products or compilations that
+echo.contain the covered work, unless you entered into that arrangement,
+echo.or that patent license was granted, prior to 28 March 2007.
+echo.
+echo.  Nothing in this License shall be construed as excluding or limiting
+echo.any implied license or other defenses to infringement that may
+echo.otherwise be available to you under applicable patent law.
+echo.
+pause>NUL
+echo.  12. No Surrender of Others' Freedom.
+echo.
+echo.  If conditions are imposed on you (whether by court order, agreement or
+echo.otherwise) that contradict the conditions of this License, they do not
+echo.excuse you from the conditions of this License.  If you cannot convey a
+echo.covered work so as to satisfy simultaneously your obligations under this
+echo.License and any other pertinent obligations, then as a consequence you may
+echo.not convey it at all.  For example, if you agree to terms that obligate you
+echo.to collect a royalty for further conveying from those to whom you convey
+echo.the Program, the only way you could satisfy both those terms and this
+echo.License would be to refrain entirely from conveying the Program.
+echo.
+pause>NUL
+echo.  13. Remote Network Interaction; Use with the GNU General Public License.
+echo.
+echo.  Notwithstanding any other provision of this License, if you modify the
+echo.Program, your modified version must prominently offer all users
+echo.interacting with it remotely through a computer network (if your version
+echo.supports such interaction) an opportunity to receive the Corresponding
+echo.Source of your version by providing access to the Corresponding Source
+echo.from a network server at no charge, through some standard or customary
+echo.means of facilitating copying of software.  This Corresponding Source
+echo.shall include the Corresponding Source for any work covered by version 3
+echo.of the GNU General Public License that is incorporated pursuant to the
+echo.following paragraph.
+echo.
+echo.  Notwithstanding any other provision of this License, you have
+echo.permission to link or combine any covered work with a work licensed
+echo.under version 3 of the GNU General Public License into a single
+echo.combined work, and to convey the resulting work.  The terms of this
+echo.License will continue to apply to the part which is the covered work,
+echo.but the work with which it is combined will remain governed by version
+echo.3 of the GNU General Public License.
+echo.
+pause>NUL
+echo.  14. Revised Versions of this License.
+echo.
+echo.  The Free Software Foundation may publish revised and/or new versions of
+echo.the GNU Affero General Public License from time to time.  Such new versions
+echo.will be similar in spirit to the present version, but may differ in detail to
+echo.address new problems or concerns.
+echo.
+echo.  Each version is given a distinguishing version number.  If the
+echo.Program specifies that a certain numbered version of the GNU Affero General
+echo.Public License "or any later version" applies to it, you have the
+echo.option of following the terms and conditions either of that numbered
+echo.version or of any later version published by the Free Software
+echo.Foundation.  If the Program does not specify a version number of the
+echo.GNU Affero General Public License, you may choose any version ever published
+echo.by the Free Software Foundation.
+echo.
+echo.  If the Program specifies that a proxy can decide which future
+echo.versions of the GNU Affero General Public License can be used, that proxy's
+echo.public statement of acceptance of a version permanently authorizes you
+echo.to choose that version for the Program.
+echo.
+echo.  Later license versions may give you additional or different
+echo.permissions.  However, no additional obligations are imposed on any
+echo.author or copyright holder as a result of your choosing to follow a
+echo.later version.
+echo.
+pause>NUL
+echo.  15. Disclaimer of Warranty.
+echo.
+echo.  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+echo.APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+echo.HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+echo.OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+echo.THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+echo.PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+echo.IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+echo.ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+echo.
+pause>NUL
+echo.  16. Limitation of Liability.
+echo.
+echo.  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+echo.WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+echo.THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+echo.GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+echo.USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+echo.DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+echo.PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+echo.EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+echo.SUCH DAMAGES.
+echo.
+pause>NUL
+echo.  17. Interpretation of Sections 15 and 16.
+echo.
+echo.  If the disclaimer of warranty and limitation of liability provided
+echo.above cannot be given local legal effect according to their terms,
+echo.reviewing courts shall apply local law that most closely approximates
+echo.an absolute waiver of all civil liability in connection with the
+echo.Program, unless a warranty or assumption of liability accompanies a
+echo.copy of the Program in return for a fee.
+echo.
+pause>NUL
+echo.                     END OF TERMS AND CONDITIONS
+echo.
+echo.            How to Apply These Terms to Your New Programs
+echo.
+echo.  If you develop a new program, and you want it to be of the greatest
+echo.possible use to the public, the best way to achieve this is to make it
+echo.free software which everyone can redistribute and change under these terms.
+echo.
+echo.  To do so, attach the following notices to the program.  It is safest
+echo.to attach them to the start of each source file to most effectively
+echo.state the exclusion of warranty; and each file should have at least
+echo.the "copyright" line and a pointer to where the full notice is found.
+echo.
+echo.    one line to give the program's name and a brief idea of what it does.
+echo.    Copyright (C) year  name of author
+echo.
+echo.    This program is free software: you can redistribute it and/or modify
+echo.    it under the terms of the GNU Affero General Public License as published
+echo.    by the Free Software Foundation, either version 3 of the License, or
+echo.    (at your option) any later version.
+echo.
+echo.    This program is distributed in the hope that it will be useful,
+echo.    but WITHOUT ANY WARRANTY; without even the implied warranty of
+echo.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+echo.    GNU Affero General Public License for more details.
+echo.
+echo.    You should have received a copy of the GNU Affero General Public License
+echo.    along with this program.  If not, see http://www.gnu.org/licenses/.
+echo.
+echo.Also add information on how to contact you by electronic and paper mail.
+echo.
+echo.  If your software can interact with users remotely through a computer
+echo.network, you should also make sure that it provides a way for users to
+echo.get its source.  For example, if your program is a web application, its
+echo.interface could display a "Source" link that leads users to an archive
+echo.of the code.  There are many ways you could offer source, and different
+echo.solutions will be better for different programs; see section 13 for the
+echo.specific requirements.
+echo.
+echo.  You should also get your employer (if you work as a programmer) or school,
+echo.if any, to sign a "copyright disclaimer" for the program, if necessary.
+echo.For more information on this, and how to apply and follow the GNU AGPL, see
+echo.http://www.gnu.org/licenses/.
+echo.
+pause>NUL>NUL
+goto accept_eula
+:accept_eula
+mode %mode%
+echo RiiConnect24 IOS Patcher - (C) Larsenv, (C) KcrPL. v%version%. (Compiled on %last_build% at %at%)
+echo.
+echo Do you accept that?
+echo.
+echo 1. I Accept
+echo 2. I Do Not Accept
+echo 3. Read again.
+set /p s=Choose:
+if %s%==1 goto set_accepted_eula
+if %s%==2 goto begin_main
+if %s%==3 goto read_eula
+goto accept_eula
+:set_accepted_eula
+if exist %MainFolder%\eula.txt del %MainFolder%\eula.txt /q
+echo 1 >>%MainFolder%\eula.txt
+goto begin_main


don't run setup from start.bat.

don't run setup from start.bat.

--- start.bat
+++ start.bat
@@ -1,6 +1,4 @@
 @ECHO OFF
-
-CALL setup_conveyor_env.bat

 SET CONVEYOR_SYNC_FILE=conveyor.pid

@@ -8,5 +6,5 @@

 ECHO Starting conveyor backend from start.bat

-python -m conveyor.service -c conveyor.conf
+virtualenv\Scripts\python.exe -m conveyor.service -c conveyor.conf


Update box.bat

Update box.bat

--- bin/box.bat
+++ bin/box.bat
@@ -1,2 +1,2 @@
 @echo off
-php %~dp0/box %*
+php "%~dp0box" %*


change location of rdoc

change location of rdoc

--- watir/build-rdoc.bat
+++ watir/build-rdoc.bat
@@ -1,3 +1,3 @@
 # note use -Adef_wrap=R -Adef_wrap_guard=R flags to gen RDOC for those things in Elements
-rdoc -m ReadMe --title "Watir API Reference" -o rdoc --exclude "unittests|examples|install.rb|camel_case.rb|testUnitAddons.rb"
+rdoc -m ReadMe --title "Watir API Reference" -o doc\rdoc --exclude "unittests|examples|install.rb|camel_case.rb|testUnitAddons.rb"


Add gradlew.bat

Add gradlew.bat

error: pathspec 'gradlew.bat' did not match any file(s) known to git

--- gradlew.bat
+++ gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem  Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega


new pecl.bat file, with windows line endings, so binary add

git-svn-id: 4b064e69dc630d28214c1e1442d27300cccf8e9a@179222 c90b9560-bf6c-de11-be94-00142212c4b1

error: pathspec 'scripts/pecl.bat' did not match any file(s) known to git

--- scripts/pecl.bat
+++ scripts/pecl.bat
@@ -0,0 +1,115 @@
+@ECHO OFF
+
+REM ----------------------------------------------------------------------
+REM PHP version 5
+REM ----------------------------------------------------------------------
+REM Copyright (c) 1997-2004 The PHP Group
+REM ----------------------------------------------------------------------
+REM  This source file is subject to version 3.0 of the PHP license,
+REM  that is bundled with this package in the file LICENSE, and is
+REM  available at through the world-wide-web at
+REM  http://www.php.net/license/3_0.txt.
+REM  If you did not receive a copy of the PHP license and are unable to
+REM  obtain it through the world-wide-web, please send a note to
+REM  license@php.net so we can mail you a copy immediately.
+REM ----------------------------------------------------------------------
+REM  Authors:     Alexander Merz (alexmerz@php.net)
+REM ----------------------------------------------------------------------
+REM
+REM  Last updated 12/29/2004 ($Id$ is not replaced if the file is binary)
+
+REM change this lines to match the paths of your system
+REM -------------------
+
+
+REM Test to see if this is a raw pear.bat (uninstalled version)
+SET TMPTMPTMPTMPT=@includ
+SET PMTPMTPMT=%TMPTMPTMPTMPT%e_path@
+FOR %%x IN ("@include_path@") DO (if %%x=="%PMTPMTPMT%" GOTO :NOTINSTALLED)
+
+REM Check PEAR global ENV, set them if they do not exist
+IF "%PHP_PEAR_INSTALL_DIR%"=="" SET "PHP_PEAR_INSTALL_DIR=@include_path@"
+IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=@bin_dir@"
+IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=@php_bin@"
+GOTO :INSTALLED
+
+:NOTINSTALLED
+ECHO WARNING: This is a raw, uninstalled pear.bat
+
+REM Check to see if we can grab the directory of this file (Windows NT+)
+IF %~n0 == pear (
+FOR %%x IN (cli\php.exe php.exe) DO (if "%%~$PATH:x" NEQ "" (
+SET "PHP_PEAR_PHP_BIN=%%~$PATH:x"
+echo Using PHP Executable "%PHP_PEAR_PHP_BIN%"
+"%PHP_PEAR_PHP_BIN%" -v
+GOTO :NEXTTEST
+))
+GOTO :FAILAUTODETECT
+:NEXTTEST
+IF "%PHP_PEAR_PHP_BIN%" NEQ "" (
+
+REM We can use this PHP to run a temporary php file to get the dirname of pear
+
+echo ^<?php $s=getcwd^(^);chdir^($a=dirname^(__FILE__^).'\\'^);if^(stristr^($a,'\\scripts'^)^)$a=dirname^(dirname^($a^)^).'\\';$f=fopen^($s.'\\~a.a','wb'^);echo$s.'\\~a.a';fwrite^($f,$a^);fclose^($f^);chdir^($s^);?^> > ~~getloc.php
+"%PHP_PEAR_PHP_BIN%" ~~getloc.php
+set /p PHP_PEAR_BIN_DIR=fakeprompt < ~a.a
+DEL ~a.a
+DEL ~~getloc.php
+set "PHP_PEAR_INSTALL_DIR=%PHP_PEAR_BIN_DIR%pear"
+
+REM Make sure there is a pearcmd.php at our disposal
+
+IF NOT EXIST %PHP_PEAR_INSTALL_DIR%\pearcmd.php (
+IF EXIST %PHP_PEAR_INSTALL_DIR%\scripts\pearcmd.php COPY %PHP_PEAR_INSTALL_DIR%\scripts\pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php
+IF EXIST pearcmd.php COPY pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php
+IF EXIST %~dp0\scripts\pearcmd.php COPY %~dp0\scripts\pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php
+)
+)
+GOTO :INSTALLED
+) ELSE (
+REM Windows Me/98 cannot succeed, so allow the batch to fail
+)
+:FAILAUTODETECT
+echo WARNING: failed to auto-detect pear information
+:INSTALLED
+
+REM Check Folders and files
+IF NOT EXIST "%PHP_PEAR_INSTALL_DIR%" GOTO PEAR_INSTALL_ERROR
+IF NOT EXIST "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" GOTO PEAR_INSTALL_ERROR2
+IF NOT EXIST "%PHP_PEAR_BIN_DIR%" GOTO PEAR_BIN_ERROR
+IF NOT EXIST "%PHP_PEAR_PHP_BIN%" GOTO PEAR_PHPBIN_ERROR
+REM launch pearcmd
+GOTO RUN
+:PEAR_INSTALL_ERROR
+ECHO PHP_PEAR_INSTALL_DIR is not set correctly.
+ECHO Please fix it using your environment variable or modify
+ECHO the default value in pear.bat
+ECHO The current value is:
+ECHO %PHP_PEAR_INSTALL_DIR%
+GOTO END
+:PEAR_INSTALL_ERROR2
+ECHO PHP_PEAR_INSTALL_DIR is not set correctly.
+ECHO pearcmd.php could not be found there.
+ECHO Please fix it using your environment variable or modify
+ECHO the default value in pear.bat
+ECHO The current value is:
+ECHO %PHP_PEAR_INSTALL_DIR%
+GOTO END
+:PEAR_BIN_ERROR
+ECHO PHP_PEAR_BIN_DIR is not set correctly.
+ECHO Please fix it using your environment variable or modify
+ECHO the default value in pear.bat
+ECHO The current value is:
+ECHO %PHP_PEAR_BIN_DIR%
+GOTO END
+:PEAR_PHPBIN_ERROR
+ECHO PHP_PEAR_PHP_BIN is not set correctly.
+ECHO Please fix it using your environment variable or modify
+ECHO the default value in pear.bat
+ECHO The current value is:
+ECHO %PHP_PEAR_PHP_BIN%
+GOTO END
+:RUN
+"%PHP_PEAR_PHP_BIN%" -C -n -d output_buffering=1 -d include_path="%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9
+:END
+@ECHO ON


make batch file return non zero on test fail

--- scripts/test.bat
+++ scripts/test.bat
@@ -5,6 +5,9 @@

 pushd %~dp0\..
 .\.build\electron\electron.exe .\node_modules\mocha\bin\_mocha %*
+set RESULT=%errorlevel%
 popd

-endlocal+endlocal
+
+exit /b %RESULT%


clean up pg_upgrade tmp_check under MSVC

--- src/tools/msvc/clean.bat
+++ src/tools/msvc/clean.bat
@@ -124,6 +124,7 @@
 if exist src\bin\pg_controldata\tmp_check rd /s /q src\bin\pg_controldata\tmp_check
 if exist src\bin\pg_ctl\tmp_check rd /s /q src\bin\pg_ctl\tmp_check
 if exist src\bin\pg_rewind\tmp_check rd /s /q src\bin\pg_rewind\tmp_check
+if exist src\bin\pg_upgrade\tmp_check rd /s /q src\bin\pg_upgrade\tmp_check
 if exist src\bin\pgbench\tmp_check rd /s /q src\bin\pgbench\tmp_check
 if exist src\bin\scripts\tmp_check rd /s /q src\bin\scripts\tmp_check
 if exist src\test\recovery\tmp_check rd /s /q src\test\recovery\tmp_check


BAP-498: Investigate failed builds and tests  - fixed console in install.bat

--- install.bat
+++ install.bat
@@ -5,7 +5,7 @@
 )

 php app/console-framework oro:entity-extend:clear --env %ENV% || goto :error
-php app/console doctrine:schema:drop --force --full-database --env %ENV% || goto :error
+php app/console-framework doctrine:schema:drop --force --full-database --env %ENV% || goto :error
 php app/console-framework doctrine:schema:create --env %ENV% || goto :error
 php app/console-framework oro:entity-config:init --env %ENV% || goto :error
 php app/console-framework oro:entity-extend:init --env %ENV% || goto :error
@@ -16,10 +16,10 @@
 php app/console-framework oro:navigation:init --env %ENV% || goto :error
 php app/console-framework oro:search:create-index --env %ENV% || goto :error
 php app/console-framework assets:install web --env %ENV% || goto :error
-php app/console assetic:dump --env %ENV% || goto :error
-php app/console oro:assetic:dump --env %ENV%|| goto :error
-php app/console oro:translation:dump --env %ENV% || goto :error
-php app/console oro:requirejs:build --env %ENV% || goto :error
+php app/console-framework assetic:dump --env %ENV% || goto :error
+php app/console-framework oro:assetic:dump --env %ENV%|| goto :error
+php app/console-framework oro:translation:dump --env %ENV% || goto :error
+php app/console-framework oro:requirejs:build --env %ENV% || goto :error
 goto :EOF

 :error


update

update

--- install.bat
+++ install.bat
@@ -13,3 +13,5 @@

 call BuildNF.CMake.bat
 call BuildNF.VS2015.Debug.X64.bat
+
+call BuildNF.CopyDll.bat


modify openshell script

modify openshell script

1.add path var in env


* Path update for the new MSVC SDK that comes with scons

--- build/win32/msvc2005/update_msvc_project.bat
+++ build/win32/msvc2005/update_msvc_project.bat
@@ -1,6 +1,6 @@
 :: Users will need to change paths if they use custom MinGW or SCons version that didn't ship with the SDK
 set _=%CD%
-SET PATH=%Path%;%_%\..\mingw\applications\scons
+SET PATH=%Path%;%_%\applications\scons

 :: Goto TRUNK and call SCons
 cd \


Completely removed the 7-zip requirement when installing the VMware tools via script/vmtool.bat.

--- script/vmtool.bat
+++ script/vmtool.bat
@@ -11,36 +11,38 @@
 )

 if not defined PACKER_SEARCH_PATHS set PACKER_SEARCH_PATHS="%USERPROFILE%" a: b: c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:
-if not defined SEVENZIP_32_URL set SEVENZIP_32_URL=http://7-zip.org/a/7z1604.msi
-if not defined SEVENZIP_64_URL set SEVENZIP_64_URL=http://7-zip.org/a/7z1604-x64.msi
-if not defined VBOX_ISO_URL set VBOX_ISO_URL=http://download.virtualbox.org/virtualbox/5.1.30/VBoxGuestAdditions_5.1.30.iso
-if not defined VMWARE_TOOLS_LATEST_ISOURL set VMWARE_TOOLS_LATEST_ISOURL=https://packages.vmware.com/tools/releases/11.1.0/windows/VMware-tools-windows-11.1.0-16036546.iso
-if not defined VMWARE_TOOLS_OLD_ISOURL set VMWARE_TOOLS_OLD_ISOURL=https://packages.vmware.com/tools/releases/10.2.5/windows/VMware-tools-windows-10.2.5-8068406.iso
+if not defined SEVENZIP_32_URL set "SEVENZIP_32_URL=http://7-zip.org/a/7z1604.msi"
+if not defined SEVENZIP_64_URL set "SEVENZIP_64_URL=http://7-zip.org/a/7z1604-x64.msi"
+if not defined VBOX_ISO_URL set "VBOX_ISO_URL=http://download.virtualbox.org/virtualbox/5.1.30/VBoxGuestAdditions_5.1.30.iso"
+if not defined VMWARE_TOOLS_OLD_BASEURL set "VMWARE_TOOLS_OLD_BASEURL=https://packages.vmware.com/tools/releases/10.2.5/windows"
+if not defined VMWARE_TOOLS_OLD_BASENAME set "VMWARE_TOOLS_OLD_BASENAME=VMware-tools-windows-10.2.5-8068406"
+if not defined VMWARE_TOOLS_LATEST_BASEURL set "VMWARE_TOOLS_LATEST_BASEURL=https://packages.vmware.com/tools/releases/11.1.0/windows"
+if not defined VMWARE_TOOLS_LATEST_BASENAME set "VMWARE_TOOLS_LATEST_BASENAME=VMware-tools-windows-11.1.0-16036546"
 goto main

 ::::::::::::
 :install_sevenzip
 ::::::::::::
 if "%PROCESSOR_ARCHITECTURE%" == "x86" (
-  set SEVENZIP_URL=%SEVENZIP_32_URL%
+  set "SEVENZIP_URL=%SEVENZIP_32_URL%"
 ) else (
-  set SEVENZIP_URL=%SEVENZIP_64_URL%
+  set "SEVENZIP_URL=%SEVENZIP_64_URL%"
 )
 pushd .
 set SEVENZIP_EXE=
 set SEVENZIP_DLL=
-for %%i in (7z.exe) do set SEVENZIP_EXE=%%~$PATH:i
+for %%i in (7z.exe) do set "SEVENZIP_EXE=%%~$PATH:i"
 if defined SEVENZIP_EXE goto return0
-@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined SEVENZIP_EXE @if exist "%%~i\7z.exe" set SEVENZIP_EXE=%%~i\7z.exe
+@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined SEVENZIP_EXE @if exist "%%~i\7z.exe" set "SEVENZIP_EXE=%%~i\7z.exe"
 if not defined SEVENZIP_EXE goto get_sevenzip
-@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined SEVENZIP_DLL @if exist "%%~i\7z.dll" set SEVENZIP_DLL=%%~i\7z.dll
+@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined SEVENZIP_DLL @if exist "%%~i\7z.dll" set "SEVENZIP_DLL=%%~i\7z.dll"
 if not defined SEVENZIP_DLL goto get_sevenzip
 ver >nul
 call :copy_sevenzip
 if not errorlevel 1 goto return0

 :get_sevenzip
-for %%i in ("%SEVENZIP_URL%") do set SEVENZIP_MSI=%%~nxi
+for %%i in ("%SEVENZIP_URL%") do set "SEVENZIP_MSI=%%~nxi"
 set "SEVENZIP_DIR=%TEMP%\sevenzip"
 set "SEVENZIP_PATH=%SEVENZIP_DIR%\%SEVENZIP_MSI%"
 echo ==^> Creating "%SEVENZIP_DIR%"
@@ -61,18 +63,18 @@
 ver>nul

 set SEVENZIP_INSTALL_DIR=
-for %%i in ("%ProgramFiles%" "%ProgramW6432%" "%ProgramFiles(x86)%") do if exist "%%~i\7-Zip" set SEVENZIP_INSTALL_DIR=%%~i\7-Zip
+for %%i in ("%ProgramFiles%" "%ProgramW6432%" "%ProgramFiles(x86)%") do if exist "%%~i\7-Zip" set "SEVENZIP_INSTALL_DIR=%%~i\7-Zip"
 if exist "%SEVENZIP_INSTALL_DIR%" cd /D "%SEVENZIP_INSTALL_DIR%" & goto find_sevenzip
 echo ==^> ERROR: Directory not found: "%ProgramFiles%\7-Zip"
 goto return1

 :find_sevenzip
 set SEVENZIP_EXE=
-for /r %%i in (7z.exe) do if exist "%%~i" set SEVENZIP_EXE=%%~i
+for /r %%i in (7z.exe) do if exist "%%~i" set "SEVENZIP_EXE=%%~i"
 if not exist "%SEVENZIP_EXE%" echo ==^> ERROR: Failed to unzip "%SEVENZIP_PATH%" & goto return1

 set SEVENZIP_DLL=
-for /r %%i in (7z.dll) do if exist "%%~i" set SEVENZIP_DLL=%%~i
+for /r %%i in (7z.dll) do if exist "%%~i" set "SEVENZIP_DLL=%%~i"
 if not exist "%SEVENZIP_DLL%" echo ==^> ERROR: Failed to unzip "%SEVENZIP_PATH%" & goto return1

 :copy_sevenzip
@@ -140,108 +142,106 @@
 ::::::::::::
 :vmware
 ::::::::::::
+set "VMWARE_TOOLS_DIR=%TEMP%\vmware"
+echo ==^> Installing the VMware tools using directory %VMWARE_TOOLS_DIR%
+
+mkdir "%VMWARE_TOOLS_DIR%"
+pushd "%VMWARE_TOOLS_DIR%"
+
+:: Figure out which iso to use depending on the platform version. The w7 family
+:: only allows us up to tools version 10.2.5 unless we update to SP1.
+if %PlatformVersionMajor% LSS 6 goto vmware_old_url
+if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 0 if %PlatformVersionRelease% GTR 7600 goto vmware_new_url
+if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 0 goto vmware_old_url
+if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 1 if %PlatformVersionRelease% GTR 7600 goto vmware_new_url
+if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 1 goto vmware_old_url
+goto vmware_new_url
+
+:: Otherwise, we need to use an older version to avoid needing to update
+:vmware_old_url
+set "VMWARE_TOOLS_BASEURL=%VMWARE_TOOLS_OLD_BASEURL%"
+set "VMWARE_TOOLS_BASENAME=%VMWARE_TOOLS_OLD_BASENAME%"
+goto prepare_vmware_tools_download
+
+:: We can use the most recent version according to our detected platform. This
+:: should only require KB2999226 which should've been installed already.
+:vmware_new_url
+set "VMWARE_TOOLS_BASEURL=%VMWARE_TOOLS_LATEST_BASEURL%"
+set "VMWARE_TOOLS_BASENAME=%VMWARE_TOOLS_LATEST_BASENAME%"
+goto prepare_vmware_tools_download
+
+:: Setup all the paths we're going to need in order to download our installer
+:prepare_vmware_tools_download
 if "%PROCESSOR_ARCHITECTURE%" == "x86" (
-  set "VMWARE_TOOLS_SETUP_EXE=setup.exe"
-  set "VMWARE_TOOLS_PROGRAM_FILES_DIR=%ProgramFiles%\VMware"
+  set "VMWARE_TOOLS_URL=%VMWARE_TOOLS_BASEURL%/x86"
+  set "VMWARE_TOOLS_FILE=%VMWARE_TOOLS_BASENAME%-i386.exe"
   echo ==^> Detected virtualization platform ^(x86^): VMware
 ) else (
-  set "VMWARE_TOOLS_SETUP_EXE=setup64.exe"
-  set "VMWARE_TOOLS_PROGRAM_FILES_DIR=%ProgramFiles(x86)%\VMware"
+  set "VMWARE_TOOLS_URL=%VMWARE_TOOLS_BASEURL%/x64"
+  set "VMWARE_TOOLS_FILE=%VMWARE_TOOLS_BASENAME%-x86_64.exe"
   echo ==^> Detected virtualization platform ^(x64^): VMware
 )

-:: Figure out which iso to use depending on the platform version. The w7 family
-:: only allows us up to tools version 10.2.5 unless we update to SP1.
-if %PlatformVersionMajor% LSS 6 goto vmware_old_isourl
-if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 0 if %PlatformVersionRelease% GTR 7600 goto vmware_new_isourl
-if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 0 goto vmware_old_isourl
-if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 1 if %PlatformVersionRelease% GTR 7600 goto vmware_new_isourl
-if %PlatformVersionMajor% EQU 6 if %PlatformVersionMinor% EQU 1 goto vmware_old_isourl
-goto vmware_new_isourl
-
-:: Otherwise, we need to use an older version to avoid needing to update
-:vmware_old_isourl
-set "VMWARE_TOOLS_ISO_URL=%VMWARE_TOOLS_OLD_ISOURL%"
-goto download_vmware_tools_iso
-
-:: We can use the most recent iso according to our detected platform. This
-:: should only require KB2999226 which should've been installed already.
-:vmware_new_isourl
-set "VMWARE_TOOLS_ISO_URL=%VMWARE_TOOLS_LATEST_ISOURL%"
-goto download_vmware_tools_iso
-
-:: Setup all the paths we're going to need in order to download our iso
-:download_vmware_tools_iso
-for %%i in ("%VMWARE_TOOLS_ISO_URL%") do set VMWARE_TOOLS_ISONAME=%%~nxi
-set "VMWARE_TOOLS_DIR=%TEMP%\vmware"
-set "VMWARE_TOOLS_ISO_PATH=%VMWARE_TOOLS_DIR%\%VMWARE_TOOLS_ISONAME%"
-echo ==^> Installing the VMware tools using directory %VMWARE_TOOLS_DIR%
-
-mkdir "%VMWARE_TOOLS_DIR%"
-pushd "%VMWARE_TOOLS_DIR%"
-set VMWARE_TOOLS_SETUP_PATH=
-
-:: First check to see if the iso already exists. If it does and the file is not
+set "VMWARE_TOOLS_SETUP_PATH=%VMWARE_TOOLS_DIR%\%VMWARE_TOOLS_FILE%"
+echo ==^> Using the path for the VMware tools setup at %VMWARE_TOOLS_SETUP_PATH%
+
+:: First check to see if the file already exists. If it does and the file is not
 :: zero, then we clear VMWARE_TOOLS_ISO_URL. This will then branch straight to
-:: install_vmware_tools_from_iso process. Otherwise, we need to download the iso
+:: the install_vmware_tools process. Otherwise, we need to download the file
 :: to the correct place.
 set _VMWARE_TOOLS_SIZE=0
-if defined VMWARE_TOOLS_ISO_PATH for %%i in (%VMWARE_TOOLS_ISO_PATH%) do set _VMWARE_TOOLS_SIZE=%%~zi
-if defined _VMWARE_TOOLS_SIZE if not "%_VMWARE_TOOLS_SIZE%" == "0" set VMWARE_TOOLS_ISO_URL=
-if not defined VMWARE_TOOLS_ISO_URL goto install_vmware_tools_from_iso
-
-echo ==^> Downloading the VMware tools from %VMWARE_TOOLS_ISO_UrL%
-
-call "%SystemRoot%\_download.cmd" "%VMWARE_TOOLS_ISO_URL%" "%VMWARE_TOOLS_ISO_PATH%"
+for %%i in (%VMWARE_TOOLS_SETUP_PATH%) do set "_VMWARE_TOOLS_SIZE=%%~zi"
+if defined _VMWARE_TOOLS_SIZE if not "%_VMWARE_TOOLS_SIZE%" == "0" goto install_vmware_tools
+
+:: Now we can download it. We're going to loop indefinitely here because there's
+:: absolutely no reason that downloading this file should fail unless our
+:: downloader is hosed in some way..
+:download_vmware_tools
+echo ==^> Downloading the VMware tools from %VMWARE_TOOLS_URL%/%VMWARE_TOOLS_FILE%
+
+call "%SystemRoot%\_download.cmd" "%VMWARE_TOOLS_URL%/%VMWARE_TOOLS_FILE%" "%VMWARE_TOOLS_SETUP_PATH%"
 if errorlevel 1 (
-  echo ==^> ERRROR: Unable to download file from %VMWARE_TOOLS_ISO_URL%
-  goto exit1
-)
-
-if not exist "%VMWARE_TOOLS_ISO_PATH%" (
-  echo ==^> ERROR: Unable to locate downloaded file at %VMWARE_TOOLS_ISO_PATH%
-  goto exit1
-)
-
-:: Now we need to install 7-zip in case it isn't already installed. This way we
-:: can extract the iso we just downloaded and run its setup.
-:install_vmware_tools_from_iso
-call :install_sevenzip
-if errorlevel 1 (
-  echo ==^> ERROR: Failure trying to install 7-zip archiver
-  goto exit1
-)
-
-:: Now that we have the iso, we can extract it with 7-zip and make sure its got
-:: everything that we're looking for.
-:extract_vmware_tools_from_iso
-echo ==^> Extracting the VMware Tools installer to %VMWARE_TOOLS_DIR% from %VMWARE_TOOLS_ISO_PATH%
-7z e -o"%VMWARE_TOOLS_DIR%" "%VMWARE_TOOLS_ISO_PATH%" "%VMWARE_TOOLS_SETUP_EXE%"
-@if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: 7z e -o"%VMWARE_TOOLS_DIR%" "%VMWARE_TOOLS_ISO_PATH%" "%VMWARE_TOOLS_SETUP_EXE%"
-ver>nul
-set "VMWARE_TOOLS_SETUP_PATH=%VMWARE_TOOLS_DIR%\%VMWARE_TOOLS_SETUP_EXE%"
-if not exist "%VMWARE_TOOLS_SETUP_PATH%" echo ==^> Unable to extract "%VMWARE_TOOLS_ISO_PATH%" & goto exit1
-
-:: Our iso has been validated so all we need to do is to run the correct exe
+  echo ==^> ERROR: Unable to download file from %VMWARE_TOOLS_URL%/%VMWARE_TOOLS_FILE%
+  echo ==^> WARNING: Retrying download from %VMWARE_TOOLS_URL%/%VMWARE_TOOLS_FILE%
+  goto download_vmware_tools
+)
+
+if not exist "%VMWARE_TOOLS_SETUP_PATH%" (
+  echo ==^> ERROR: Unable to locate downloaded file at %VMWARE_TOOLS_SETUP_PATH%
+  echo ==^> WARNING: Retrying download from %VMWARE_TOOLS_URL%/%VMWARE_TOOLS_FILE%
+  goto download_vmware_tools
+)
+
+set _VMWARE_TOOLS_SIZE=0
+for %%i in (%VMWARE_TOOLS_SETUP_PATH%) do set "_VMWARE_TOOLS_SIZE=%%~zi"
+if %_VMWARE_TOOLS_SIZE% EQU 0 (
+  echo ==^> ERROR: Downloaded file from %VMWARE_TOOLS_URL%/%VMWARE_TOOLS_FILE% is empty
+  echo ==^> WARNING: Retrying download from %VMWARE_TOOLS_URL%/%VMWARE_TOOLS_FILE%
+  goto download_vmware_tools
+)
+
+goto install_vmware_tools
+
+:: Our file has been downloaded so all we need to do is to run it and hope...
 :install_vmware_tools
-echo ==^> Installing VMware tools with %VMWARE_TOOLS_SETUP_PATH%
-"%VMWARE_TOOLS_SETUP_PATH%" /S /v "/qn REBOOT=R ADDLOCAL=ALL"
+echo ==^> Installing VMware tools from %VMWARE_TOOLS_SETUP_PATH%
+start "" /wait "%VMWARE_TOOLS_SETUP_PATH%" /S /v "/qn REBOOT=R ADDLOCAL=ALL"
 @if not errorlevel 3010 if errorlevel 1 echo ==^> WARNING: Error %ERRORLEVEL% was returned by: "%VMWARE_TOOLS_SETUP_PATH%" /S /v "/qn REBOOT=R ADDLOCAL=ALL"
 @if errorlevel 3010 echo ==^> Successfully installed VMware tools ^(reboot required^)
 ver>nul
-goto exit0
+goto exit

 ::::::::::::
 :virtualbox
 ::::::::::::
 if "%PROCESSOR_ARCHITECTURE%" == "x86" (
-  set VBOX_SETUP_EXE=VBoxWindowsAdditions-x86.exe
+  set "VBOX_SETUP_EXE=VBoxWindowsAdditions-x86.exe"
   echo ==^> Detected virtualization platform ^(x86^): VirtualBox
 ) else (
-  set VBOX_SETUP_EXE=VBoxWindowsAdditions-amd64.exe
+  set "VBOX_SETUP_EXE=VBoxWindowsAdditions-amd64.exe"
   echo ==^> Detected virtualization platform ^(x64^): VirtualBox
 )
-for %%i in ("%VBOX_ISO_URL%") do set VBOX_ISO=%%~nxi
+for %%i in ("%VBOX_ISO_URL%") do set "VBOX_ISO=%%~nxi"
 set "VBOX_ISO_DIR=%TEMP%\virtualbox"
 set "VBOX_ISO_PATH=%VBOX_ISO_DIR%\%VBOX_ISO%"
 set "VBOX_ISO=VBoxGuestAdditions.iso"
@@ -252,13 +252,13 @@
 set VBOX_SETUP_PATH=
 set VBOX_SETUP_DIR=

-@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined VBOX_SETUP_PATH @if exist "%%~i\%VBOX_SETUP_EXE%" (set VBOX_SETUP_PATH=%%~i\%VBOX_SETUP_EXE% & set VBOX_SETUP_DIR=%%~i)
+@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined VBOX_SETUP_PATH @if exist "%%~i\%VBOX_SETUP_EXE%" (set "VBOX_SETUP_PATH=%%~i\%VBOX_SETUP_EXE%" & set "VBOX_SETUP_DIR=%%~i")
 if defined VBOX_SETUP_PATH goto install_vbox_guest_additions

 :: if VBoxGuestAdditions.iso is zero bytes, then download it
 set _VBOX_ISO_SIZE=0
-@for %%i in (%PACKER_SEARCH_PATHS%) do @if exist "%%~i\%VBOX_ISO%" set VBOX_ISO_PATH=%%~i\%VBOX_ISO%
-if exist "%VBOX_ISO_PATH%" for %%i in (%VBOX_ISO_PATH%) do set _VBOX_ISO_SIZE=%%~zi
+@for %%i in (%PACKER_SEARCH_PATHS%) do @if exist "%%~i\%VBOX_ISO%" set "VBOX_ISO_PATH=%%~i\%VBOX_ISO%"
+if exist "%VBOX_ISO_PATH%" for %%i in (%VBOX_ISO_PATH%) do set "_VBOX_ISO_SIZE=%%~zi"
 if %_VBOX_ISO_SIZE% GTR 0 goto install_vbox_guest_additions_from_iso

 call "%SystemRoot%\_download.cmd" "%VBOX_ISO_URL%" "%VBOX_ISO_PATH%"
@@ -307,7 +307,7 @@
 pushd "%PARALLELS_DIR%"
 set PARALLELS_ISO_PATH=

-@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined PARALLELS_ISO_PATH @if exist "%%~i\%PARALLELS_ISO%" set PARALLELS_ISO_PATH=%%~i\%PARALLELS_ISO%
+@for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined PARALLELS_ISO_PATH @if exist "%%~i\%PARALLELS_ISO%" set "PARALLELS_ISO_PATH=%%~i\%PARALLELS_ISO%"
 REM parallels tools don't have a download :(
 call :install_sevenzip
 if errorlevel 1 (
@@ -341,7 +341,7 @@
 ::::::::::::
 echo ==^> Detected virtualization platform: HyperV

-for /F "usebackq tokens=3,4,5" %%i in (`REG query "hklm\software\microsoft\windows NT\CurrentVersion" /v ProductName`) do set GUEST_OS=%%i %%j %%k
+for /F "usebackq tokens=3,4,5" %%i in (`REG query "hklm\software\microsoft\windows NT\CurrentVersion" /v ProductName`) do set "GUEST_OS=%%i %%j %%k"

 set GUEST_OS

@@ -372,7 +372,7 @@
 @goto :exit

 :exit
-@set _ERRORLEVEL=%ERRORLEVEL%
+@set "_ERRORLEVEL=%ERRORLEVEL%"
 @echo ==^> Script exiting with errorlevel %_ERRORLEVEL%
 @popd
 @ping 127.0.0.1
@@ -388,7 +388,7 @@

 :pause
 @if PACKER_PAUSE leq 0 goto :eof
-@set _TEMPNAME=%TEMP%\%~nx0-%RANDOM%.tmp
+@set "_TEMPNAME=%TEMP%\%~nx0-%RANDOM%.tmp"
 @for /L %%i in (1,1,%PACKER_PAUSE%) do @call :pause1 %%i
 @del "%_TEMPNAME%"
 @goto :eof


Escape % in bld.bat

Escape % in bld.bat

--- recipes/tabula-java/bld.bat
+++ recipes/tabula-java/bld.bat
@@ -4,5 +4,5 @@

 copy "%SRC_DIR%\target\tabula-%PKG_VERSION%-jar-with-dependencies.jar" "%LIBRARY_LIB%\tabula.jar"

-echo java -Xmx500M -jar %LIBRARY_LIB%\\tabula.jar %* > %LIBRARY_BIN%\tabula.cmd
+echo java -Xmx500M -jar %LIBRARY_LIB%\tabula.jar %%* > %LIBRARY_BIN%\tabula.cmd
 echo IF %%ERRORLEVEL%% NEQ 0 EXIT /B %%ERRORLEVEL%% >> %LIBRARY_BIN%\tabula.cmd


added call syntax before update git and npm commands

--- Update_S3.bat
+++ Update_S3.bat
@@ -1,6 +1,5 @@
-git stash
-git pull origin master
-git stash apply
-
-pause
-npm update+call git stash
+call git pull origin master
+call git stash apply
+call npm update
+pause


Change gypbuild to use python at its current
locatio instead of its old location.

Review URL: http://codereview.chromium.org/360020

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@31034 0039d316-1c4b-4281-b951-d872f2087c98

--- o3d/gypbuild.bat
+++ o3d/gypbuild.bat
@@ -28,6 +28,6 @@
 REM (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 REM OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-"%~dp0\third_party\python_24\python" -O -OO "%~dp0\gypbuild.py" %*
+"%~dp0\..\third_party\python_24\python" -O -OO "%~dp0\gypbuild.py" %*


BUILD SCRIPT ONLY: Detect the java version on windows

--- scripts/hudson/narayana.bat
+++ scripts/hudson/narayana.bat
@@ -4,6 +4,11 @@
 @echo off

 call:comment_on_pull "Started testing this pull request on Windows: %BUILD_URL%"
+
+java -version 2>tmp.txt
+findstr version tmp.txt > version.txt
+FOR /F delims^=^"^ tokens^=2 %%i in (version.txt) DO @set JAVA_VERSION=%%i
+if %JAVA_VERSION% == 9 set MAVEN_OPTS="--add-modules=java.corba,java.xml.bind,java.xml.ws"

 IF NOT [%NOTMAIN%] == [] (call:build_spi_pr
 call build.bat clean install %* || (call:comment_on_pull "Tests failed on Windows - Narayana Failed %BUILD_URL%" & exit -1)


Filter out unit tests from code coverage report

--- XclassTestsCoverage/XclassCoverageTest.cmd
+++ XclassTestsCoverage/XclassCoverageTest.cmd
@@ -33,6 +33,6 @@
 :: Perform code coverage test
 %OpenCoverConsole% "-register:user" "-target:%NUnitConsole%" "-targetdir:..\XclassTests\bin\Release" "-targetargs:XclassTests.dll /noshadow" "-output:.\TestsCodeCoverageResults.xml"
 :: Build reports
-%ReportGenerator% "-reports:.\TestsCodeCoverageResults.xml" "-targetdir:." "-reporttypes:html"
+%ReportGenerator% "-reports:.\TestsCodeCoverageResults.xml" "-filters:-XclassTests" "-targetdir:." "-reporttypes:html"
 :: Open report
 @start %cd%\index.htm


commit on 07/06/2018 at 17:24:50

commit on 07/06/2018 at 17:24:50

--- ansys-APDL/transverseCrack.cmd
+++ ansys-APDL/transverseCrack.cmd
@@ -269,8 +269,8 @@
 *GET,NNodes,NODE,0,COUNT                  !Get the number of nodes in the selected set
 *DIM, resArray, ARRAY, NNodes, 11
 *VGET, resArray(1,1), NODE, , NLIST
-*VGET, resArray(1,2), NODE, 1, LOC, Y
-*VGET, resArray(1,3), NODE, 1, LOC, X
+*VGET, resArray(1,2), NODE, 1, LOC, X
+*VGET, resArray(1,3), NODE, 1, LOC, Y
 *VGET, resArray(1,4), NODE, 1, U, X
 *VGET, resArray(1,5), NODE, 1, U, Y
 *VGET, resArray(1,6), NODE, 1, S, X


Add Craft.net to bootstrap. Let's see how my experiment will turn out ;-)

--- bootstrap.bat
+++ bootstrap.bat
@@ -28,6 +28,7 @@
 ::call init-svn https://yaml.svn.codeplex.com/svn/Main/Abstract/ dependencies/yaml/Abstract
 call init-git https://github.com/chkn/AluminumLua.git dependencies/aluminumlua
 call init-git https://github.com/apache/log4net.git dependencies/log4net
+call init-git https://github.com/SirCmpwn/Craft.Net.git dependencies/craft.net
 call init-nuget

 xecho /a:%col_ok% Finished.


Batch script to convert XDMF/H5 to VTK using VisIt

error: pathspec 'tools/exportDB.bat' did not match any file(s) known to git

--- tools/exportDB.bat
+++ tools/exportDB.bat
@@ -0,0 +1,24 @@
+@echo off
+
+set VERSION="20160106_01"
+set PATH_TO_VISIT="C:\Program Files\LLNL\VisIt 2.10.0\visit.exe"
+
+set TMP_STORE_VAL=%VISIT_EXPORT_MODELNAME%
+
+if not exist exportDB.py (
+  echo exportDB.py not found!
+  echo Copy exportDB.py to the same directory with %0 and re-run
+  set /p DUMMY="Press enter to quit"
+  exit
+)
+
+set VISIT_EXPORT_INDIR=%cd%
+if exist "%1" set VISIT_EXPORT_MODELNAME="%1"
+:WHILE_MODEL
+if not exist "%VISIT_EXPORT_MODELNAME%" (
+  set /p VISIT_EXPORT_MODELNAME="Give model name: "
+  goto WHILE_MODEL
+)
+echo Running convertsion ...
+%PATH_TO_VISIT% -cli -nowin -s ./exportDB.py
+set VISIT_EXPORT_MODELNAME=%TMP_STORE_VAL%


Add one more test grammar to generation.

--- src/GLL.AbstractParser.SimpleTest/gen.cmd
+++ src/GLL.AbstractParser.SimpleTest/gen.cmd
@@ -79,4 +79,5 @@

 ..\..\Bin\Release\v40\YC.YaccConstructor.exe -i ..\YC.GrammarZOO\Bio\tRNA.yrd -c ExpandRepeat -c ExpandEbnf -c ExpandMeta -g "GLLGenerator -pos int -token int -module GLL.tRNA -o tRNA.yrd.fs -abstract true" >> log.txt
 ..\..\Bin\Release\v40\YC.YaccConstructor.exe -i ..\YC.GrammarZOO\Bio\tests\shift_problem.yrd  -c ExpandEbnf -c ExpandMeta -g "GLLGenerator -pos int -token int -module GLL.shiftProblem -o shift_problem.yrd.fs -abstract true" >> log.txt
-..\..\Bin\Release\v40\YC.YaccConstructor.exe -i ..\YC.GrammarZOO\Bio\tests\multiple_edges_problem.yrd  -c ExpandEbnf -c ExpandMeta -g "GLLGenerator -pos int -token int -module GLL.multipleEdgesProblem -o multiple_edges_problem.yrd.fs -abstract true" >> log.txt+..\..\Bin\Release\v40\YC.YaccConstructor.exe -i ..\YC.GrammarZOO\Bio\tests\multiple_edges_problem.yrd  -c ExpandEbnf -c ExpandMeta -g "GLLGenerator -pos int -token int -module GLL.multipleEdgesProblem -o multiple_edges_problem.yrd.fs -abstract true" >> log.txt
+..\..\Bin\Release\v40\YC.YaccConstructor.exe -i ..\YC.GrammarZOO\Bio\tests\very_very_small.yrd  -c ExpandEbnf -c ExpandMeta -g "GLLGenerator -pos int -token int -module GLL.VeryVerySmall -o very_very_small.yrd.fs -abstract true" >> log.txt


Added Windows run script for JMH tests

Added Windows run script for JMH tests

error: pathspec 'jmh/run.bat' did not match any file(s) known to git

--- jmh/run.bat
+++ jmh/run.bat
@@ -0,0 +1,10 @@
+@echo off
+
+echo Building RoaringBitmap.jar
+call mvn -f ../pom.xml clean install -DskipTests -Dgpg.skip=true
+
+echo Building benchmarks.jar
+call mvn -f pom.xml clean package
+
+echo Running benchmarks
+java -jar target/benchmarks.jar -wi 5 -i 5 -f 1


Add EOF

Add EOF

--- MaximalizeConsole.bat
+++ MaximalizeConsole.bat
@@ -5,3 +5,4 @@

 @echo off
 start /MAX C:\Users\Dariusz\Desktop\ConsoleApplication1.exe
+GOTO:EOF


Create PSX_EXPORT_OVERLAYS.bat

Create PSX_EXPORT_OVERLAYS.bat

error: pathspec 'PSX_EXPORT_OVERLAYS.bat' did not match any file(s) known to git

--- PSX_EXPORT_OVERLAYS.bat
+++ PSX_EXPORT_OVERLAYS.bat
@@ -0,0 +1,12 @@
+rem slink /psx /c /p /rmips=SPEC_PSX/PSXMAIN.REL @SPEC_PSX/PSXMAIN.LNK,SPEC_PSX/PSXMAIN.BIN
+rem psylink /c /p /q /rmips=SPEC_PSX/PSXMAIN.REL @SPEC_PSX/PSXMAIN.LNK,SPEC_PSX/PSXMAIN.BIN
+
+slink /psx /c /p /rmips=SPEC_PSX/SETUP.REL @SPEC_PSX/SETUP.LNK,SPEC_PSX/SETUP.BIN
+rem psylink /c /p /q /rmips=SPEC_PSX/SETUP.REL @SPEC_PSX/SETUP.LNK,SPEC_PSX/SETUP.BIN
+DEL2FAB /c+ SPEC_PSX/SETUP
+
+rem slink /psx /c /p /rmips=SPEC_PSX/TITSEQ.REL @SPEC_PSX/TITSEQ.LNK,SPEC_PSX/TITSEQ.BIN
+rem psylink /c /p /q /rmips=SPEC_PSX/TITSEQ.REL @SPEC_PSX/TITSEQ.LNK,SPEC_PSX/TITSEQ.BIN
+
+rem slink /psx /c /p /rmips=GAME/LION.REL @GAME/LION.LNK,GAME/LION.BIN
+rem psylink /c /p /q /rmips=GAME/LION.REL @GAME/LION.LNK,GAME/LION.BIN


Small fix to build.bat.

Small fix to build.bat.

--- SimpleServiceLocator/build.bat
+++ SimpleServiceLocator/build.bat
@@ -371,8 +371,8 @@
 mkdir Releases\temp
 xcopy %nugetTemplatePath%\Silverlight\SimpleInjector.Extensions.Silverlight Releases\temp /E /H
 attrib -r "%CD%\Releases\temp\*.*" /s /d
-copy bin\Silverlight\SimpleInjector.Extensions.dll Releases\temp\lib\sl30\SimpleInjector.Extensions.dll
-copy bin\Silverlight\SimpleInjector.Extensions.xml Releases\temp\lib\sl30\SimpleInjector.Extensions.xml
+REM copy bin\Silverlight\SimpleInjector.Extensions.dll Releases\temp\lib\sl30\SimpleInjector.Extensions.dll
+REM copy bin\Silverlight\SimpleInjector.Extensions.xml Releases\temp\lib\sl30\SimpleInjector.Extensions.xml
 %replace% /source:Releases\temp\SimpleInjector.Extensions.Silverlight.nuspec {version} %named_version_Extensions%
 %replace% /source:Releases\temp\SimpleInjector.Extensions.Silverlight.nuspec {versionCore} %named_version_Core%
 %replace% /source:Releases\temp\package\services\metadata\core-properties\7ed90488e5714295854ab251e2959afe.psmdcp {version} %named_version_Extensions%


new version from upstream original https://community.esri.com/docs/DOC-8930-arcgis-pro-silent-install-script

--- SysAdmin/install_arcgispro.bat
+++ SysAdmin/install_arcgispro.bat
@@ -1,4 +1,3 @@
-REM upstream source: https://community.esri.com/docs/DOC-8930-arcgis-pro-silent-install-script
 :: install_arcgispro.bat
 :: Silent install of ArcGIS Pro
 ::
@@ -22,11 +21,6 @@
 ::          ArcGISProHelp.cab
 ::          ArcGISProHelp.msi
 ::
-:: References:
-:: * ArcGIS 10.4 / Pro 1.2 Enterprise Deployment
-::    http://support.esri.com/white-paper/3522
-:: * ArcGIS Pro installation guide:
-::   .\Esri\ArcGISPro\Documentation\install.htm
 ::
 :: Author: Curtis Price, cprice@usgs.gov
 ::
@@ -35,6 +29,7 @@
 :: 08/19/2015 Added .NET 4.5 check
 :: 11/02/2016 Update for Pro 1.3 / 1.3.1
 :: 06/07/2017 Setup to apply any .msp files in Pro .msi folder
+:: 03/18/2018 Added CHECKFORUPDATESATSTARTUP to install command
 ::----------------------------------------------------------------
 :: This software is provisional and subject to revision; it has
 :: not been thoroughly reviewed or received USGS final approval.
@@ -44,11 +39,16 @@
 :: involves substantial monetary or operational consequences.
 @echo off

+:: keep variables local to this script
+setlocal

 :: %~d0%~p0 is folder where this script resides
 set SRC=%~d0%~p0
 set LOGDIR=%TEMP%
-set INSTALLDIR=C:\ArcGIS\Pro
+set INSTALLDIR=C:\Program Files\ArcGIS\Pro
+:: set to 1 to suppress Pro prompting software updates
+:: (useful for managed deployments)
+set CHECKUPDATES=0

 :: ====================================================================
 ::                PLEASE DO NOT EDIT BELOW THIS LINE
@@ -56,7 +56,6 @@

 :: Check for .NET 4.6.1 x64
 set x64key=HKLM\SOFTWARE\Microsoft\.NETFramework
-if not defined ProgramFiles(x86) goto win32
 :: 4.6.1 x64
 %WINDIR%\system32\reg.exe query %x64key%  /f ".NETFramework,Version=v4.6.1" /k /s >NUL ^
   || ( echo. & echo ** Microsoft .NET Framework 4.6.1 ^(x64^) not installed! ** & goto dotnet_fail)
@@ -94,18 +93,17 @@
 @echo on

 :: Install ArcGIS Pro for all users of this computer
-msiexec /i "%SRC%\Esri\ArcGISPro\ArcGISPro.msi"  ALLUSERS=1 INSTALLDIR=%INSTALLDIR% ^
-  /l+ie "%LOG_PATH%_Pro.txt" /l+ie "%LOG_PATH%.txt"  %SILENT%
+msiexec /i "%SRC%\Esri\ArcGISPro\ArcGISPro.msi" ^
+ ALLUSERS=1 INSTALLDIR="%INSTALLDIR%" ^
+ CHECKFORUPDATESATSTARTUP=%CHECKUPDATES% ^
+ /l+ie "%LOG_PATH%_Pro.txt" /l+ie "%LOG_PATH%.txt"  %SILENT%

 :: patch updates (.msp files (if any) should be placed in folder with ArcGIS Pro msi
 pushd "%SRC%\Esri\ArcGISPro"
 for %%p in (*.msp) do %MSIEXEC% /p %%p REINSTALLMODE=omus %SL%
 popd

-:: ArcGIS Pro Help (optional local install [web help is also available])
+:: ArcGIS Pro Help (optional) (Delete or comment out to only use web help)
 msiexec /i "%SRC%\Esri\ArcGISProHelp\ArcGISProHelp.msi" ^
   /l+ie "%LOG_PATH%_Help.txt" %SILENT%
-
-:: Optional: Set registry key to block ArcGIS Pro update prompts
-%WINDIR%\system32\reg.exe add HKLM\SOFTWARE\ESRI\ArcGISPro\Settings ^
-  /v CheckForUpdatesAtStartup /t REG_DWORD /d 0 /f
+


prefs.js cleaner for Windows v1.0

prefs.js cleaner for Windows v1.0

thanks @claustromaniac!

error: pathspec 'prefsCleaner.bat' did not match any file(s) known to git

--- prefsCleaner.bat
+++ prefsCleaner.bat
@@ -0,0 +1,115 @@
+@ECHO OFF
+TITLE prefs.js cleaner
+
+REM ### prefs.js cleaner for Windows
+REM ## author: @claustromaniac
+REM ## version: 1.0
+
+SETLOCAL EnableDelayedExpansion
+:begin
+ECHO:
+ECHO:
+ECHO                 ########################################
+ECHO                 ####  prefs.js cleaner for Windows  ####
+ECHO                 ####    author: @claustromaniac     ####
+ECHO                 ####          version: 1.0          ####
+ECHO                 ########################################
+ECHO:
+CALL :message "This script should be run from your Firefox profile directory."
+ECHO   It will remove any entries from prefs.js that also exist in user.js.
+CALL :message "This will allow inactive preferences to be reset to their default values."
+ECHO   This Firefox profile shouldn't be in use during the process.
+CALL :message ""
+CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]"
+CLS
+IF ERRORLEVEL 3 ( EXIT /B )
+IF ERRORLEVEL 2 ( GOTO :showhelp )
+IF NOT EXIST "user.js" ( CALL :abort "user.js not found in the current directory." 30 )
+IF NOT EXIST "prefs.js" ( CALL :abort "prefs.js not found in the current directory." 30 )
+CALL :FFcheck
+CALL :message "Backing up prefs.js..."
+COPY /B /V /Y prefs.js "prefs-backup-!date:/=-!_!time::=.!.js"
+CALL :message "Cleaning prefs.js...
+CALL :cleanup
+CLS
+CALL :message "All done."
+TIMEOUT 5 >nul
+EXIT /B
+
+REM ########## Abort Function ###########
+:abort
+CALL :message %1
+TIMEOUT %~2 >nul
+EXIT
+REM ########## Message Function #########
+:message
+ECHO:
+ECHO:  %~1
+ECHO:
+GOTO :EOF
+REM ####### Firefox Check Function ######
+:FFcheck
+TASKLIST /FI "IMAGENAME eq firefox.exe" 2>NUL | FIND /I /N "firefox.exe">NUL
+IF NOT ERRORLEVEL 1 (
+	CLS
+	CALL :message "Firefox is still running."
+	ECHO   If you're not currently using this profile you can continue, otherwise
+	ECHO:
+	ECHO   close Firefox first^^!
+	ECHO:
+	ECHO:
+	PAUSE
+	CLS
+	CALL :message "Resuming..."
+	TIMEOUT 5 /nobreak >nul
+)
+GOTO :EOF
+REM ######### Cleanup Function ##########
+:cleanup
+SETLOCAL DisableDelayedExpansion
+(
+	FOR /F "tokens=1,* delims=:" %%G IN ( 'FINDSTR /N "^" prefs.js' ) DO (
+		SET "_line=%%H"
+		SETLOCAL EnableDelayedExpansion
+		SET "_pref=!_line: =!"
+		IF /I "user_pref"=="!_pref:~0,9!" (
+			FOR /F "delims=," %%X IN ("!_pref!") DO ( SET "_pref=%%X" )
+			SET _pref=!_pref:"=""!
+			FIND /I "!_pref!" user.js >nul
+			IF ERRORLEVEL 1 (
+				ECHO:!_line!
+			)
+		) ELSE (
+			ECHO:!_line!
+		)
+		ENDLOCAL
+	)
+)>tempcleanedprefs
+ENDLOCAL
+MOVE /Y tempcleanedprefs prefs.js
+GOTO :EOF
+REM ############### Help ##################
+:showhelp
+MODE 80,34
+CLS
+CALL :message "This script creates a backup of your prefs.js file before doing anything."
+ECHO   It should be safe, but you can follow these steps if something goes wrong:
+ECHO:
+CALL :message "  1. Make sure Firefox is closed."
+ECHO     2. Delete prefs.js in your profile folder.
+CALL :message "  3. Delete Invalidprefs.js if you have one in the same folder."
+ECHO     4. Rename or copy your latest backup to prefs.js.
+CALL :message "  5. Run Firefox and see if you notice anything wrong with it."
+ECHO     6. If you do notice something wrong, especially with your extensions,
+CALL :message "     and/or with the UI, go to about:support, and restart Firefox with"
+ECHO        add-ons disabled. Then, restart it again normally, and see if the
+CALL :message "     problems were solved."
+ECHO:
+CALL :message "If you are able to identify the cause of your issues, please bring it up"
+ECHO   on ghacks-user.js GitHub repository.
+ECHO:
+ECHO:
+PAUSE
+CLS
+GOTO :begin
+REM #####################################


Delete unused file

Delete unused file

--- _software/toucher.bat
+++ _software/toucher.bat
@@ -1,44 +0,0 @@
-@echo off
-touch 7zip.md
-touch autohotkey.md
-touch calibre.md
-touch chocolateyGUI.md
-touch clink.md
-touch cmder.md
-touch dependencywalker.md
-touch ditto.md
-touch dropbox.md
-touch fiddler.md
-touch filezilla.md
-touch firefox.md
-touch genymotion.md
-touch gnuWin.md
-touch googleChrome.md
-touch greenshot.md
-touch keepass.md
-touch kickAssVim.md
-touch markdownpad2.md
-touch microsoftSecurityEssentials.md
-touch mongodb.md
-touch mpc_hc.md
-touch nunitTestAdapter.md
-touch paint.net.md
-touch picasa.md
-touch powerShell.md
-touch productifyPowerTools2013.md
-touch putty.md
-touch scriptcs.md
-touch slowCheetahXml.md
-touch sourceTree.md
-touch spotify.md
-touch sysinternals.md
-touch trillian.md
-touch truecrypt.md
-touch vSCommandsForVisualStudio.md
-touch vlc.md
-touch vsspellchecker.md
-touch which.md
-touch winDirStat.md
-touch windowsLiveWriter.md
-touch winmerge.md
-


xunit console x86

xunit console x86

--- .scripts/TestCoverage.bat
+++ .scripts/TestCoverage.bat
@@ -1,7 +1,7 @@
 @echo off

 IF DEFINED APPVEYOR (
-    C:\ProgramData\chocolatey\lib\opencover.portable\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.exe" -targetargs:"src\Playground.Calculator.Test\bin\Debug\netcoreapp2.0\Playground.Calculator.Test.dll -noshadow -appveyor -xml .\xunit-results.xml" -threshold:1 -oldStyle -returntargetcode -filter:"+[Playground*]* -[Playground*.Test]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -mergebyhash -mergeoutput -output:.\coverage-dotnet.xml
+    C:\ProgramData\chocolatey\lib\opencover.portable\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"src\Playground.Calculator.Test\bin\Debug\netcoreapp2.0\Playground.Calculator.Test.dll -noshadow -appveyor -xml .\xunit-results.xml" -threshold:1 -oldStyle -returntargetcode -filter:"+[Playground*]* -[Playground*.Test]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -excludebyfile:*\*Designer.cs -hideskipped:All -mergebyhash -mergeoutput -output:.\coverage-dotnet.xml
 ) ELSE (
 	echo No coverage without appveyor.
 )


Build script improvements

Build script improvements

--- NodeBuild.bat
+++ NodeBuild.bat
@@ -30,4 +30,45 @@
 xcopy OpenRoads\Node\node_modules\node-core-audio Node\Node\node_modules\node-core-audio
 xcopy OpenRoads\Node\node_modules\node-core-audio\gyp Node\Node\node_modules\node-core-audio\gyp /E
 xcopy OpenRoads\Node\node_modules\node-core-audio\build Node\Node\node_modules\node-core-audio\build /E
-xcopy OpenRoads\Node\node_modules\node-core-audio\node_modules\fft Node\Node\node_modules\node-core-audio\node_modules\fft /E+xcopy OpenRoads\Node\node_modules\node-core-audio\node_modules\fft Node\Node\node_modules\node-core-audio\node_modules\fft /E
+
+del Node\Data\settings.json
+del Node\Data.XMas\settings.json
+
+del Node\Node\node_modules\node-core-audio\build\* /Q
+del Node\Node\node_modules\node-core-audio\build\Release\*.pdb
+del Node\Node\node_modules\node-core-audio\build\Release\*.exp
+del Node\Node\node_modules\node-core-audio\build\Release\*.lib
+RMDIR Node\Node\node_modules\node-core-audio\build\Release\obj /S /Q
+RMDIR Node\Node\node_modules\node-core-audio\gyp /S /Q
+
+del Node\Node\node_modules\node-glfw\build\* /Q
+del Node\Node\node_modules\node-glfw\build\Release\*.pdb
+del Node\Node\node_modules\node-glfw\build\Release\*.exp
+del Node\Node\node_modules\node-glfw\build\Release\*.lib
+RMDIR Node\Node\node_modules\node-glfw\build\Release\obj /S /Q
+RMDIR Node\Node\node_modules\node-glfw\src /S /Q
+RMDIR Node\Node\node_modules\node-glfw\test /S /Q
+RMDIR Node\Node\node_modules\node-glfw\node_modules /S /Q
+
+
+del Node\Node\node_modules\node-webgl\build\* /Q
+del Node\Node\node_modules\node-webgl\build\Release\*.pdb
+del Node\Node\node_modules\node-webgl\build\Release\*.exp
+del Node\Node\node_modules\node-webgl\build\Release\*.lib
+RMDIR Node\Node\node_modules\node-webgl\build\Release\obj /S /Q
+
+RMDIR Node\Node\node_modules\node-webgl\doc /S /Q
+RMDIR Node\Node\node_modules\node-webgl\examples /S /Q
+RMDIR Node\Node\node_modules\node-webgl\src /S /Q
+RMDIR Node\Node\node_modules\node-webgl\test /S /Q
+RMDIR Node\Node\node_modules\node-webgl\tools /S /Q
+
+
+del Node\Node\node_modules\node-webgl\node_modules\node-glfw\build\* /Q
+del Node\Node\node_modules\node-webgl\node_modules\node-glfw\build\Release\*.pdb
+del Node\Node\node_modules\node-webgl\node_modules\node-glfw\build\Release\*.exp
+del Node\Node\node_modules\node-webgl\node_modules\node-glfw\build\Release\*.lib
+RMDIR Node\Node\node_modules\node-webgl\node_modules\node-glfw\build\Release\obj /S /Q
+RMDIR Node\Node\node_modules\node-webgl\node_modules\node-glfw\src /S /Q
+RMDIR Node\Node\node_modules\node-webgl\node_modules\node-glfw\test /S /Q


the game

the game

error: pathspec 'Principal.bat' did not match any file(s) known to git

--- Principal.bat
+++ Principal.bat
@@ -0,0 +1,2 @@
+@echo off
+java -Djava.ext.dirs=lib -Djava.library.path=lib Principal


activate sourcelink when building packages

--- src/csharp/build_packages_dotnetcli.bat
+++ src/csharp/build_packages_dotnetcli.bat
@@ -32,13 +32,13 @@
 @rem To be able to build, we also need to put grpc_csharp_ext to its normal location
 xcopy /Y /I nativelibs\csharp_ext_windows_x64\grpc_csharp_ext.dll ..\..\cmake\build\x64\Release\

-%DOTNET% pack --configuration Release Grpc.Core.Api --output ..\..\..\artifacts || goto :error
-%DOTNET% pack --configuration Release Grpc.Core --output ..\..\..\artifacts || goto :error
-%DOTNET% pack --configuration Release Grpc.Core.Testing --output ..\..\..\artifacts || goto :error
-%DOTNET% pack --configuration Release Grpc.Auth --output ..\..\..\artifacts || goto :error
-%DOTNET% pack --configuration Release Grpc.HealthCheck --output ..\..\..\artifacts || goto :error
-%DOTNET% pack --configuration Release Grpc.Reflection --output ..\..\..\artifacts || goto :error
-%DOTNET% pack --configuration Release Grpc.Tools --output ..\..\..\artifacts || goto :error
+%DOTNET% pack --configuration Release Grpc.Core.Api /p:SourceLinkCreate=true --output ..\..\..\artifacts || goto :error
+%DOTNET% pack --configuration Release Grpc.Core /p:SourceLinkCreate=true --output ..\..\..\artifacts || goto :error
+%DOTNET% pack --configuration Release Grpc.Core.Testing /p:SourceLinkCreate=true --output ..\..\..\artifacts || goto :error
+%DOTNET% pack --configuration Release Grpc.Auth /p:SourceLinkCreate=true --output ..\..\..\artifacts || goto :error
+%DOTNET% pack --configuration Release Grpc.HealthCheck /p:SourceLinkCreate=true --output ..\..\..\artifacts || goto :error
+%DOTNET% pack --configuration Release Grpc.Reflection /p:SourceLinkCreate=true --output ..\..\..\artifacts || goto :error
+%DOTNET% pack --configuration Release Grpc.Tools /p:SourceLinkCreate=true --output ..\..\..\artifacts || goto :error
 @rem build auxiliary packages
 %DOTNET% pack --configuration Release Grpc --output ..\..\..\artifacts || goto :error
 %DOTNET% pack --configuration Release Grpc.Core.NativeDebug --output ..\..\..\artifacts || goto :error