QuickBooks split

This commit is contained in:
Alan Mason 2017-11-22 15:01:15 -08:00
parent b60244a2f9
commit dbcaa54f5f

View file

@ -328,25 +328,26 @@ if defined L_NCMD (
goto Exit goto Exit
:LaunchQuickBooksSetup :LaunchQuickBooksSetup
rem set args and copy setup files to system rem Prep
rem NOTE: init_client_dir.cmd sets %client_dir% and creates %client_dir%\QuickBooks folder
call "%bin%\Scripts\init_client_dir.cmd" /QuickBooks call "%bin%\Scripts\init_client_dir.cmd" /QuickBooks
echo Copying setup file(s) for %L_ITEM%...
rem copy setup files from QUICKBOOKS_SERVER_IP
set "fastcopy_args=/cmd=diff /no_ui /auto_close" set "fastcopy_args=/cmd=diff /no_ui /auto_close"
set "product=%L_PATH%\%L_ITEM%" set "product=%L_PATH%\%L_ITEM%"
set "product_name=%L_ITEM%" set "product_name=%L_ITEM%"
call :GetBasename product_name || goto ErrorBasename call :GetBasename product_name || goto ErrorBasename
set "source=\\%QUICKBOOKS_SERVER_IP%\QuickBooks\!product!" set "source=\\%QUICKBOOKS_SERVER_IP%\QuickBooks\%product%"
set "dest=%client_dir%\QuickBooks" set "dest=%client_dir%\QuickBooks"
rem Verify source
if not exist "!source!" (goto ErrorQuickBooksSourceNotFound) rem Verify
rem Copy setup file(s) to system if not exist "%source%" (goto ErrorQuickBooksSourceNotFound)
start "" /wait "%FASTCOPY%" !fastcopy_args! "!source!" /to="!dest!\"
rem Run setup rem Copy
if exist "!dest!\!product_name!\Setup.exe" ( echo Copying setup file(s) for %L_ITEM%...
pushd "!dest!\!product_name!" start "" /wait "%FASTCOPY%" %fastcopy_args% "%source%" /to="%dest%\"
start "" "!dest!\!product_name!\Setup.exe" || goto ErrorUnknown
rem Run
if exist "%dest%\%product_name%\Setup.exe" (
pushd "%dest%\%product_name%"
start "" "%dest%\%product_name%\Setup.exe" || goto ErrorUnknown
popd popd
) else ( ) else (
rem QuickBooks source not supported by this script rem QuickBooks source not supported by this script