开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜