@echo off
color a
mode 60,15
title by waget
IF EXIST "%programfiles%\Smart Install Maker\sim.exe" (
goto menu
)Else goto not
:menu
cls
echo.
echo ====================
echo ! www.zyzoom.org/vb !
echo ====================
echo.
echo [1] save registration
echo.
echo [2] RESTORE registration
echo.
echo [3] exit
echo.
set /p "Press=Press 1 , 2 or 3 :"
if %Press% ==1 goto QUERY
if %Press% ==2 goto RESTORE
if %press% ==3 exit
cls
echo.
echo.
echo press 1 , 2 or 3
echo.
pause
goto menu
:QUERY
cls
REG QUERY "HKEY_CURRENT_USER\Software\InstallBuilders\Smart Install Maker" /s
if %ERRORLEVEL% == 0 goto save
if %ERRORLEVEL% == 1 goto keynotfound
:save
cls
REG SAVE "HKEY_CURRENT_USER\Software\InstallBuilders\Smart Install Maker" "%cd%\registration.hiv"
if %ERRORLEVEL% == 0 goto succes
if %ERRORLEVEL% == 1 goto exists
:succes
cls
echo.
echo save registration successful
pause
goto menu
:keynotfound
cls
echo.
echo key not found ...!
echo.
pause
goto menu
:exists
cls
echo.
echo File already exists
echo.
pause
goto menu
:RESTORE
IF EXIST "registration.hiv" (
goto RESTORE1
)else goto filenotfound
:RESTORE1
cls
REG RESTORE "HKEY_CURRENT_USER\Software\InstallBuilders\Smart Install Maker" "%cd%\registration.hiv"
if %ERRORLEVEL% == 0 goto RESTORE2
if %ERRORLEVEL% == 1 goto filenotfound
:RESTORE2
cls
echo.
echo RESTORE registration successful
echo.
pause
goto menu
:filenotfound
cls
echo.
echo Filenotfound
echo.
pause
goto menu
:not
cls
echo.
echo program not found ,,,!
echo.
pause