FG
💻 Software

Start a program based on a wildcard in a Batch Script

Fresh7 days ago
Mar 15, 202612193 views
Confidence Score0%
0%

Problem

I'm creating a setup script for a program developed by someone else. Their installer won't install over an existing version, so I need to uninstall any previous installations. The uninstaller is named unins$num.exe, where the $num is a number that seems to increment each time the program is install…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Start a program based on a wildcard in a Batch Script

Low Risk

This assumes that the target folder would only contain a single unins$num.exe executable, and that the batch script is in the same folder as the uninstaller: In basic terms it just loops through the output of and executes each result one-by-one. If …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment