{"id":393,"date":"2010-01-04T04:52:00","date_gmt":"2010-01-04T12:52:00","guid":{"rendered":"https:\/\/kb.terabyteunlimited.com\/kb-articles\/image-for-windows-v2-reverts-to-trial-mode-in-bartpe-ubcd4win-or-vistape-on-a-flash-drive-or-other-writable-drive\/"},"modified":"2021-09-10T23:05:33","modified_gmt":"2021-09-11T06:05:33","slug":"image-for-windows-v2-reverts-to-trial-mode-in-bartpe-ubcd4win-or-vistape-on-a-flash-drive-or-other-writable-drive","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/image-for-windows-v2-reverts-to-trial-mode-in-bartpe-ubcd4win-or-vistape-on-a-flash-drive-or-other-writable-drive\/","title":{"rendered":"Image for Windows V2 Reverts to Trial Mode in BartPE, UBCD4Win, or VistaPE on a Flash Drive (or other Writable Drive)"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>Important Note:<\/strong> BartPE is obsolete. The BartPE environment is based on Windows XP and may not build or function correctly on current\/newer systems. Additionally, the Bart PE Builder program and documentation is no longer available from its original source. Using <a href=\"https:\/\/www.terabyteunlimited.com\/howto\/tbwinre_tutorial\/\" target=\"_blank\" rel=\"noopener\">TBWinRE<\/a> or <a href=\"https:\/\/www.terabyteunlimited.com\/howto\/tbwinpe_tutorial\/\" target=\"_blank\" rel=\"noopener\">TBWinPE<\/a> is recommended.<\/span><\/p>\r\n<p><strong><span style=\"color: #ff5500;\">Problem:<\/span><\/strong><\/p>\r\n<p>A BartPE, UBCD4Win, or VistaPE build that includes <a href=\"https:\/\/www.terabyteunlimited.com\/image-for-windows\/\">Image for Windows<\/a> has been created on a writable drive (USB flash drive, hard drive, etc.). The first boot-up starts Image for Windows normally. Subsequent boot-ups cause Image for Windows to start in trial mode.<\/p>\r\n<p><strong><span style=\"color: #ff5500;\">Cause:<\/span><\/strong><\/p>\r\n<p>The <strong>imagew.ini<\/strong> file on the drive did not have the read-only attribute set.<\/p>\r\n<p>When Image for Windows successfully applies the registration information obtained from imagew.ini, it deletes the registration information from the file. (That is, it deletes the line in imagew.ini beginning with <em>Key=<\/em>.) Because of this, the next time the drive is booted and Image for Windows is run, the registration information is not found and the program starts in trial mode.<\/p>\r\n<p><strong><span style=\"color: #ff5500;\">Solution:<\/span><\/strong><\/p>\r\n<p>Before booting to the drive, make sure the <strong>imagew.ini<\/strong> file is marked as <strong>read-only<\/strong>.<\/p>\r\n<p>Starting with Image for Windows version 2.52, the BartPE\/VistaPE plugin program (<em>bartpe.exe<\/em>) includes a new option: <strong>Preserve key for writable media.<\/strong> If selected, this option marks the imagew.ini file as read-only when it creates the plugin files. However, the read-only attribute for the file is not always maintained by the PE builder when the file is copied.<\/p>\r\n<p><strong>Using BartPE:<\/strong> A standard BartPE build will correctly keep the read-only attribute for the file. Using <em>PeToUSB<\/em> to copy the build to a flash drive will also keep the attribute.<\/p>\r\n<p><strong>Using UBCD4Win:<\/strong> The read-only attribute will exist on the file in the build's <em>plugin&#92;ifwv2<\/em> folder. However, when the build is created and the file is copied into the <em>BartPE&#92;PROGRAMS&#92;ifwv2<\/em> folder, the attribute is lost. As a result, when the file is copied to the destination drive, it is not marked as read-only. However, if you manually set the read-only attribute on the file <u>before<\/u> running the <em>UBUSB.exe<\/em> program, it will retain the attribute when copied to the drive.<\/p>\r\n<p><strong>Using VistaPE:<\/strong> If you follow the general instructions for creating a VistaPE build that includes Image for Windows (<a href=\"https:\/\/www.terabyteunlimited.com\/howto\/vistape_tutorial\/\">found here<\/a>) and select the option to <strong>Run all programs from RAM<\/strong>, the read-only attribute is irrelevant. However, if you don't select that option, you will have the problem as WinBuilder does not keep the attribute when it copies the file.<\/p>\r\n<p><strong>Instructions:<\/strong><\/p>\r\n<ol>\r\n\t<li>After creating the build and copying the files to the flash drive (or other writable drive), browse to the <strong>imagew.ini<\/strong> file on the drive and manually set the read-only attribute. The location of the file varies by the build type:<br \/>\r\n<br \/>\r\n<ul type=\"disc\">\r\n\t<li><strong>BartPE &amp; UBCD4Win:<\/strong> <span style=\"color: #ff0000;\">&#92;Programs&#92;ifwv2&#92;imagew.ini<\/span><br \/>\r\n<br \/>\r\n<\/li>\r\n\t<li><strong>VistaPE:<\/strong> <span style=\"color: #ff0000;\">&#92;Programs&#92;IFW&#92;imagew.ini<\/span><br \/>\r\n<strong>Note:<\/strong> This only applies if you have <strong>not<\/strong> selected to have all programs run from RAM.<br \/>\r\n<br \/>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n\t<li>Right-click on the file, select <em>Properties<\/em> from the pop-up menu, check the <em>Read-only<\/em> attribute box, and then click <em>OK<\/em>.<\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n<hr \/>\r\n<p><strong><span style=\"color: #ff5500;\">Technical Notes:<\/span><\/strong><br \/>\r\n<br \/>\r\n<\/p>\r\n<p>If the registration information has already been removed from the imagew.ini file, you can add it back into the file and then set the read-only attribute. There is no need to recreate the build to fix the problem.<\/p>\r\n<p>The required format is as follows:<\/p>\r\n<p><span style=\"color: #ff0000;\">[License]\r\nKey=User Name XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX<\/span><\/p>\r\n<p>Where <strong>User Name<\/strong> and <strong>XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX<\/strong> represent your own registered user name and key.<\/p>","protected":false},"excerpt":{"rendered":"<p>Important Note: BartPE is obsolete. The BartPE environment is based on Windows XP and may not build or function correctly on current\/newer systems. Additionally, the Bart PE Builder program and documentation is no longer available from its original source. Using TBWinRE or TBWinPE is recommended. Problem: A BartPE, UBCD4Win, or VistaPE build that includes Image [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1790],"lsvr_kba_tag":[2121],"class_list":["post-393","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-problem-solving-image-for-windows","lsvr_kba_tag-image-for-windows"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":3,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/393\/revisions"}],"predecessor-version":[{"id":6739,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/393\/revisions\/6739"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=393"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}