From: Leif W <war...@us...> - 2005-10-03 12:47:55
|
> From: "Lennart Borgman" <len...@st...> > Sent: 2005 October 03 Monday 08:24 > >I just realized how to find MSYS when you do not know if it is >installed [snip] > Look in the Windows Registry at > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ > > There should be a key named something like > > MSYS-1.0_is1 > > if MSYS is installed. This in its turn has a string value with the > name > > Inno Setup: App Path > > which tells where MSYS is installed. (Or you can look at > UninstallString.) That may work fine for the current version of the installer, but the keys and strings may change for different versions of MSYS, or different installer tools (NSIS versus Inno Setup). Maybe there's a more generic approach, or an installer convention that could be conceived? Need to know if it's installed, perhaps status (e.g. ok, not configured, broken or half installed), location (drive or unc and path), and for MinGW with many optional components, perhaps the name of a file containing what's installed, along with some of this other info I mention. Well, of course all of this assumes MSYS was installed with an installer, when conceivably it could be custom built and copied, or otherwise unarchived somewhere, in which case it's just guessing at standard path names across all drives or uncs, which is anybody's guess. Anyways that's all speculative on my part. Leif |