Thursday, November 5, 2009

Removing an INI entry from a Desktop Settings document doesn't remove it

I ran into an issue recently with the Custom Settings - Notes.ini feature of the Desktop Settings. If you add an INI entry and then later remove it, it is removed from the display field however the Notes clients still apply it. I tracked this down and the underlying fields in the settings document are not updated accordingly. The Notes client still uses these fields to apply the setting.

I had the INI parameter for PromptForLocation set to 0 in our policy. I wanted to remove it because one of our users wanted this enabled. Even after removing the entry from the policy the feature would continue to be disabled. I noticed the $PrefPromptForLocation field was still in the policy settings document and the AlwaysSetItems field still listed $PrefPromptForLocation. This was after I had removed the entry in the form. I created an agent to remove the entry from the AlwaysSetItems field but the Notes client continued to disable it. I ended up creating a brand new Desktop Settings document and applying it to the Policy to get rid of that setting.

It also looks like INI parameters are Enforced whether you check it or not. The INI parameter above wasn't enforced in the settings document but the Notes client continued to reset the value after the user changed it. All INI parameters are added to the AlwaysSetItems field.