Extract Binary Data - Only works in the same folder where the embedded file was.

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello

    I have some problems extracting embedded binary data.

    I select this exe file in the data elements dialog

    "C:\Users\User\Desktop\Folder\Test.exe"

    I then extract "C:\Users\User\Desktop\Folder\Test.exe" and then set the string to BinFileTempName$("C:\Users\User\Desktop\Folder\Test.exe")

    Then I build the application inside "C:\Users\User\Desktop\Folder\"
    Let call this app main.exe

    Now I launch main.exe inside the folder "C:\Users\User\Desktop\Folder\"

    The test.exe successfully extracts inside appdata/local/temp with a tmp filename.

    I then copy/move the main.exe file to anywhere else other than "C:\Users\User\Desktop\Folder\" and then it no longer works.
    The Test.exe won't get extracted and BinFileTempName$("C:\Users\User\Desktop\Folder\Test.exe") only outputs "C:\Users\User\Desktop\Folder\Test.exe"

    What I am doing wrong?
    The main.exe will only extract Test.exe if it is in the same folder where Test.exe was when I built main.exe
    Even if I delete Test.exe from the folder "C:\Users\User\Desktop\Folder\", it will still extract it when I launch main.exe as long as main.exe is in the same folder where Test.exe was.

  • Thank you conceptgame

    I tried your example, and it worked without any problems.
    I suspected maybe having the file inside my user folder (I had it inside a folder on my desktop) which may have caused the problem.
    So I moved it to C:\ and then it all worked fine without any problems

    I then tried your example and changed "C:\dummy.exe" to "C:\Users\MyUserName\Desktop\Test\dummy.exe" and suddenly I am having the same problem again. It seems like having the file to be embedded being located inside your user folder is the problem.

    I'm gonna have the file to be embedded in the root of my C drive instead.

    Thank you for your help

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!