I'm working on an Inno Setup installer that uses the GetOpenFileName function to bring up an open file dialog for the user to browse for and select a database file. The database will be running when the user selects the file but the installer is only trying to get the file's path as a string to configure our software.
On Windows XP this isn't a problem but I've noticed that on Windows 7 when selecting the running database file you get an error saying "This file is in use. Enter a new name or close the file that's open in another program."
Not sure if there is a way of disabling that error or another way of bringing up an open file dialog that isn't as restricted.
Thanks in advance.