{"id":6763,"date":"2021-05-21T14:00:43","date_gmt":"2021-05-21T14:00:43","guid":{"rendered":"https:\/\/www.samlogic.net\/blog\/?p=6763"},"modified":"2021-05-22T11:42:35","modified_gmt":"2021-05-22T11:42:35","slug":"faq-about-destination-folders-for-exe-dll-ocx-files-in-visual-installer","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2021\/05\/faq-about-destination-folders-for-exe-dll-ocx-files-in-visual-installer\/","title":{"rendered":"FAQ about destination folders for EXE, DLL &#038; OCX files in Visual Installer"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/blog\/images\/icons\/faq-symbol-for-blog.png\" alt=\"FAQ\" border=\"0\" width=\"140\">There are some common questions about destination folders for binary files (EXE, DLL, OCX files etc.) in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer<\/a> that we sometimes get asked from our customers. You will find the questions &#038; answers below, and if you are new to Visual Installer we recommend you to read them:<\/p>\n<p><span style=\"color: #000080; font-size: 20px;\"><strong>Questions and answers:<\/strong><\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/separator\/green-line-separator-w700.png\" border=\"0\"><br \/>\n<span style=\"color: #000080; font-size: 20px;\"><strong>#1<\/strong><\/span><br \/>\n<span style=\"color: #008000;\"><strong>Q:<\/strong> <em>Should I use the <strong>C:\\Program Files<\/strong> folder or the <strong>C:\\Program Files (x86)<\/strong> folder as a destination for my application file?<\/em><\/span><\/p>\n<p><strong>A:<\/strong> It depends of the bitness of your application. 32 bit applications should be installed to the <strong>Program Files (x86)<\/strong> folder and 64 bit applications to the <strong>Program Files<\/strong> folder.<\/p>\n<p>However, Visual Installer will choose correct folder automatically for you, if you specify your application&#8217;s bitness in the <strong>32\/64 bit<\/strong> tab in the <strong>Setup options<\/strong> dialog box in Visual Installer.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor-dialogbox-setup-options--32-64-bit--with-arrow.png\" alt=\"The Setup options dialog box\" border=\"0\"><\/p>\n<p>You can open this dialog box by choosing the <strong>Setup options<\/strong> menu item in the <strong>Special<\/strong> menu.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/separator\/green-line-separator-w700.png\" border=\"0\"><br \/>\n<span style=\"color: #000080; font-size: 20px;\"><strong>#2<\/strong><\/span><br \/>\n<span style=\"color: #008000;\"><strong>Q:<\/strong> <em>How do I do in Visual Installer to install a file to the program files folder?<\/em><\/span><\/p>\n<p><strong>A:<\/strong> Installing a file to the program files folder (the <strong>Program Files<\/strong> or the <strong>Program Files (x86)<\/strong> folder) is easy done in Visual Installer, but you need to specify the settings for this in two steps:<\/p>\n<p><span style=\"color: #808080; font-size: 20px;\"><strong>Step one:<\/strong><\/span><br \/>\n<strong>1.<\/strong> Open the <strong>File list<\/strong> tab in Visual Installer\u2019s editor.<br \/>\n<strong>2.<\/strong> Click on the <strong>[\u2026]<\/strong> button to the right of the <strong>Main folder<\/strong> text box in the tab (it is located in the upper right part of the editor window).<br \/>\n<strong>3.<\/strong> Select the <strong>%PROGRAMFILES<\/strong> option in the dialog box that is shown (see the picture below).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor-dialogbox-main-folder-variable-suggestions--programfiles.png\" alt=\"The Main Folder Variable Suggestions dialog box\" border=\"0\"><\/p>\n<p><strong>4.<\/strong> Click the <strong>Select<\/strong> button.<br \/>\n<strong>5.<\/strong> Add (enter) a sub folder name after the <em>%PROGRAMFILES<\/em> variable in the <strong>Main folder<\/strong> text box. Below is an example:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor-filelist-tab--main-folder--programfiles.png\" alt=\"Main folder\" border=\"0\"><\/p>\n<p>You have now specified the main destination folder for your installation. In the next step we will specify the destination folder for the specific file that you want to install.<\/p>\n<p><span style=\"color: #808080; font-size: 20px;\"><strong>Step two:<\/strong><\/span><br \/>\n<strong>1.<\/strong> Choose the <strong>List \u2013 Add \u2013 Add files<\/strong> menu item in Visual Installer&#8217;s editor.<br \/>\n<strong>2.<\/strong> Select your file in the <strong>Add files<\/strong> dialog box.<br \/>\n<strong>3.<\/strong> Confirm that the text after the <strong>Folder<\/strong> text box is <em>%DESTDIR<\/em> in the following dialog box:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor-dialogbox-destination-folder--destdir.png\" alt=\"The Destination folder dialog box (1)\" border=\"0\"><\/p>\n<p><strong>4.<\/strong> Click the <strong>OK<\/strong> button. <\/p>\n<p>Now this file will be installed to the <strong>Program Files<\/strong> or the <strong>Program Files (x86)<\/strong> folder during the installation. If your application is a 32 bit application, the <strong>Program Files (x86)<\/strong> folder will be used as a destination. You can read more in <a href=\"https:\/\/www.samlogic.net\/blog\/2013\/06\/visual-installer-how-do-i-install-files-to-program-files-folder\/\">this blog post<\/a> and in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/tips\/tips-pages\/install-64-bit-program\/install-64-bit-program.htm\" rel=\"noopener noreferrer\" target=\"_blank\">this tip<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/separator\/green-line-separator-w700.png\" border=\"0\"><br \/>\n<span style=\"color: #000080; font-size: 20px;\"><strong>#3<\/strong><\/span><br \/>\n<span style=\"color: #008000;\"><strong>Q:<\/strong> <em>How do I install a file to the system folder?<\/em><\/span><\/p>\n<p><strong>A:<\/strong> If you have for example a DLL or OCX file that need to be installed to Windows&#8217; system folder it can be done in Visual Installer. Follow the instructions below to do it:<\/p>\n<p><strong>1.<\/strong> Open the <strong>File list<\/strong> tab in Visual Installer\u2019s editor.<br \/>\n<strong>2.<\/strong> Choose the <strong>List \u2013 Add \u2013 Add files<\/strong> menu item in Visual Installer&#8217;s editor.<br \/>\n<strong>3.<\/strong> Select your file in the <strong>Add files<\/strong> dialog box.<br \/>\n<strong>4.<\/strong> Select the <strong>System directory<\/strong> option in the following dialog box:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-editor-dialogbox-destination-folder--sysdir.png\" alt=\"The Destination folder dialog box (2)\" border=\"0\"><\/p>\n<p><strong>5.<\/strong> Click the <strong>OK<\/strong> button.<\/p>\n<p>Now this file will be installed to Window&#8217;s system folder during the installation. The exact folder that is used depends of your installation project&#8217;s bitness (see question 1 above).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/separator\/green-line-separator-w700.png\" border=\"0\"><br \/>\n<span style=\"color: #000080; font-size: 20px;\"><strong>#4<\/strong><\/span><br \/>\n<span style=\"color: #008000;\"><strong>Q:<\/strong> <em>In some dialog boxes and other places in Visual Installer&#8217;s editor I see words like %PROGRAMFILES, %DESTDIR and %SYSDIR etc. What are they?<\/em><\/span><\/p>\n<p><strong>A:<\/strong> <em>%PROGRAMFILES<\/em>, <em>%DESTDIR<\/em> and <em>%SYSDIR<\/em> etc. are called variables. The name of the variable will be replaced with an actual text during the installation. <\/p>\n<p>Variables are used when the actual text is not known, until the installation starts. Variables are usually used as a place holder for folder paths. For example the <em>%PROGRAMFILES<\/em> variable is a place holder for the program files folder in the system. When the installation starts, <em>%PROGRAMFILES<\/em> is replaced with the actual folder path. For example with <strong>C:\\Program Files<\/strong>.<\/p>\n<p>You can read more about variables in <a href=\"https:\/\/www.samlogic.net\/blog\/2016\/07\/variables-in-visual-installer\/\" rel=\"noopener noreferrer\">this blog post<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/separator\/green-line-separator-w700.png\" border=\"0\"><br \/>\n<span style=\"color: #000080; font-size: 20px;\"><strong>#5<\/strong><\/span><br \/>\n<span style=\"color: #008000;\"><strong>Q:<\/strong> <em>I have an international application. The name of the program files folder is different in different countries \/ languages. Can Visual Installer handle this?<\/em><\/span><\/p>\n<p><strong>A:<\/strong> Yes. Visual Installer will find the correct path to the program files folder regardless of country \/ language or version of Windows. You can read more in <a href=\"https:\/\/www.samlogic.net\/blog\/2012\/09\/install-files-correct-folder-visual-installer\/\">this blog post<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/separator\/green-line-separator-w700.png\" border=\"0\"><\/p>\n<p><span style=\"color: #000080; font-size: 20px;\"><strong>More information<\/strong><\/span><br \/>\n<img decoding=\"async\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/pad\/icons\/visual_installer.gif\" alt=\"\" border=\"0\">If you want more information about the settings in the dialog boxes above, you can press the <strong>F1<\/strong> button on your keyboard when the dialog box is open. We recommend you also to take a look on Visual Installer&#8217;s tips and tricks pages:<\/p>\n<p><span style=\"color: #ff0000;\">&gt;<\/span> <a href=\"https:\/\/www.samlogic.net\/visual-installer\/tips\/index-tips-tricks-visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Tips &amp; tricks for SamLogic Visual Installer<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are some common questions about destination folders for binary files (EXE, DLL, OCX files etc.) in Visual Installer that we sometimes get asked from our customers. You will find the questions &#038; answers below, and if you are new to Visual Installer we recommend you to read them: Questions and answers: #1 Q: Should &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2021\/05\/faq-about-destination-folders-for-exe-dll-ocx-files-in-visual-installer\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;FAQ about destination folders for EXE, DLL &#038; OCX files in 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":[16,15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/6763"}],"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=6763"}],"version-history":[{"count":120,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/6763\/revisions"}],"predecessor-version":[{"id":6885,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/6763\/revisions\/6885"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=6763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=6763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=6763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}