Embedded ini file i...
 
Notifications
Clear all

[Solved] Embedded ini file invalid

6 Posts
2 Users
1 Reactions
246 Views
(@hnash224)
Active Member Registered
Joined: 1 month ago
Posts: 3
Topic starter  

I'm trying to create an .exe with an embedded configuration as described in the manual, however after creating the .exe (success window pops up), when I run the .exe in a new directory it creates a new desktopinfo.ini file in the current directory and DesktopInfo doesn't appear as it should. This appears to be because the [options] section has been "corrupted" by a ZWNBSP character which is inserted at the beginning of the file and so it doesn't load the size/position/font global options.


   
Quote
(@hnash224)
Active Member Registered
Joined: 1 month ago
Posts: 3
Topic starter  

Just to add, if I remove the ZWNBSP character from the generated desktopinfo.ini and save it, DI then displays as expected.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1342
 

that is the unicode byte order marker.

does the new ini file it creates look like your custom ini?  does the config it uses when you run it appear to be the same as if you had never run the embed command?


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1342
 

try to save your custom ini as UTF8 without the BOM and then embed that.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1342
 

ignore all the above. I've found the bug. It will be fixed in the next release.


   
HNash224 reacted
ReplyQuote
(@hnash224)
Active Member Registered
Joined: 1 month ago
Posts: 3
Topic starter  

@glenn That's great, thanks!


   
ReplyQuote
Glenn's Page