I need to create a pkg installer package

Following is my files that need to be installed
1)      /opt/xyz*
2)     /Library/StartupItems/xyz/*
3)     /usr/sbin/xyz
now i have 4 scripts files preinstall/preupgrade and postinstall/postupgrade these needed to run while installing
need to change background image
most imp is i will add a file 'extra.txt' in "installer.pkg/Contents/Resources/" so I need tht Resources dir to be there
so my postinstall script can find it, i will add the extra.txt file after creating the installer.
As far now i m using packagemaker for it and the only problem is i dnt have background image and only 2 scripts running
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker --root Archive/ --id com.yyyy.xxx --info ../Constants/Info.plist --version 1.1 --title 'Demo Installer' --resources Resources -g 10.4 -o ../installer.pkg
in above command Resources dir have my scripts all 4 but not all working
Any help will be appriciated
Thanks & Regards

Hi,
First you need to create a directory in database.
See below example
SQL> CREATE DIRECTORY test_dir AS 'D:\Test';
Directory created.And then I've created one more procedure called main in your package. Which will capture the start time and end time in a file called output_file.txt
create or replace package pkg_purge_common as
  procedure purge_navns;
  procedure main;
end pkg_purge_common;
create or replace package body pkg_purge_common as
procedure purge_navns as
begin
delete from avn_msg where avn_feed_id in (select avn_feed_id from avn_feed where created_dt < trunc(sysdate) - 31); delete from avn_feed where created_dt < trunc(sysdate) - 31; commit;
end purge_navns;
procedure main
is
    f1 utl_file.file_type;
begin
  f1:= utl_file.fopen('test_dir','output_file.txt','w'); 
-- start time
utl_file.put_line(f1,to_char(sysdate,'dd-mon-yyyy hh24:mi:ss'));
--  call the procedure
    purge_navns;
-- end time
  utl_file.put_line(f1,to_char(sysdate,'dd-mon-yyyy hh24:mi:ss'));
end;
end pkg_purge_common;
/

Similar Messages

  • ARD .pkg installation and Command Failed message

    Hello. I just installed ARDv3 on my G5 as the admin Mac for ARD. I have created a .pkg (with Package Maker) to install on another client computer via ARD. I am up to date for ARD and the ARD client. I've sent three different packages to be installed on the same client computer via ARD; two were already created from reputable software mfgs. and one I created myself. Everytime I try to get one of them to install (under Manage > Install Packages command within ARD) I get the message that the Command Failed. How do I determine what is causing this message? I was trying to send the different .pkgs to see if I was incorrectly creating a .pkg and thus the failure. But to have two other different .pkgs fail also, makes me wonder if something is wrong in my ARD setup. If someone has encountered similar problems, I'd appreciate your feedback.

    Since you have / encrypted, its decryption must happen from the initramfs (after the kernel is loaded, but before initscripts kick in). So you need to make sure that the appropriate kernel modules are being included there - so check your /etc/mkinitcpio.conf. I would think that the crypto modules are autodetected, but maybe not. Try including them in the MODULES field in mkinitcpio.conf, regenerating it 'sudo mkinitcpio -p kernel26' and rebooting.
    EDIT: The error message looks like that your processor doesn't support this extra extension (googling showed up that this message is emitted in this case); so perhaps mkinitcpio included the incorrect aes module into the initramfs.
    Last edited by bender02 (2009-08-04 11:12:01)

  • Installation package

    Hi,
    i would like to create an installation package from my java project. Is there any java tool for this? I would like to create cross-platform installation package, So a package which could be installed via Java runtime.?
    thanks
    sebastien

    take a look at izpack.org

  • How do I download Mountain Lion to create a bootable installer USB for an old macbook

    I am trying to reformat an old macbook, and it says it is unable to unmount the drive when I attempt to erase the disc. I've been told I need to create a bootable installer and try using disc utility from the installer to erase it, but can't find out how to download any OS X installer other than Yosemite (which isn't suitable as the macbook is too old).

    If it is too old to run Yosemite, Mountain Lion won't run either. The hardware requirements are the same for both versions of the OS. You might be able to use Lion, but from my experience with Lion, I'd stay with Snow Leopard.
    Computer Compatibility - Lion                       Lion
    Disk Unmount Using Terminal
    Disk Unmount Using Terminal (2)

  • Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • When I try to install iTunes 10.5, it says, "There is a problem with this Windows Installer package.  A program run as part of the setup did not finish as expected.  Contact your support personnel or package vendor."  I have Windows XP and I need help.

    5, it says, "There is a problem with this Windows Installer package.  A program run as part of the setup did not finish as expected.  Contact your support personnel or package vendor."  I have Windows XP and I need help.

    After reading all these posts, one by one did not resolve my problem until I got the very end.  Regardless of what step would resolve your problem, these are the steps I would recomment to everyone for a what seems to be a safe and fool-proof upgrade to iTunes 10.5.
    1. Stand alone upgrade to the latest Quicktime version
    2. Go to control panel and "change" then select repair to the following applications in the order specified by the post on Oct 27. (Notice I skipped Quicktime because it had been upgrade manually,and Bonjour did not have a "repair" option)
    iTunes; Apple Software Update: Mobile Device Support; Apple Applications Support
    Some of these applications may not appear if they do not apply to your configuration (no iPhone, or no iPad, or other apple devices).
    Once all updated, I did not need to restart nor launch any applications, I simply went straight into the 10.5 upgrade, and where it normally got stuck, this time the installation continued for a while longer until it completed successfully.
    Great work everyone who contributed!  Thank you very much!

  • I am trying to update my iPhone software but to do so I needed to update iTunes.  When I try to do that, I keep getting this error message" "There is a problem with this Windows Installer Package. A program required for this install to complete could not

    I am trying to update my iPhone software but to do so I needed to update iTunes.  When I try to do that, I keep getting this error message" "There is a problem with this Windows Installer Package. A program required for this install to complete could not....

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • How to run Adobe AIR installer package created in windows into Linux

    Hi,
    we have created an Adobe AIR Installer package in Windows XP, Can any one help me how to run the Installer package in Linux that is created in Windows.
    Please, any help is Appreciable.

    Please any help for the above query is appreciable.

  • Hi,  My IMac Superdrive has gone bust and i need to re-install Adobe CS5.5 design premium middle east version.   I have the original version DVD with me.   But i am unable to install.   Can i create an USB installation drive from the DVD or can you please

    Hi,  My IMac Superdrive has gone bust and i need to re-install Adobe CS5.5 design premium middle east version.   I have the original version DVD with me.   But i am unable to install.   Can i create an USB installation drive from the DVD or can you please send me a link to download the Middle east version of Adobe CS 5.5 design premium.   After downloading i can enter the product key which i had bought.  appreciate if anybody can offer a solution urgently.   All my jobs are held up. thanks

    Download CS5.5 products
    Mylenium

  • Exchange 2010 Rollup 2 SP3 update cannot find installation package exchangeserver.msi file on SBS 2011... NEED HELP!!!

    Hello,
    I am running a windows SBS 2011 standard system and there was currently an update for Exchange 2010 Rollup 2 Service Pack 3 and it keeps failing.  It says that it cannot find the installation package (exchangeserver.msi) and it is looking for it
    in E:\Software\Exchange2010-SP3-x64\ folder but there never was this folder.  There is only an Exchange2010-SP3-x64.exe file.
    The only exchangeserver.msi file that I find on the server any where is in C:\ProgramFiles\Windows Small Business Server\Bin\CMPNENTS\EXCHANGE14_SP1 but it won't accept it (says not authorized for this update or something alike).
    Please help.  It is currently causing issues with email.  Some of the features are not working because it says exchange is currently under maintenance.
    Any suggestions would be greatly appreciated.  Thank you.

    Susan you are correct:  After I installed Exchange 2010 SP3, I deleted the msi just to "clean up' my hard disk...  While trying to install Rollup 2 for SP3, the installer is trying to find it.  I downloaded the installer, used 7-zip to get
    the msi and I pointed the installer to it when asked.
    The installation failed 3 times... 
    NOTE: I was using WSUS to install the Rollup:  I downloaded the Rollup installer and I executed:  I could see where the installer was hanging up!  First it asked me to stop an SBS service and something else (sorry I do not remember), I stopped
    the services and installation continued.  Then it asked me for more files from the SP3 installation which I found on the installation folder that I created with 7-zip.  I copied to the path that the installer was looking and installation finished
    (finally!)...
    NOTE 2:  If you have any firewall appliance that denies Internet access to un-authenticated requests, you better turn that rule off because the installer accesses the internet (not sure why - probably for Dot Net assemblies)...
    Susan THANKS for all your help to the community!  You have helped so much! 
    All the Best
    Constantine

  • How to create an installable package

    Hi all
    we have developed some ABAP objects on R/3 4.6c.Is there a way by which i can convert my developments in to a installable package(copy it on a CD) much similar to the support packages supplied by SAP to its customers.Since the target system will be any R/3 system, how is it possible to convert it in to a patch like package.
    please enlight me how i should proceed..
    Thanks,
    Bala

    Put them into a transport, release the transport - but don't import it anywhere.
    The cofiles that the transport creates will be on your SAP box in the SAPTRANS directory.  Copy these to your CD and you can install them as a transport from another system by importing through STMS.
    Hope this helps.
    (Alternatively you can use a download utility - like the ones from Dalestech - to download all of your objects and load them into the target system).
    Kind Regards
    Rosie Brent

  • What software usual is used to create installation package for client appli

    What software usual is used to create installation package for client application?

    >
    I mean the software that installed my application on client's machine. E.g. by click button Next, Next ...>Try clicking some of the 'buttons'(1) on the [webstart API examples|http://pscode.org/jws/api.html] page.
    (1) They are not HTML buttons, but links stylde to look vaguely like buttons. HTML buttons can be used just as easily, see [Launch JNLP App - launch style|http://pscode.org/jws/launch.html] for an overview of different launch styles.

  • Cant install ITunes or Quick Time it says a file is missing that the installer package needs

    Each time I try to install ITunes of Quick Time on my Windows XP machine with 2 gig of RAM and running service pack 3 it fails and says that a file the installer package needs is missing. How can I resolve this issue?

    Your operating system is fine. No need to worry about that.
    it fails and says that a file the installer package needs is missing.
    What's the precise text of that message, please? (There's a few different ones I can think of that you might be getting.)

  • I need help on creating a silent installer/ finding out parameters

    On Adobe Reader, under preferences, I need to create an AIP/Silent installer/Parameter to make PDF/A View Mode drop-down box to read documents as "never" upon installation. I will be running an update on Adobe Reader and will need to be passing these updates through a software deployment and distribution tool known as WPKG. When the application installs and launches it must automatically have these preferences without the end-user needing to do these corrections. Anyone familiar with the command line needed? Can anyone help? I don't have much experience with the program.

    I suggest you put your project on hold for a little while,
    and get and read the appropriate chapters in
    Web Application Construction Kit by Ben Forta. You can learn
    more about it here -
    http://www.forta.com/books/0321223675/.
    Once you have the concepts down, you will have a much more focused
    idea about what to do.

  • Do I need all these Installer packages?

    I just found that in my Library folder, and within its Receipts folder, I have all of the installer packages for past and current applications.
    Well, I've either downloaded my updates and installed them, or I have my original disks should I need to reinstall them later. SO, can I safely delete the contents of the Receipts folder of these installer packages to free up some precious hard disk space?
    Thanks to all in advance?

    I believe that Software Update looks at the receipts folder in order to know what you have, and therefore what you need. If you empty it out, Software Update is going to think you need everything.
    My receipts folder is about 400MB. I hope you're not that close to the end of your disk space where 400MB would make a big difference. If so, you may have bigger problems to deal with.
    Message was edited by: GeneTucc

Maybe you are looking for

  • Need help to deploy IP Multicast in private network

    Hi, I am currently working on a project where there is an urgent requirement to deliver an IP multicast solution. The network itself is fairly simple. IP Cameras as connected to pairs of Catalyst 2960 switches in 'access nodes'. There are 8 cameras p

  • The Document Enabled Extended Features in Adobe Reader.

    Hi Experts, We are facing a problem while opening a PDF form that is editable. get below error message: The Document Enabled Extended Features in Adobe Reader,  The document has been changed since it was created & use of extended features is no longe

  • Field name referenced by field symbol

    Hi, I would like to get the field name referenced by a field symbol at rutime. In the code below, besides the type and length of the field, I also would like to get the field names 'AA', 'BB' and 'CC' . Can you please tell me how I can get this infor

  • WLS 7 SP2 Webservices

    I am maintaing a wls 7 sp2 webservice app. The code was built in 2003 and I need to modify a webservice. The application was built by jwsCompile. I installed wls 7 sp2, and tried to compile the app now using jwscompile but when I deployed the ear fil

  • I keep getting "pkg-config: could not find or read package"

    trying to install firefox-branded using yaourt [anthony@arch yaourt]$ yaourt -S firefox-branded ==> Downloading firefox-branded PKGBUILD from AUR... bsdtar: Removing leading '/' from member names x firefox-safe.desktop x browser-defaulturls.patch x P