开发者

Inno Setup ... Use old DB if previous version installed

开发者 https://www.devze.com 2023-01-25 13:28 出处:网络
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/

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

精彩评论

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