in reply to Re^3: Cava Packager quick question
in thread Cava Packager quick question

in my script I have '--install' option and the code determines if we are .exe or .pl and then writes to Registry '$0' or 'wperl $0'

Of course it is not a problem, but now it is less flexible because I had to define the application's name in configuration file.

Replies are listed 'Best First'.
Re^5: Cava Packager quick question
by Anonymous Monk on Mar 26, 2010 at 08:16 UTC
    Of course it is not a problem, but now it is less flexible because I had to define the application's name in configuration file.

    1) If $0 is wrong, its a bug/deficiency in cava packager, submit a bug report

    2) usually registry entries are handled by installer programs

    3) This is a flexible workaround

    $ cat myregular.pl use MySuperApp; MySuperApp->run; $ cat mypackedapp.pl BEGIN { use Cava::Pack; $0 = $Cava::Pack::EXEPATH; } use MySuperApp; MySuperApp->run;