Page 1 of 1

Feature request: file name display override

Posted: Tue Sep 20, 2005 9:43 am
by Alexo
Is there any way of overriding the file name display when comparing 2 files?

I integrated ExamDiff Pro into our source control but it is difficult to tell what it is comparing when the actual files are gibberish.

The source control can pass the "logical" file names (e.g., "myfile.cpp@12" and "myfile.cpp@13") to the tool as well but it seems that ExamDiff Pro cannot use that information.

Posted: Tue Sep 20, 2005 4:35 pm
by psguru
It's possible via --left_display_name:<name> and --right_display_name:<name> options.

Posted: Tue Sep 20, 2005 6:28 pm
by Alexo
Excellent! Thank you very much!
Can you tell me from what version they were supported?

Are there any other undocumented options like that?

Another question:
How can a program find out the full path to ExamDiff Pro?

So far I found these registry entries:

Code: Select all

[HKEY_CLASSES_ROOT\TypeLib\{FA96052D-3069-42D3-B82D-E363EBB14C62}\1.0\HELPDIR]
@="C:\\Program Files\\ExamDiff Pro\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ExamDiff Pro_is1]
"Inno Setup: App Path"="C:\\Program Files\\ExamDiff Pro"
but I'm affraid that the first one may be dependent on the version and the second one on the installer used and may change in the future.

Posted: Tue Sep 20, 2005 8:06 pm
by psguru
Can you tell me from what version they were supported?
2.0
Are there any other undocumented options like that?
There are but they are really just for internal use -- at least for the time being.
How can a program find out the full path to ExamDiff Pro?
The following key

Code: Select all

[HKEY_CLASSES_ROOT\CLSID\{58549232-7081-4541-882C-767DB238453C}\InprocServer32]
is a reliable way to get the directory of EDPro by means of getting the path of EDPShell.dll, which is located in the same folder.

Posted: Tue Sep 20, 2005 8:16 pm
by Alexo
Thanks a lot!

Posted: Mon May 29, 2006 7:09 am
by Alexo
Hello psguru,
psguru wrote:
How can a program find out the full path to ExamDiff Pro?
The following key

Code: Select all

[HKEY_CLASSES_ROOT\CLSID\{58549232-7081-4541-882C-767DB238453C}\InprocServer32]
is a reliable way to get the directory of EDPro by means of getting the path of EDPShell.dll, which is located in the same folder.
Unfortunately, I ran accross a machine with EDP 3.1 installed (without shell integration) that did not have this key.

Are there any alternatives?

Posted: Mon May 29, 2006 1:43 pm
by psguru
Are there any alternatives?
No, not really. You'll have to search for ExamDiff.exe on your hard drive (the first place to try would be, obviously, C:\Program Files\ExamDiff Pro.

Posted: Mon May 29, 2006 2:17 pm
by Alexo
How about the uninstall key?

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ExamDiff Pro_is1]
"UninstallString"="\"C:\\Program Files\\ExamDiff Pro\\unins000.exe\""

Unless a different name was used for previous versions.
But then, can I assume that it also started with "ExamDiff Pro"?

Posted: Mon May 29, 2006 2:23 pm
by psguru
Yes, it always starts with "ExamDiff Pro". This might work.