Inno Setup ... Use old DB if previous version installed
I have an app written in VB6 with a MDB dat开发者_如何学Cabase.
When installing the latest version if user has an older version than I would like to copy the old DB Folder(Program Files/AppName/DATA/) to the new installation instead of setting up the default DB.
The new version will be installed in a new folder Program Files/AppName2/DATA
if datafolder exists in program files/appName/DATA
copy datafolder to Program Files/AppName2/DATA
Any suggestions ? Thank you
I'm not sure why you're asking this, as it is similar to your previous question which I have provided a solution for. Just use the DirExists
and FileCopy
functions.
Source: "{pf}\App\Data\*.*"; DestDir: {code:DataPath}\; Check: DirExists(ExpandConstant('{pf}\App\Data\')); Flags: ignoreversion recursesubdirs external
精彩评论