Uninstall UVK creates empty folders
Posted: Tue Nov 21, 2017 6:40 pm
I use a script to robocopy UVK from a NAS drive to a temp folder on C:\uvkTemp.
robocopy "%ScriptPath%" %UKVPathTemp% /MIR
Then this script is run to install UVK:
START %UKVPathTemp%UVKSetup.exe -Silent -Auto -NoRP -NoCMenu -NoRun -Customdir "%UKVPath%"
REM DELAY FOR 2 SECS (value of 3 because first PING takes 1 sec to complete)
ping 127.0.0.1 -n 5 > nul
IF exist "%UKVPathTemp%uvksettings.uvksr" (
ECHO LOADING SCRIPT: %UKVPathTemp%uvksettings.uvksr
ECHO %UKVPath%\UVK_en.exe
START %UKVPath%\UVK_en.exe -ImportSr "%UKVPathTemp%uvksettings.uvksr"
) ELSE (
ECHO ** FAILED ** NO SCRIPT FOUND = LOADING TOOL PLEASE LOAD UVKSETTINGS.UVKCR MANUALLY
PAUSE
)
UVK runs and the Temp folder is removed.
However, when I run "Uninstall this Application" the Temp folder is put back which I presume if from the uninstall procedure.
Not a big issue, but nice to clean up the folders on completion 100%.
robocopy "%ScriptPath%" %UKVPathTemp% /MIR
Then this script is run to install UVK:
START %UKVPathTemp%UVKSetup.exe -Silent -Auto -NoRP -NoCMenu -NoRun -Customdir "%UKVPath%"
REM DELAY FOR 2 SECS (value of 3 because first PING takes 1 sec to complete)
ping 127.0.0.1 -n 5 > nul
IF exist "%UKVPathTemp%uvksettings.uvksr" (
ECHO LOADING SCRIPT: %UKVPathTemp%uvksettings.uvksr
ECHO %UKVPath%\UVK_en.exe
START %UKVPath%\UVK_en.exe -ImportSr "%UKVPathTemp%uvksettings.uvksr"
) ELSE (
ECHO ** FAILED ** NO SCRIPT FOUND = LOADING TOOL PLEASE LOAD UVKSETTINGS.UVKCR MANUALLY
PAUSE
)
UVK runs and the Temp folder is removed.
However, when I run "Uninstall this Application" the Temp folder is put back which I presume if from the uninstall procedure.
Not a big issue, but nice to clean up the folders on completion 100%.