in reply to Re: How to make PerlApp NOT use perl58.dll when available
in thread How to make PerlApp NOT use perl58.dll when available

BrowserUk,

I don't understand, but I like the track that you're on. Exactly, I want it to use the embedded dll before any other.

What is yourapp.cmd and where do you mean for the example code that you've written to be placed? Note that I have been building the exe using the PerlApp gui, if that makes any difference.

Thanks again.

Matt
  • Comment on Re^2: How to make PerlApp NOT use perl58.dll when available

Replies are listed 'Best First'.
Re^3: How to make PerlApp NOT use perl58.dll when available
by BrowserUk (Patriarch) on Apr 13, 2006 at 20:04 UTC

    If your executable would normally be called foo.exe, then instead name it fooX.exe and create a foo.cmd as above (except substitute fooX.exe for yourappX.exe). Distribute both and install them in the same directory.

    When the user types foo, foo.cmd will run; it sets the path to null before running fooX.exe.

    You may have to tweak the strategy by setting the path commensurate with whatever is required by PerlApp. I've never used that so I cannot advise.

    The idea is to prevent the OS searching the path and locatating the wrong copy of the dll. Using a .cmd file is just a simple way of applying the strategy.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      This should work perfectly.
      (I was confused at first, because I wasn't familiar with the cmd extension.)

      Thanks so much for the help.

      Matt