You are here

how to modify settings file?

3 posts / 0 new
Last post
Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
how to modify settings file?

I have a question:

JPEGView uses an ini file to store its settings. The new 1.0.17 version introduces new features which come with new ini entries. If the /Data folder shouldn't be touched, how do I update the ini file without overwriting it and thus deleting possible changes the user made?

I know that NSIS can write ini strings, but what about comments like

; Amount of local density correction of highlights
; Can be in [0, 1]
LDCDarkenHighlights=0.25

Thanks for your input.

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Local

Take your method from the local install. What does it do? Usually, the app itself assumes those extra values using the defaults so you don't have to do anything. Sometimes, the installer will update the file, in which case you can often use the logic or even the code from that.

PS - If it's for a dev test update, you can get away without doing it as dev tests often require settings to be deleted.

Sometimes, the impossible can become possible, if you're awesome!

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
it is

a dev test. I just wanted to know how to do it in the future...

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Log in or register to post comments