My software package installs a file (JSON) that saves user data. This data file should not be replaced when the user installs a new version of my software. I'm using Inno Setup to create my install package and I'm using "onlyifdoesntexist" flag to achieve this.
Here is the code.
Source: "C:\MyProg\Json\userData.json"; DestDir: "{app}\MyProg\Json"; Flags: onlyifdoesntexist
But, now I would like to add new objects/array to the "userData.json" as a new update. If continue to use the above code after adding the changes to the file, it won't get updated in the user's end. So I would like to know whether there a way to check the versions of the files or only update if the installation has a new version.
Is this possible in Inno Setup ? Thanks for you help in advance.
My software package installs a file (JSON) that saves user data. This data file should not be replaced when the user installs a new version of my software. I'm using Inno Setup to create my install package and I'm using "onlyifdoesntexist" flag to achieve this.
Here is the code.
Source: "C:\MyProg\Json\userData.json"; DestDir: "{app}\MyProg\Json"; Flags: onlyifdoesntexist
But, now I would like to add new objects/array to the "userData.json" as a new update. If continue to use the above code after adding the changes to the file, it won't get updated in the user's end. So I would like to know whether there a way to check the versions of the files or only update if the installation has a new version.
Is this possible in Inno Setup ? Thanks for you help in advance.
0 commentaires:
Enregistrer un commentaire