Detect a directory Crystal Report or Office

Got a problem you cannot solve? Try here.
Post Reply
Merops
Posts: 3
Joined: Fri Jul 01, 2011 4:12 pm

Detect a directory Crystal Report or Office

Post by Merops »

Hello,

I have to copy files in the directory CrystalReport (eg C:\Program Files\Seagate Software\Crystal Reports).
How to detect that directory can vary from one computer to another ?

Similarly, a directory for Office (eg 2003, 2007, 2010).

Thank you, :wink:

Franck,
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Detect a directory Crystal Report or Office

Post by giaviv »

Hi,

You have a few options. Your best bet is to find the entry of these programs in the registry under:
HKLM\SOFTWARE\WINDOWS\CURRENTVERSION\UNINSTALL

There, you will find the entry that appears in the Uninstall Programs in your control panel.
Parse the UninstallString value. This value points to where the uninstallation program is. Since it is usually located in the main installation directory, parse this value to get the installed directory.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply