{"id":8247,"date":"2025-12-14T14:00:39","date_gmt":"2025-12-14T14:00:39","guid":{"rendered":"https:\/\/www.samlogic.net\/blog\/?p=8247"},"modified":"2026-01-04T18:17:00","modified_gmt":"2026-01-04T18:17:00","slug":"how-to-create-an-ini-file-with-settings-in-the-main-destination-folder-visual-installer","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2025\/12\/how-to-create-an-ini-file-with-settings-in-the-main-destination-folder-visual-installer\/","title":{"rendered":"How to create an INI file with settings in the main destination folder (Visual Installer)"},"content":{"rendered":"<p>With <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" rel=\"noopener\" target=\"_blank\"><strong>Visual Installer<\/strong><\/a> you can set initial settings for your application in different ways. One simple method is to store the settings in an <a href=\"https:\/\/en.wikipedia.org\/wiki\/INI_file\" rel=\"noopener\" target=\"_blank\">INI file<\/a>. INI files have existed since the first Windows version, and are still used today because they are simple to use and support all basic features for storage of settings that are needed.<\/p>\n<p><img decoding=\"async\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/pad\/icons\/visual_installer.gif\" border=\"0\" alt=\"\">In Visual Installer&#8217;s editor there is a dedicated tab that is used to handle data to INI files. The name of the tab is &#8220;<strong>INI files<\/strong>&#8221; and in the tab there are four buttons:<\/p>\n<p><strong>New file<\/strong> : Creates a <em>new file<\/em>.<br \/>\n<strong>Add section<\/strong> : Adds a <em>section<\/em> to the INI file.<br \/>\n<strong>Add value<\/strong> : Adds a <em>value name<\/em> and a <em>value<\/em> (for example a text string) to the INI file.<br \/>\n<strong>Variables<\/strong> : Shows a <em>list of variables<\/em> that can be inserted in the INI file.<\/p>\n<p>To add\/create a new INI file in your Visual Installer project, follow the steps below:<\/p>\n<p><span style=\"color: #000000; font-size: 19px;\"><strong>Step by step &#8211; How to add\/create an INI file in your Visual Installer project<\/strong><\/span><\/p>\n<p><strong>1.<\/strong> Open the &#8220;<strong>INI files<\/strong>&#8221; tab in Visual Installer&#8217;s editor.<br \/>\n<strong>2.<\/strong> Click the <strong>New file<\/strong> button in the &#8220;<strong>INI files<\/strong>&#8221; tab. The button is located in the bottom left.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor--ini-file--buttons--with-cursor.png\" border=\"0\" width=\"660\" height=\"148\" alt=\"The 'INI file' tab\"><\/p>\n<p><strong>3.<\/strong> Enter the filename of the INI file in the dialog box that is shown. E.g., &#8220;<em>MySettings.ini<\/em>&#8220;.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor--ini-files--add-new-ini-file.png\" border=\"0\" width=\"456\" height=\"141\" alt=\"Create new INI file\"><\/p>\n<p><strong>4.<\/strong> Click <strong>OK<\/strong>.<br \/>\n<strong>5.<\/strong> A message box with a question is now shown, with the following text:<br \/>\n&#8220;<em>Do you want the INI file to be created in the main destination folder of the installation?<\/em>&#8221;<br \/>\n<strong>6.<\/strong> Answer <strong>Yes<\/strong>.<br \/>\n<strong>7.<\/strong> Now click the <strong>Add section<\/strong> button in the &#8220;<strong>INI files<\/strong>&#8221; tab.<br \/>\n<strong>8.<\/strong> Enter a section name. For example: &#8220;<em>Directories<\/em>&#8220;.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor--ini-files--add-section.png\" border=\"0\" width=\"456\" height=\"141\" alt=\"Add section to INI file\"><\/p>\n<p><strong>9.<\/strong> Click <strong>OK<\/strong>.<br \/>\n<strong>10.<\/strong> Now click the <strong>Add value<\/strong> button in the &#8220;<strong>INI files<\/strong>&#8221; tab.<br \/>\n<strong>11.<\/strong> Enter a value name and a value in the dialog box that is shown. For example:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor--ini-files--add-value.png\" border=\"0\" width=\"458\" height=\"197\" alt=\"Add value to INI file\"><\/p>\n<p><strong>12.<\/strong> Click <strong>OK<\/strong>.<br \/>\n<strong>13.<\/strong> The result, that is shown in the &#8220;<strong>INI files<\/strong>&#8221; tab,  will look something like this:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor--ini-file--example.png\" border=\"0\" width=\"555\" height=\"154\" alt=\"INI file - Example\"><\/p>\n<p>You have now created an INI file with some contents for your installation project. The INI file will be created in the main destination folder during the installation and the variables used in the INI file will be replaced with actual values when the INI file is created.<\/p>\n<p><em>%DESTDIR that is used above is a variable that will be replaced with the installation&#8217;s main destination folder path during the installation. You can read more about %DESTDIR <a href=\"https:\/\/www.samlogic.net\/blog\/2016\/07\/variables-in-visual-installer\/\">here<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Visual Installer you can set initial settings for your application in different ways. One simple method is to store the settings in an INI file. INI files have existed since the first Windows version, and are still used today because they are simple to use and support all basic features for storage of settings &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2025\/12\/how-to-create-an-ini-file-with-settings-in-the-main-destination-folder-visual-installer\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to create an INI file with settings in the main destination folder (Visual Installer)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/8247"}],"collection":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/comments?post=8247"}],"version-history":[{"count":60,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/8247\/revisions"}],"predecessor-version":[{"id":8307,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/8247\/revisions\/8307"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=8247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=8247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=8247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}