Re: Getting Installation failure error while using Script along with custom requirements.
Re: Getting Installation failure error while using Script along with custom requirements.
- Subject: Re: Getting Installation failure error while using Script along with custom requirements.
- From: vishnu kulkarni <email@hidden>
- Date: Wed, 27 Jun 2012 19:21:31 +0530
Hi Stephane,
Below details i get from installer log when the script is included
with the package. I tried modifying the dist file but to no avail. Any
suggestions to get it running? I have been modifying the
distribution.dist file using text edit.
One more question I have is , How to use Actions menu within packagemaker?
Jun 27 18:06:29 cgmacjss installd[5799]: PackageKit: ----- Begin install -----
Jun 27 18:06:31 cgmacjss installd[5799]: PackageKit: Install Failed:
PKG: pre-flight scripts for "com.wb.firefoxtest.Firefox.pkg"\nError
Domain=PKInstallErrorDomain Code=112 UserInfo=0x100118c80 "An error
occurred while running scripts from the package “firefox.pkg”." {\n
NSFilePath = "./preflight";\n NSLocalizedDescription = "An error
occurred while running scripts from the package
\U201cfirefox.pkg\U201d.";\n NSURL =
"./Contents/Packages/firefox.pkg --
file://localhost/Users/admin/Documents/Firefox.test5.mpkg/";\n
PKInstallPackageIdentifier = "com.wb.firefoxtest.Firefox.pkg";\n}
On Wed, Jun 27, 2012 at 1:20 AM, Stephane Sudre <email@hidden> wrote:
> On Tue, Jun 26, 2012 at 12:23 PM, vishnu kulkarni <email@hidden> wrote:
>> Hi Stephane,
>>
>> Thanks for explanation. But if i include only memory requirement, it
>> does not create any dist file. When I add Disk space requirement and
>> include a preflight script along with the package it fails while
>> installing. If I do not include the script it works fine or vice
>> versa, If i include script and removed disk space requirement it
>> works. I think it's something to do with the dist file. I have pasted
>> just a line from the dist file, I tried changing it though. But i
>> guess you might help me out .
>>
>> options customize="never" allow-external-scripts="no" ( Script fails
>> because of this ? ) Do i need to allow external scripts to run?
>>> rootVolumeOnly="true"/>
>>> <installation-check script="pm_install_check();"/>
>>> <volume-check script="pm_volume_check();"/>
>
> If you're calling an external shell script from the installation- or
> volume-check scripts, yes you need to allow external scripts. Even if
> the shell script ends up being embedded in the distribution.
--
vishnu
--
vishnu
_______________________________________________
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