|
Don't forget that Program Files can be on a different drive.. There's a
Win32 function you can call that will tell you what the default programs
directory is.
It's fairly typical for a Windows setup to let the user choose where to
install, and then write that into the registry.. and then the app looks up in
the registry where it was installed and uses that as the base path when it needs
files.
As far as setup goes, a good option I think would be to use the Windows
Installer - AFAIK it's free should be adequate for what Postgres needs..
Visual Studio can prepare a Windows Installer Setup project using wizards.
Another free option is the Nullsoft installer (the Winamp guys) but I'd
tend to prefer the Windows Installer just because, well, it's supplied by MS so
possibly more likely to do "the right thing".
- Steve
|