PDA

View Full Version : [Execute Programs] before [Install Files]



andrelernhart
02-12-2017, 04:31 AM
Good day,
I need to actualize .chm files (replace or patch). This works fine.
I also need to actualize a database - an app (#include support file...) performs some magic doing INSERT, UPDATE, DELETE... This works most the time, but sometimes it fails.
With the given order to first installs the files, and later executing the support app, the files are updated, but the DB is not, and we have a nice mess.
Is there a way to change the order with which the tasks are executed - say, first trying to actualize the DB (Execute Programs), and if it doesn't fail, install the files?
Moving or copying the [Execute Programs] section to a place in the upper part of the script (before install files) did not work.
Any hint will be highly appreciated, thanks in advance.

linder
02-13-2017, 05:09 AM
Andre,

the script is completely from "top to bottom". What you see in the script is what you get at installer runtime. So if you move your "Run Program" action to a place before the "Install File" action then it is executed before the file installation process. BTW, make sure that you have "Run program once the installation exists" in the Run Program "Finish Dialog" tab disabled. And you should "wait" until the external program has finished. Otherwise, the installation continues immediately.

Friedrich