Skip to content

Commit 0e824b7

Browse files
refactor: Add a silent uninstall of Ashampoo Burning Studio
1 parent 0c78de5 commit 0e824b7

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

softwareupdaterXL.bat

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,29 @@ REM (for %%a IN (reflect_setup*.exe) DO echo %%a && %%a /q /norestart && del %%a
167167
(for %%a IN (MicrosoftEdgeEnterprise*.msi) DO echo %%a && msiexec.exe /i %%a /q /norestart && del %%a )
168168

169169
:install-ashampoo-burning-studio
170-
(for %%a IN (ashampoo_burning_studio_*.exe) DO echo %%a && %%a /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART && del %%a )
171-
IF EXIST "%PUBLIC%\Desktop\Ashampoo Deals.url" del "%PUBLIC%\Desktop\Ashampoo Deals.url"
170+
for %%a IN (ashampoo_burning_studio_*.exe) DO (
171+
echo %%a
172+
173+
for /f "tokens=8* delims=^\" %%i in ('reg query "%X86-UNINSTALL-REG%" /s /f "Ashampoo Burning Studio" ^| findstr "HKEY"') do (
174+
for /f "tokens=2* delims= " %%d in ('reg query "%X86-UNINSTALL-REG%\%%i" /v "DisplayName"') do (
175+
echo Uninstall: %%e
176+
)
177+
for /f "tokens=2* delims= " %%d in ('reg query "%X86-UNINSTALL-REG%\%%i" /v "QuietUninstallString"') do (
178+
%%e
179+
)
180+
)
181+
for /f "tokens=7* delims=^\" %%i in ('reg query "%X64-UNINSTALL-REG%" /s /f "Ashampoo Burning Studio" ^| findstr "HKEY"') do (
182+
for /f "tokens=2* delims= " %%d in ('reg query "%X64-UNINSTALL-REG%\%%i" /v "DisplayName"') do (
183+
echo Uninstall: %%e
184+
)
185+
for /f "tokens=2* delims= " %%d in ('reg query "%X64-UNINSTALL-REG%\%%i" /v "QuietUninstallString"') do (
186+
%%e
187+
)
188+
)
189+
190+
%%a /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART && del %%a || echo Ashampoo Burning Studio may require a product key, or the setup may report errors during execution. Run the setup manually and follow the instructions. && timeout 10
191+
IF EXIST "%PUBLIC%\Desktop\Ashampoo Deals.url" del "%PUBLIC%\Desktop\Ashampoo Deals.url"
192+
)
172193

173194
:install-cdburnerxp
174195
(for %%a IN (cdbxp_setup*.exe) DO echo %%a && %%a /VERYSILENT /NORESTART && del %%a )

0 commit comments

Comments
 (0)