Visio 2013 silent install, uninstall, detection, xml

CatOnRug solve, automate, speed up
setup.xml:
<Configuration Product="VISSTD">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
<PIDKEY Value="AAAAABBBBBCCCCCDDDDDEEEEE" />
</Configuration>
silent-install.cmd
start /wait "" "%~dp0setup.exe" /config "%~dp0setup.xml"
silent-uninstall.cmd
start /wait %~dp0setup.exe /uninstall VISSTD /config %~dp0setup.xml
silent-install-with-detection.cmd
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k=Office15.VISSTD
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if not !errorlevel!==0 (
start /wait "" "%~dp0setup.exe" /config "%~dp0setup.xml"
) else echo Visio 2013 already installed!
endlocal
silent-uninstall-with-detection.cmd
@echo off
setlocal EnableDelayedExpansion
set sw=HKLM\SOFTWARE
set u=Microsoft\Windows\CurrentVersion\Uninstall
set k=Office15.VISSTD
if not "%ProgramFiles(x86)%"=="" set x=Wow6432Node\
reg query "%sw%\%x%%u%\%k%" > nul 2>&1
if !errorlevel!==0 (
start /wait %~dp0setup.exe /uninstall VISSTD /config %~dp0setup.xml
) else echo no Visio 2013 found!
endlocal

No comments:

Post a Comment