12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- @ECHO OFF
- set ICCLIB=icc\icclib
- set GSK=gsk\server
- REM Check whether the host operating system is 32- or 64-bit
- IF %PROCESSOR_ARCHITECTURE%==AMD64 GOTO do64bit
- IF %PROCESSOR_ARCHITEW6432%==AMD64 GOTO do64bit
- :do32bit
- SET APPNAME=%1
- if "x%1" == "x" GOTO ErrNoAppName
- REM Make sure APPNAME supplied does not have any spaces
- echo %APPNAME%| find /V " " > NUL:
- IF ERRORLEVEL 1 GOTO ErrSpaces
- FOR /F usebackq %%A IN (`dir /b gsk*.exe`) DO %%A temp /D /Q
- pushd temp
- setup %APPNAME% -z -SMS -s -f1"%cd%\setup.iss" -f2"%cd%\gskit.log" > NUL:
- popd
- rd /s /q temp
- GOTO END
- :do64bit
- FOR /F usebackq %%A IN (`dir /b iss*.msi`) DO msiexec /qn /i %%A
- FOR /F usebackq %%A IN (`dir /b gsk*.msi`) DO msiexec /qn /i %%A
- GOTO END
- :ErrNoAppName
- echo Enter the command in the following format: installgskit APPNAME
- echo (use a one-word application identifier in the place of "APPNAME")
- echo.
- GOTO END
- :ErrSpaces
- echo The supplied application identifier must not contain spaces.
- echo.
- :END
|