LaunchOffice cleanup
This commit is contained in:
parent
88bb009cf2
commit
b60244a2f9
1 changed files with 10 additions and 9 deletions
|
|
@ -175,26 +175,27 @@ goto Exit
|
||||||
|
|
||||||
:LaunchOfficeSetup
|
:LaunchOfficeSetup
|
||||||
rem Prep
|
rem Prep
|
||||||
|
echo Copying setup file(s) for %L_ITEM%...
|
||||||
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=\\%OFFICE_SERVER%\Office\!product!"
|
set "source=\\%OFFICE_SERVER%\Office\%product%"
|
||||||
set "dest=%client_dir%\Office"
|
set "dest=%client_dir%\Office"
|
||||||
|
|
||||||
rem Verify
|
rem Verify
|
||||||
if not exist "!source!" (goto ErrorOfficeSourceNotFound)
|
if not exist "%source%" (goto ErrorOfficeSourceNotFound)
|
||||||
|
|
||||||
rem Copy
|
rem Copy
|
||||||
start "" /wait "%FASTCOPY%" !fastcopy_args! "!source!" /to="!dest!\"
|
start "" /wait "%FASTCOPY%" %fastcopy_args% "%source%" /to="%dest%\"
|
||||||
|
|
||||||
rem Run
|
rem Run
|
||||||
if exist "!dest!\!product_name!\setup.exe" (
|
if exist "%dest%\%product_name%\setup.exe" (
|
||||||
start "" "!dest!\!product_name!\setup.exe" || goto ErrorUnknown
|
start "" "%dest%\%product_name%\setup.exe" || goto ErrorUnknown
|
||||||
) else if "!product_name:~-3,3!" == "exe" (
|
) else if "%product_name:~-3,3%" == "exe" (
|
||||||
start "" "!dest!\!product_name!" || goto ErrorUnknown
|
start "" "%dest%\%product_name%" || goto ErrorUnknown
|
||||||
) else if "!product_name:~-3,3!" == "msi" (
|
) else if "%product_name:~-3,3%" == "msi" (
|
||||||
start "" "!dest!\!product_name!" || goto ErrorUnknown
|
start "" "%dest%\%product_name%" || goto ErrorUnknown
|
||||||
) else (
|
) else (
|
||||||
rem Office source not supported by this script
|
rem Office source not supported by this script
|
||||||
goto ErrorOfficeUnsupported
|
goto ErrorOfficeUnsupported
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue