Trying to find the windows registry key(s) that
tell windows add/remove programs where Star Trek Legacy is installed. I'm on windows 7 pro 32 bit I'm writing a small Visual Basic program that is a GUI for editing files in Star Trek Legacy. The problem I'm having is finding the install path of Star Trek Legacy so the program can find all the files that can be edited. I've searched through my registry for these key words: Bethesda Star Trek Legacy Legacy.exe Bethesda is the maker of Star Trek Legacy It does not show up in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Currentversion\Uninstall\ or anywhere else as a full path, there are some references left from when I edited some text files with text editors, but nothing that indicates it's full path: F:\Program Files\Bethesda Softworks\Star Trek Legacy\ This path as default is C:\Program Files\Bethesda Softworks\Star Trek Legacy on most machines, but on mine I have it installed to F:\ Although, on a 64 bit system the path would be C:\Program Files (x86)\Bethesda Softworks\Star Trek Legacy\ I need my VB program to find the absolute install path to the user's Star Trek Legacy folder and check to see if Legacy.exe is inside it then proceed to load. I already have this setup as asking the user to select the drive where they installed Star Trek Legacy then the program has a hard-coded path of: "Program Files\Bethesda Softworks\Star Trek Legacy\" But as I said, this will cause an issue if they are running 64bit since Program Files is Program Files (x86) on those systems and the hard-coded path will return an error. I am at a loss since Star Trek Legacy is installed, and it has an icon on the desktop with the full path correct and it shows up in Add/Remove Programs and I can uninstall it through Add/Remove programs. However, it does not show up in the registry anywhere. How is this possible? And how can I pull the same information that Add/Remove Programs does or the system does so that my program can find the correct path on any windows system and path that Star Trek Legacy might be installed.
November 2nd, 2010 10:13am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics