[英]Is there an Adobe equivalent to the Java deployment.properties file?
Just as the title states, is there an Adobe equivalent to the Java deployment.properties file? 就像标题中指出的那样,是否存在等效于Java Deployment.properties文件的Adobe?
I am writing ac# application to test installations of application in our network. 我正在编写ac#应用程序以测试我们网络中应用程序的安装。 The top three on my boss's list are java, flash, and reader.
我老板列表中的前三名是Java,Flash和Reader。 I need to be able to find out what versions of each application are installed on a machine for the reports im going to generate (force the user to update/etc).
我需要能够找出要在其上生成报告(强制用户进行更新等)的计算机上安装的每个应用程序的版本。
I know i can check version number and confirm the ability of IE to access my JRE by checking "\\Sun\\Java\\Deployment\\deployment.properties". 我知道我可以通过检查“ \\ Sun \\ Java \\ Deployment \\ deployment.properties”来检查版本号并确认IE访问我的JRE的能力。 What file would I check to confirm the same for adobe reader and flash?
我将检查哪个文件以确认Adobe Reader和Flash的相同?
Thanks in advance for any help given or links provided to more info. 在此先感谢您提供的任何帮助或提供了更多信息的链接。
edit: I need to do this from the browser. 编辑:我需要从浏览器中执行此操作。
This is not a very clean solution, but since the only "official" way seems to be to check it from the Windows registries perhaps this will help: 这不是一个很干净的解决方案,但是由于唯一的“官方”方式似乎是从Windows注册表中检查它,因此可能会有所帮助:
We know that the flash files are located are in the (windows directory)\\system32\\Macromed\\Flash (or SysWow64\\Macromed\\Flash on 64 bit systems). 我们知道Flash文件位于(Windows目录)\\ system32 \\ Macromed \\ Flash(或在64位系统上为SysWow64 \\ Macromed \\ Flash)中。
Each time a flash updates it keeps the track of the progress in the log files. 闪存每次更新时,都会在日志文件中跟踪进度。 Depending on the flash version you will either have a) install.log (very old versions of flash) or b) FlashInstall.log
根据Flash版本的不同,您将拥有a)install.log(非常老版本的Flash)或b)FlashInstall.log
a) If you browse through the file you see various entires and one type goes like this: WriteRegStr: "HKEY_CURRENT_USER\\SOFTWARE\\Macromedia\\FlashPlayer" "FlashPlayerVersion"="10.0.45.2"
. a)如果浏览文件,则看到各种不同的文件,并且一种类型如下所示:
WriteRegStr: "HKEY_CURRENT_USER\\SOFTWARE\\Macromedia\\FlashPlayer" "FlashPlayerVersion"="10.0.45.2"
。
Now you can just go through that file bottom-top and match the "FlashPlayerVersion"=
string to get the most recent version. 现在,您可以从上至下浏览该文件,并匹配
"FlashPlayerVersion"=
字符串以获取最新版本。
However, this is for a really old versions of flash and the install.log file never got deleted from this directory, so make sure you check for the FlashInstall.log too! 但是,这是针对Flash的真正旧版本的,并且从未从该目录中删除install.log文件,因此请确保也检查FlashInstall.log !
b) Use a similar approach, except the new install logs don't keep the "WriteRegStr" information. b)使用类似的方法,除了新的安装日志不保留“ WriteRegStr”信息。 Now you can instead look for the dll file name itself, for example my last update created an install log
0009 [I] 00000014 C:\\WINDOWS\\system32\\Macromed\\Flash\\NPSWF32_11_5_502_146.dll
, meaning my flash version is 11.5.502.146 现在,您可以改为查找dll文件名本身,例如,我的上一次更新创建了安装日志
0009 [I] 00000014 C:\\WINDOWS\\system32\\Macromed\\Flash\\NPSWF32_11_5_502_146.dll
,这意味着我的Flash版本是11.5.502.146
another options are to 另一个选择是
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.