REG Info Import/Delete Script for Games & Portable Software

Here is a simple script for import or delete registry information quickly and expediently.
This script is easy to use and is universal to almost all games & some softwares.

Take my recently played game Assassin’s Creed III as example:

@echo off
echo ==============================
echo Universal REG Info Importor
echo Version: 2.0 
echo Date: 12/28/12
echo by Delta
echo ==============================                
echo.
echo 1. Add REG Info
echo 2. Remove REG Info
echo 3. Exit
echo.

set DEBUG=false
if /i "%DEBUG%"=="false" (set DEBUG=/s) ELSE (set DEBUG=)

:CHOICE
set /p inputChoice=Please make a choice: 
if /i "%inputChoice%"=="1" (set TODO=
goto MAIN)
if /i "%inputChoice%"=="2" (set TODO=-
goto MAIN)
if /i "%inputChoice%"=="3" (exit) ELSE (goto CHOICE)

:MAIN
set Delta=%CD%
set Delta=%Delta:\=\\%
if /i "%PROCESSOR_IDENTIFIER:~0,3%"=="X86" (set X64FIX=) ELSE (set X64FIX=Wow6432Node\)

> ".\delta.reg" ECHO Windows Registry Editor Version 5.00
>>".\delta.reg" ECHO.
>>".\delta.reg" ECHO [%TODO%HKEY_LOCAL_MACHINE\SOFTWARE\%X64FIX%Ubisoft\Assassin's Creed 3]
>>".\delta.reg" ECHO "ExecutableName"="%Delta%"
>>".\delta.reg" ECHO "InstallDir"="%Delta%"
>>".\delta.reg" ECHO "Language"="ChineseTrad"
>>".\delta.reg" ECHO "SKU"="DIGITAL"
>>".\delta.reg" ECHO. 
>>".\delta.reg" ECHO [%TODO%HKEY_LOCAL_MACHINE\SOFTWARE\%X64FIX%Ubisoft\Assassin's Creed 3\GameUpdate]
>>".\delta.reg" ECHO "execPath"="%Delta%\\AC3SP.exe"
>>".\delta.reg" ECHO "info"="f92942fffc2b458bba047834a77d2c44"
>>".\delta.reg" ECHO "installdir"="%Delta%"
>>".\delta.reg" ECHO "language"="us"
>>".\delta.reg" ECHO.
>>".\delta.reg" ECHO [%TODO%HKEY_LOCAL_MACHINE\SOFTWARE\%X64FIX%Ubisoft\Assassin's Creed (R) III]
>>".\delta.reg" ECHO. 
>>".\delta.reg" ECHO [%TODO%HKEY_LOCAL_MACHINE\SOFTWARE\%X64FIX%Ubisoft\Assassin's Creed (R) III\1.01]
>>".\delta.reg" ECHO. 
>>".\delta.reg" ECHO [%TODO%HKEY_LOCAL_MACHINE\SOFTWARE\%X64FIX%Ubisoft\Assassin's Creed(R) III v1.02]
>>".\delta.reg" ECHO. 
>>".\delta.reg" ECHO [%TODO%HKEY_LOCAL_MACHINE\SOFTWARE\%X64FIX%Ubisoft\Assassin's Creed(R) III v1.02\1.02]
>>".\delta.reg" ECHO. 
>>".\delta.reg" ECHO [%TODO%HKEY_LOCAL_MACHINE\SOFTWARE\%X64FIX%Microsoft\Windows\CurrentVersion\Uninstall\{9D15E813-0C26-41E7-ABC5-3EB06FF1B3CF}]
>>".\delta.reg" ECHO "DisplayVersion"="1.02"
>>".\delta.reg" ECHO "InstallLocation"="%Delta%"

echo.
echo UAC confirm may appear...
ping -n 3 127.1>nul
regedit %DEBUG% %~sdp0delta.reg
del /F /Q delta.reg
cls
echo Process complete!

:EXIT
echo.
echo.
echo Delta thanks you for using this script!
echo.
ping -n 3 127.1>nul

Replace the registry info to what you needed and pay attention to variables used in the script. Then save the file as .bat or .cmd file and put it in your game/software folder. After you reinstall or move it to somewhere else, just click to run this script, all done.

Thanks.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.