Our installation requires the user to be able to specify the data filename for SQL Server. I am using an SQL script to handle the database creation, and file replace-string operations to alter the SQL script prior to running it.
We would like to use BrowseForFile but it uses the OFN_PATHMUSTEXIST and OFN_FILEMUSTEXIST flags which are not appropriate for a new file that cannot be created by the installer.
Is there an alternative to BrowseForFile that would allow this?
Or a way to set the "must exist" flags?