Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DLL appearing only after .EXE execution in temp folder, how does it works ?

DLL appearing only after .EXE execution in temp folder, how does it works ?

Scheduled Pinned Locked Moved C / C++ / MFC
helphtmlcomquestionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GuimaSun
    wrote on last edited by
    #1

    Hi, I'm facing a situation that I've never seen before regarding .exe and .dll files. The app a.exe uses a DLL x.dll. The x.dll (not a COM DLL, but a regular one) can't be found in the computer hard drive. After executing a.exe, the x.dll is expanded to the temp folder, to a path like this: C:\DOCUME~1\COMPANY\LOCALS~1\Temp\tmpABT\07333f01-60fa-473c-9581-344d009b639d\x.dll This DLL and path exists only during a.exe execution. In the a.exe directory, there's a .CAB with a lot of DLLs, but x.dll is not inside of it. The problem is that I have x.dll source code and I wanted to change it's version (used by a.exe). Any tip on where does the DLL come from ? Thanks for any help!

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    R 1 Reply Last reply
    0
    • G GuimaSun

      Hi, I'm facing a situation that I've never seen before regarding .exe and .dll files. The app a.exe uses a DLL x.dll. The x.dll (not a COM DLL, but a regular one) can't be found in the computer hard drive. After executing a.exe, the x.dll is expanded to the temp folder, to a path like this: C:\DOCUME~1\COMPANY\LOCALS~1\Temp\tmpABT\07333f01-60fa-473c-9581-344d009b639d\x.dll This DLL and path exists only during a.exe execution. In the a.exe directory, there's a .CAB with a lot of DLLs, but x.dll is not inside of it. The problem is that I have x.dll source code and I wanted to change it's version (used by a.exe). Any tip on where does the DLL come from ? Thanks for any help!

      GuimaSun www.nexsun.com.br NEXSUN TechZone

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Probably the executable has the x.DLL file stored as a resource within itself and is writing to the hard disk before usage? However, you could use FileMon from SysInternals[^] to see who is creating the file!

      “Follow your bliss.” – Joseph Campbell

      G 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        Probably the executable has the x.DLL file stored as a resource within itself and is writing to the hard disk before usage? However, you could use FileMon from SysInternals[^] to see who is creating the file!

        “Follow your bliss.” – Joseph Campbell

        G Offline
        G Offline
        GuimaSun
        wrote on last edited by
        #3

        Yes, it has to be something like this. I found something using process explorer, after choosing some menu item, the .exe loads an .msi file (yes, the .msi file is listed as loaded as the dlls are), and inside this .msi the is the x.dll. Now I can use an .msi editor to change the dll inside of it. Thanks Rajesh.

        GuimaSun www.nexsun.com.br NEXSUN TechZone

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups