Closed Zemogiter closed 4 years ago
@qparis can you remember if there was a reason to use this order?
I don't see a reason why we should not be able to change the order. We should only face an issue with this if inside postInstall
the created shortcut is accessed or the internal values of QuickScript
are changed, which should not be the case anyway.
For me it's fine to try it. Could you take a look at the postInstall
calls to see if there's something which might get broken?
This is interesting. It seems like some installers use a different order:
ZipScript as well
Ok, then let's merge this.
Description
Thanks to #1144 we have discovered that scripts will fail if
.executable()
points to a file that only exist afterpostInstall
step is done. Since @plata mentioned something about Installer Script working this way for a reason (though I was unable to find that reason in closed PRs and issues) this is a WIP draft untill me or someone else test this with other scripts that usepostInstall
.What works
Heroes of Might & Magic IV
no longer crash due to non-existing.executable()
What was not tested
Other scripts with
postInstall
Test
Ready for review
json-align
andeslint
run according to the documentation.