Tuesday, July 8, 2025

Make Your Own Ninite Installer

Ha, Ok - not quite. You have to download the installers first.
I could add curl, extract and delete requests but it's too much work for something I don't intend using.
I asked Claude-3.5 to create a batch (cmd) to silently install all the files residing in the same folder as the cmd.

After several revisions when Claude's script failed, we hit a home run. Working with Claude on script development is outstanding. I can't think of enough things to try.

This will install 7zip, Notepad++, and Winaero in a flash with no input. I didn't believe it worked until I checked.

Yes, I used Windows Sandbox (my favorite scripting playground)

Easier methods to install Windows programs exist today, and I will never use this method. But it was fun.

I would simplify the installer names like "notpad++.exe".

@echo off
setlocal enabledelayedexpansion

echo Starting silent installation of programs...
echo.

set "SOURCE_DIR=%~dp0"

:: 7-Zip
echo Installing 7-Zip...
"%SOURCE_DIR%7z2500-x64.exe" /S
if errorlevel 1 (
    echo Error installing 7-Zip
) else (
    echo 7-Zip installation complete.
)
echo.

:: Notepad++
echo Installing Notepad++...
"%SOURCE_DIR%npp.8.8.2.Installer.x64.exe" /S
if errorlevel 1 (
    echo Error installing Notepad++
) else (
    echo Notepad++ installation complete.
)
echo.

:: Winaero Tweaker
echo Installing Winaero Tweaker...
"%SOURCE_DIR%WinaeroTweaker-1.63.0.0-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART
if errorlevel 1 (
    echo Error installing Winaero Tweaker
) else (
    echo Winaero Tweaker installation complete.
)
echo.

echo All installations complete!
pause

:: Remember, different installers require different silent switches
:: /S (common for NSIS installers like 7-Zip)
:: /VERYSILENT (Inno Setup installers)
:: /quiet (MSI installers)

JSON Editing and Notepad++

Inserting Lines Below the Selection 1. Select a line or lines 2. Ctrl + D 3. The lines will be inserted below the selection. If lines alread...