createfile until __EOF
{concatenation “%0d%0a” of (pathname of it) of files whose (name of it as lowercase contains (parameter “searchString”)) of folder (parameter “folderPath”)}
__EOF
At a glance, I’d say that no result will ever be returned because you’re comparing a string with uppercase letters “VC_redist.x86” with another string coerced to be lowercase.
You’re looking for the file in the folder C:\ProgramData\Package Cache\ but that location only contains folders and the file you’re looking for is inside one of those folders
`(pathname of it) of files whose (name of it as lowercase contains (parameter “searchString”) as lowercase ) of folders of folder (parameter “folderPath”)
parameter "folderPath" = "C:\ProgramData\Package Cache"
parameter "searchString" = "VC_redist.x86"
createfile until __EOF
{concatenation "%0d%0a" of (pathname of it) of files whose (name of it as lowercase contains (parameter "searchString") as lowercase ) of folders of folder (parameter "folderPath")}
__EOF
if { not exists folder ( parameter “resultFolder” ) }
folder create { ( parameter “resultFolder” ) }
endif
if { exists “__createfile” }
delete “__createfile”
endif
createfile until __EOF
{concatenation “%0d%0a” of (pathname of it) of files whose (name of it as lowercase contains (parameter “searchString”) as lowercase ) of folders of folder (parameter “folderPath”)}
__EOF
delete __appendfile
appendfile @echo off
appendfile :loop appendfile wmic product get name | findstr /i “Microsoft Visual C++ 2013 Redistributable”
appendfile if %errorlevel%==0 (
appendfile timeout /t 60
appendfile goto loop
appendfile )
appendfile exit /b 0
move __appendfile check_package.bat
waithidden cmd.exe /c check_package.bat
I have created the 2 logics now.
Run the uninstallation in the background ( marked bold above )
Created the logic for verfying the uninstallation ( Marked bold above )
Instead of bat file, do we have option to minimize the code using bigfix action script for checking the uninstallation process?
Note: cmd.exe is keeps on running even after uninstall… Hence I have created the above 2 logics and running cmd.exe in the background.
After compilition of uninstallation , I need to kill the cmd.exe task process…