"execute" permission for installation package scripts.
"execute" permission for installation package scripts.
- Subject: "execute" permission for installation package scripts.
- From: "Alexander Klyuev" <email@hidden>
- Date: Wed, 29 Sep 2010 00:07:56 -0400
Hi All,
I'm building an installation package using PackageMaker 3.0.4 and for some
specific reason
it cannot be flat because should be accessible on Windows machine as folder
(e.g. MyPackage.pkg)...
To check some conditions I use a requitement script like that:
<requirement id="scri" operator="ne" value="'0'">
<file>myscript</file>
<message-title>MyRequirementTitle</message-title>
<message>MyRequirementIsNotMetMessage</message>
</requirement>
So when MyPackage.pkg walks through Windows OS, requirement and installation
(e.g. "preinstall") scripts
lose "execute" permissions.
When, for instance, no "execute" permission for "preinstall" script, it
cannot be executed, and installation
process fails; install.log shows the reason. However when requirement script
has no "execute" permission,
Installer just doesn't execute it and continues installation as if nothing
had happened.
In this case requirement checking doesn't work (becomes useless) and the
issue is supressed.
Despite of Installer leaves error messages in console.log (not in
install.log), this usually stays unnoticed.
Is these any way to fix "execute" permissions for requirement and
installation scripts automatically on start of
installation process?
Any ideas will be highly appreciated.
Regards,
- Alexander
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden