{"id":4522,"date":"2016-10-25T12:00:22","date_gmt":"2016-10-25T11:00:22","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=4522"},"modified":"2019-07-07T17:52:36","modified_gmt":"2019-07-07T17:52:36","slug":"how-to-set-file-copy-options-in-visual-installer","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2016\/10\/how-to-set-file-copy-options-in-visual-installer\/","title":{"rendered":"How to set file copy options in Visual Installer"},"content":{"rendered":"<p>If you right-click over a file in the <strong>File list<\/strong> tab in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer&#8217;s<\/a> editor, a local menu is opened. In the menu there is an option with the name <strong>File copy options<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-menu-file-copy-options.png\" alt=\"Menu - File copy options\" border=\"0\"><\/p>\n<p>If you click on this menu item, a dialog box with the title <strong>Copy options for file<\/strong> is shown. The dialog box look like:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/vi-dialogbox-file-copy-options.png\" alt=\"Dialog box - Copy options for file\" border=\"0\"><\/p>\n<p>This dialog box is used to set various copy options for files that are copied\/installed during an installation. You can for example decide if a version check must occur before the installation, if a file must be registered, if the file should be write-protected after installation etc. Below are all options in the <strong>Copy options for file<\/strong> dialog box described:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Check date and time<\/strong><br \/>\nChecks a file&#8217;s date and time before it is replaced. The file will only be installed if it is newer.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Check version<\/strong><br \/>\nChecks a file&#8217;s version number before it is replaced. The file will only be installed if it have a higher version number.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Never replace existing file<\/strong><br \/>\nIf a file with the same filename already exists in a specified folder, the file will not be installed.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Register file<\/strong><br \/>\nCheck this option if a file must be registered during the installation. Some components and DLL files require this.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Turn on write protection<\/strong><br \/>\nWrite protection will be turned on for the file after it has been installed in the hard disk.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Warn if file already exists<\/strong><br \/>\nAn information message box will be shown if the file already exists on the destination drive. The end-user can decide if the file should be replaced or not.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Make a backup if file already exists<\/strong><br \/>\nIf you check this option, a backup will be made of the file if it already exists in the destination folder. The backup file will get the filename extension &#8220;.BAK&#8221; and it will be placed in the same folder as the original file.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Replace also write protected file<\/strong><br \/>\nIf this option is checked, a file will be replaced also when it is write protected.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Handle the file if it is locked and in use<\/strong><br \/>\nSometimes a file can be in use during the setup process, and then it can not be replaced at that moment. If you check this option, the file will be marked in the system to be replaced next time the computer restarts (during the boot process).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Shared file<\/strong><br \/>\nIf a file is shared with other programs, you can check this option. This will prevent the file to be uninstalled by mistake.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Do not copy if same version<\/strong><br \/>\nIf this option is checked a file will not be copied if the version number of the source and destination files are equal.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/shared\/graybox-12x11.png\" alt=\"\" border=\"0\"> <strong>Never uninstall this file<\/strong><br \/>\nPrevent uninstallation of the file. If your project is uninstalled, the file will remain on the user&#8217;s hard disk.<\/p>\n<p>Instead of right-clicking over a file to open the local popup menu, you can also open the <strong>List<\/strong> menu and choose <strong>File copy options<\/strong> there. If you need to set copy options for more than one file at once, this is also possible. Just select the files in the file list, and choose the <strong>File copy options<\/strong> menu item (either from the <strong>List<\/strong> menu or from the local popup menu).<\/p>\n<p>In the <strong>Inst<\/strong> column in the file list you can see current copy settings for each file in the file list. More information is available in <a href=\"https:\/\/www.samlogic.net\/blog\/2016\/10\/the-inst-column-in-the-file-list-tab-in-visual-installer\/\">this blog post<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/separator\/gray-line-separator.gif\" border=\"0\" alt=\"\"><\/p>\n<p><strong>See also<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/blog\/2014\/05\/visual-installer-how-to-register-a-net-assembly\/\">Visual Installer: How to register a .NET assembly<\/a><br \/>\n<strong><span style=\"color: #ff0000;\">&gt;<\/span><\/strong> <a href=\"https:\/\/www.samlogic.net\/blog\/2013\/09\/visual-installer-2014-run-program-as-administrator\/\">Visual Installer: Run program as administrator<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you right-click over a file in the File list tab in Visual Installer&#8217;s editor, a local menu is opened. In the menu there is an option with the name File copy options. If you click on this menu item, a dialog box with the title Copy options for file is shown. The dialog box &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2016\/10\/how-to-set-file-copy-options-in-visual-installer\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to set file copy options in Visual Installer&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/4522"}],"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=4522"}],"version-history":[{"count":1,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/4522\/revisions"}],"predecessor-version":[{"id":6036,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/4522\/revisions\/6036"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=4522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=4522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=4522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}