Hello,
here I have some own generated and protected pictures and fonts, which I use in a Windows application.
This application I will promote to other people.
Now it is a problem because this pictures and fonts are freely available in resources folder.
How I could protect or include these resources inside exe-file ?
Older versions of Xojo used to embed resources into the executable but that was changed to write out a separate resource folder.
You would have to build with an older version to get the functionality you require. Please note that if you are also building for Mac the resources are written out individually inside the Mac package and there is nothing you can do to prevent that.
Potential Solutions…
You could encrypt the important resources and get your code to read the encrypted files, decrypt them and keep the resources either in memory or write them out to a temporary area with random names.
Another solution is to store each file as a constant containing a base64 encoded of the file. Upon use, decodebase64 and save the file in a subfolder of Temp, for instance.
[quote=365024:@Joost Rongen]You could consider using a third party product like BoxedApp Packer.
It’s also promoted on the Xojjo website.[/quote]
seems a nice app but hey, come on ? $399 ???
I did this once where I had all resources already as base64 because they were loaded in a static webpage that had to be single file. A side effect is that the resources were not available, which worked a treat. It can be used for any resources, too. A nice side effect.
I’d recommend also obfuscating the base64 somewhat so it’s not searchable in the binary either using “strings”, which may be important depending on the sensitivity of what’s in there.