Topic on Project:Support desk

MattAtGov (talkcontribs)

Hi,

My workplace recently started having users use MediaWiki on some of their projects and our Software Management team requires all software to be tracked. I was wondering if anybody knew which files in the MediaWiki package would be a good file to track MediaWiki v1.27. We generally use .exe files, but since MediaWiki is a package and contains no .exe files I'm not sure what would be a crucial file that is necessary for MediaWiki that I can use for software tracking.

2003:72:6D18:9300:B080:A7B0:4A52:A26E (talkcontribs)

Can you explain what you mean with "software tracking"? What are you using it for?

Spontaneously, without knowing more about the question, I would think that you could use Git and the tags in Git to specify, which files are part of a MediaWiki installation in a given MediaWiki version.

2003:72:6D18:9300:B080:A7B0:4A52:A26E (talkcontribs)
MattAtGov (talkcontribs)

Sorry for the late response, we use another software for software discovery -not sure if i can name the software so i'll just describe it-. Our Software discovery tool requires us to generate a Software Definitions file for each software and in the properties file we can put down filenames, file sizes, version, registry keys etc. Let's say for example I created the following Software Definition:

Software Title: MediaWiki v1.27

Filename: RELEASE-NOTES-1.27

The software discovery tool will then scan all the computers for the file "RELEASE-NOTES-1.27" and if that system has the file then it returns as the software being discovered on the computer. In the Mediawiki 1.27.3 folder the only file I found that could possibly be used to identify MediaWiki v1.27.3 was the file "RELEASE-NOTES-1.27". I was wondering if there is a better file that you could suggest we use to track Media Wiki v1.27.3 by.

Wargo (talkcontribs)

You want to extract name and current version?

2003:72:6D1A:7A00:F4C2:C119:76E9:1C48 (talkcontribs)

Can you only check for existance of a file or are you able to also parse the contents of a given file?

As long as you can only check for existance of a file, RELEASE-NOTES-1.27 obviously will not tell you the exact version, which is present in that folder.

If you can also parse the contents, then the release notes file would be one possibility. However, includes/DefaultSettings.php contains the $wgVersion variable, which contains the value,which MediaWiki is using internally. That would be what I would use.