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

If you create file yourapp.cmd containing

setlocal set path=; yourappX.exe endlocal

Note: The the renaming of the executable!

Then when the executable is run, the path will be set to null which will prevent it from looking other places for dll's. Depending on where perlapp expands the files, that should allow the embedded version of perl58.dll to be found.


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.

Replies are listed 'Best First'.
Re^2: How to make PerlApp NOT use perl58.dll when available
by JupiterCrash (Monk) on Apr 13, 2006 at 18:38 UTC
    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

      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