Feature request: file name display override

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
Alexo
Expert Member
Posts: 75
Joined: Fri Oct 22, 2004 10:18 am
Location: Canada

Feature request: file name display override

Post 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.
User avatar
psguru
Site Admin
Posts: 2020
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

It's possible via --left_display_name:<name> and --right_display_name:<name> options.
psguru
PrestoSoft
Alexo
Expert Member
Posts: 75
Joined: Fri Oct 22, 2004 10:18 am
Location: Canada

Post 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.
User avatar
psguru
Site Admin
Posts: 2020
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post 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.
psguru
PrestoSoft
Alexo
Expert Member
Posts: 75
Joined: Fri Oct 22, 2004 10:18 am
Location: Canada

Post by Alexo »

Thanks a lot!
Alexo
Expert Member
Posts: 75
Joined: Fri Oct 22, 2004 10:18 am
Location: Canada

Post 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?
User avatar
psguru
Site Admin
Posts: 2020
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post 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.
psguru
PrestoSoft
Alexo
Expert Member
Posts: 75
Joined: Fri Oct 22, 2004 10:18 am
Location: Canada

Post 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"?
User avatar
psguru
Site Admin
Posts: 2020
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

Yes, it always starts with "ExamDiff Pro". This might work.
psguru
PrestoSoft
Post Reply