Skip to content

Commit

Permalink
Update for v397.93.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed May 25, 2018
1 parent 2cabf29 commit 23fa8ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ package and creates a new archive.

## Drivers tested:

v388 - v391
* v397.93: use v0.2
* v388 - v391: use v0.1

## Requirements:

Expand Down
18 changes: 17 additions & 1 deletion slim-nvidia-drivers.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set "ARG1=%~1"
set "FULL_PATH=%ARG1%"
set "FILENAME=%~n1"
set "WORK_FOLDER=%FILENAME%"
set "SCRIPT_VERSION=0.1"
set "SCRIPT_VERSION=0.2"

title %BATCH_FILENAME% %FILENAME%

Expand Down Expand Up @@ -64,12 +64,16 @@ pushd "%WORK_FOLDER%"
rem Minimal
call :copy "minimal"
if ERRORLEVEL 1 goto exit
call :modify_setup_cfg
if ERRORLEVEL 1 goto exit
call :create_archive "minimal"
if ERRORLEVEL 1 goto exit

rem Slim
call :copy "slim"
if ERRORLEVEL 1 goto exit
call :modify_setup_cfg
if ERRORLEVEL 1 goto exit
call :create_archive "slim"
if ERRORLEVEL 1 goto exit

Expand Down Expand Up @@ -172,6 +176,18 @@ for %%G in (%TEMP_FILES_TO_KEEP%) do (
exit /b 0


:modify_setup_cfg
rem Remove the files required after 397.93, but are not needed
type "%TEMP_DIR%\setup.cfg" | findstr /v "EulaHtmlFile FunctionalConsentFile PrivacyPolicyFile">"%TEMP_DIR%\setup2.cfg"
if ERRORLEVEL 1 exit /b %ERRORLEVEL%

rem Overwrite the origin setup.cfg file
move /y "%TEMP_DIR%\setup2.cfg" "%TEMP_DIR%\setup.cfg"
if ERRORLEVEL 1 exit /b %ERRORLEVEL%

exit /b 0


:create_archive
rem Rename the temporary directory
set "TEMP_ARCHIVE_DIR=%FILENAME%_%TYPE%"
Expand Down

0 comments on commit 23fa8ef

Please sign in to comment.