Skip to content

Instantly share code, notes, and snippets.

@joydeep-bhowmik
Last active January 7, 2026 10:28
Show Gist options
  • Select an option

  • Save joydeep-bhowmik/f8240d5af8f50da572ee86a4f27cc2c1 to your computer and use it in GitHub Desktop.

Select an option

Save joydeep-bhowmik/f8240d5af8f50da572ee86a4f27cc2c1 to your computer and use it in GitHub Desktop.
@echo off
setlocal EnableDelayedExpansion
title Application Setup Wizard
color 0A
:: ================= INTRO =================
cls
echo =====================================
echo Application Setup Wizard
echo =====================================
echo.
echo This wizard will guide you through the installation.
echo.
pause
:: ================= USER NAME =================
:GETNAME
cls
set "name="
set /p name=Enter your name:
if "%name%"=="" (
echo.
echo Name cannot be empty.
timeout /t 2 >nul
goto GETNAME
)
:: ================= PRODUCT KEY =================
:GETKEY
cls
set "key="
set "edition="
echo Enter product key:
echo.
set /p key=
if "%key%"=="TYP1-9A3F-KL8Q" set edition=Typical
if "%key%"=="CSTM-7XQ2-MP9A" set edition=Custom
if "%key%"=="MINI-4Z8L-AQ7X" set edition=Minimal
if not defined edition (
echo.
echo Invalid or unauthorized product key.
timeout /t 2 >nul
goto GETKEY
)
echo.
echo Product key accepted.
echo Edition unlocked: %edition%
timeout /t 2 >nul
:: ================= LICENSE =================
cls
echo ================= LICENSE AGREEMENT =================
echo.
echo By installing this software, you agree to all terms
echo and conditions of this application.
echo.
echo 1. I Agree
echo 2. I Do Not Agree
echo.
set /p lic=Choose (1-2):
if "%lic%"=="2" (
echo.
echo Installation cancelled.
timeout /t 2 >nul
exit
)
if not "%lic%"=="1" goto LICENSE
:: ================= INSTALL LOCATION =================
:LOCATION
cls
echo Select installation location:
echo.
echo 1. C:\Program Files\Application
echo 2. D:\Applications\Application
echo 3. Custom location
echo.
set /p drive=Enter choice (1-3):
if "%drive%"=="1" set installDir=C:\Program Files\Application
if "%drive%"=="2" set installDir=D:\Applications\Application
if "%drive%"=="3" (
set installDir=
set /p installDir=Enter full path:
)
if "%installDir%"=="" goto LOCATION
:: ================= COMPONENTS (CUSTOM ONLY) =================
set shortcut=No
set extras=No
if not "%edition%"=="Custom" goto SUMMARY
:COMPONENTS
cls
echo Select components to install:
echo.
echo Core Files: Required
echo.
set /p shortcut=Create Desktop Shortcut? (Y/N):
set /p extras=Install Extra Tools? (Y/N):
:: ================= SUMMARY =================
:SUMMARY
cls
echo ============== INSTALLATION SUMMARY ==============
echo.
echo User: %name%
echo Edition: %edition%
echo Location: %installDir%
if "%edition%"=="Custom" (
echo Desktop Shortcut: %shortcut%
echo Extra Tools: %extras%
)
echo.
echo 1. Start Installation
echo 2. Cancel
echo.
set /p confirm=Choose (1-2):
if "%confirm%"=="2" exit
if not "%confirm%"=="1" goto SUMMARY
:: ================= INSTALLATION =================
cls
echo Initializing installation...
timeout /t 2 >nul
for /L %%i in (1,1,100) do (
cls
echo Installing Application...
echo.
echo User: %name%
echo Edition: %edition%
echo Destination: %installDir%
echo.
echo Progress: %%i%%
echo.
if %%i==20 echo Preparing files...
if %%i==40 echo Copying files...
if %%i==60 echo Writing configuration...
if %%i==80 echo Finalizing installation...
timeout /t 1 >nul
)
:: ================= FINISH =================
cls
echo =====================================
echo Installation Completed Successfully!
echo =====================================
echo.
echo Thank you, %name%.
echo.
echo Installed Edition: %edition%
echo Location:
echo %installDir%
echo.
pause
exit
@joydeep-bhowmik
Copy link
Copy Markdown
Author

joydeep-bhowmik commented Jan 7, 2026

products keys:
MINI-4Z8L-AQ7X
CSTM-7XQ2-MP9A
TYP1-9A3F-KL8Q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment