![]() ![]() But once I proceed to the last part of what's inside the (), that's when I get the errors. When typing it out manually, as long as I stop at "DisplayVersion" I get the info I'm looking for. So narrowing it down, the following is my problem: for /f "tokens=3 delims= " %%G in ('reg query %key% /v DisplayVersion ^| findstr /i current') do ( And since %G does not equal my desired version (11.5.502.135) it's installing every time. ![]() Instead of echoing something like 11.5.502.135, it's echoing "%G". The problem is that it's not reading the version that's installed. \\path-to-server\Flash-IE-11.5. -installĬOPY /y \\path-to-server\mms.cfg C:\WINDOWS\System32\Macromed\Flash\mms.cfg Taskkill /f /im iexplore.exe /im firefox.exe SET key="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player Plugin"įor /f "tokens=3 delims= " %%G in ('reg query %key% /v DisplayVersion ^| findstr /i current') do ( When you install Flash at the default location,you can query the version of the file. ![]() I found myself wanting to do an inventory of the versions of Flash that were installed on all systems, so I went to my favorite tool: PowerShell. :: Check Flash version and install if not matching. Inventory of software is always fun to do. If the installed version of Flash isn't what I want, I want the script to uninstall the current version and install my desired version. What I'm trying to accomplish is checking the installed version of Flash. It's worked before (with other software), but in the case of Flash, it isn't. I need some help making the following work.
0 Comments
Leave a Reply. |