Embedded ini file i...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Solved] Embedded ini file invalid

6 Posts
2 Users
1 Reactions
479 Views
(@hnash224)
Active Member Registered
Joined: 6 months 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: 6 months 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: 7 years ago
Posts: 1507
 

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: 7 years ago
Posts: 1507
 

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


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1507
 

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: 6 months ago
Posts: 3
Topic starter  

@glenn That's great, thanks!


   
ReplyQuote
Glenn's Page