# How to set the .ini file's entries beofre build?

**URL:** <https://discourse.slicer.org/t/how-to-set-the-ini-files-entries-beofre-build/45078>\
**Category:** Development\
**Tags:** build, ini, settings\
**Created:** [November 14, 2025, 10:21am UTC](https://discourse.slicer.org/t/how-to-set-the-ini-files-entries-beofre-build/45078 "2025-11-14T10:21:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Wayne](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/victor_wayne/32/80778_2.png) [@Victor\_Wayne](https://discourse.slicer.org/u/Victor_Wayne)\
**Post date:** [November 14, 2025, 10:21am UTC](https://discourse.slicer.org/t/how-to-set-the-ini-files-entries-beofre-build/45078/1 "2025-11-14T10:21:17Z")

</div>

Hello,

I am currently using `slicer.app.slicerUserSettingsFilePath()` function to get the .ini file path when slicer is running and setting some entries. For example I set NumberOfFilesToKeep entry in the logging section. My question is how can I make slicer set the default default settings entries when I build it? Do I need to edit the cmake files?

Any help will be appreciated.

Thanks in advance.
