I have a very simple support installer that updates several XML databases with new versions:
[Files]
Source: "MSA_PublicTalks_???.xml"; DestDir: "{param:InstallPath}"; Flags: ignoreversion
Each of the database files has a Version attribute. For example:
<?xml version="1.0" encoding="utf-8"?>
<PublicTalkTitles Version="1.0">
<!-- English -->
<eng>
<PublicTalk Number="1" IssueDate="2015-09-01" Media="false">Theme</PublicTalk>
<PublicTalk Number="1" IssueDate="2015-09-01" Media="false">Theme</PublicTalk>
</eng>
</PublicTalkTitles>
Each database file name includes the language code. For example:
MSA_PublicTalks_ENG.xml
Now, I have another database file, which is not part of the installer, that I want o put on my website. It looks something like this:
<?xml version="1.0" encoding="utf-8"?>
<PublicTalkTitleUpdates>
<Database Language="eng" Version="1.0"/>
<Database Language="esp" Version="1.0"/>
</PublicTalkTitleUpdates>
What I would like to do is automate the creation of this latter database when I build this update installer:
- Create new XML database
- For each talk titles database ...
- Extract the language code from the file name.
- Locate the version number
n.n. - Add an entry to the new database.
- Save the new xml after compiling has finished.
Can we do this with Inno Setup?
Try a powershell script