in reply to Re: how to make pp-created exe read external config values
in thread how to make pp-created exe read external config values

PerlSvc::exe()

I can't figure out for the life of me how this is supposed to help me in what I need.

  • Comment on Re^2: how to make pp-created exe read external config values

Replies are listed 'Best First'.
Re^3: how to make pp-created exe read external config values
by holli (Abbot) on Jan 05, 2005 at 08:26 UTC
    That is a function that returns the pah to the .exe file.
      That is a function that returns the pah to the .exe file
      well, I already know the path to the exe file because I put the exe file there. My problem is that I want to now change something inside the exe file before making it into a Windows service. Except, the target computer on which the exe file resides does not have Perl (after all, that is why I made an exe file in the first place).

      In short, I need to know how I could change something inside the exe file created by pp before I convert it into a service.

        well, I already know the path to the exe file because I put the exe file there

        i am confused, i think your problem is the path to the config-file is hardcoded. so if you replace that hardcoded path with
        use File::Basename; ($exename, $exepath) = fileparse(PerlSvc::Exe()); Config::Simple->import_from("${exepath}foo.conf");
        there´s no need to change the exe-file. just keep the .conf besided the .exe