installgskit.bat 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @ECHO OFF
  2. set ICCLIB=icc\icclib
  3. set GSK=gsk\server
  4. REM Check whether the host operating system is 32- or 64-bit
  5. IF %PROCESSOR_ARCHITECTURE%==AMD64 GOTO do64bit
  6. IF %PROCESSOR_ARCHITEW6432%==AMD64 GOTO do64bit
  7. :do32bit
  8. SET APPNAME=%1
  9. if "x%1" == "x" GOTO ErrNoAppName
  10. REM Make sure APPNAME supplied does not have any spaces
  11. echo %APPNAME%| find /V " " > NUL:
  12. IF ERRORLEVEL 1 GOTO ErrSpaces
  13. FOR /F usebackq %%A IN (`dir /b gsk*.exe`) DO %%A temp /D /Q
  14. pushd temp
  15. setup %APPNAME% -z -SMS -s -f1"%cd%\setup.iss" -f2"%cd%\gskit.log" > NUL:
  16. popd
  17. rd /s /q temp
  18. GOTO END
  19. :do64bit
  20. FOR /F usebackq %%A IN (`dir /b iss*.msi`) DO msiexec /qn /i %%A
  21. FOR /F usebackq %%A IN (`dir /b gsk*.msi`) DO msiexec /qn /i %%A
  22. GOTO END
  23. :ErrNoAppName
  24. echo Enter the command in the following format: installgskit APPNAME
  25. echo (use a one-word application identifier in the place of "APPNAME")
  26. echo.
  27. GOTO END
  28. :ErrSpaces
  29. echo The supplied application identifier must not contain spaces.
  30. echo.
  31. :END