JPRaven
10-27-2009, 08:28 AM
I am trying to adapt our existing app to work correctly with Vista.
Our app uses an Access database (*.mdb) which up until now has been installed in the [INSTALLDIR] along with the executable and other program files. The db file doesn not get overwritten when the Installshield wizard is upgrading from a previous version of the app.
As Vista doesn't allow programs run by non-admin users to write to Program Files or it's sub-folders, this db file needs to be installed in another location on Vista, preferably under ProgramData as it is not user-specific. Can anyone confirm which of the pre-defined folder names in Installshield I should use to place the db somewhere under "ProgramData" on Vista?
More importantly, when running the IS wizard to upgrade from an earlier version of our app, rather than installing a blank db file, it needs to move the existing DB file from its current location in the [INSTALLDIR] to the new location under ProgramData. Can anyone suggest the best way of doing this? I was considering running a batch file or windows script in Custom Actions, but there's surely a better way...
Any help or advice would be greatly appreciated.
Jean-Paul Raven
Our app uses an Access database (*.mdb) which up until now has been installed in the [INSTALLDIR] along with the executable and other program files. The db file doesn not get overwritten when the Installshield wizard is upgrading from a previous version of the app.
As Vista doesn't allow programs run by non-admin users to write to Program Files or it's sub-folders, this db file needs to be installed in another location on Vista, preferably under ProgramData as it is not user-specific. Can anyone confirm which of the pre-defined folder names in Installshield I should use to place the db somewhere under "ProgramData" on Vista?
More importantly, when running the IS wizard to upgrade from an earlier version of our app, rather than installing a blank db file, it needs to move the existing DB file from its current location in the [INSTALLDIR] to the new location under ProgramData. Can anyone suggest the best way of doing this? I was considering running a batch file or windows script in Custom Actions, but there's surely a better way...
Any help or advice would be greatly appreciated.
Jean-Paul Raven