{"id":917,"date":"2012-02-27T19:29:18","date_gmt":"2012-02-28T00:29:18","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=917"},"modified":"2012-02-27T19:29:18","modified_gmt":"2012-02-28T00:29:18","slug":"moving-your-windows-installer-directory","status":"publish","type":"post","link":"https:\/\/www.wildow.com\/blog\/?p=917","title":{"rendered":"Moving your Windows Installer Directory"},"content":{"rendered":"<div>\n<h3>Moving your Windows Installer Directory<\/h3>\n<p><a href=\"http:\/\/blog.ray1.net\/2009\/04\/moving-your-windows-installer-directory.html\">http:\/\/blog.ray1.net\/2009\/04\/moving-your-windows-installer-directory.html<\/a><\/p>\n<div>I mostly work with Virtual Machines and I like to pre-allocating the disk size. When I created my VM I figured 10GB would be enough for C:\\ with Win2003 Server and a couple of SDK&#8217;s and if I needed more I could always add another drive. I was wrong.<\/p>\n<p>After 2 years my faithful Win2003 dev VM is out of space on C: and I can&#8217;t shuffle any more files around.<\/p>\n<p>My C:\\windows\\installer directory is &gt;2GB so this is my prime candidate to move. Luckily there are always solutions to problems&#8230; no I&#8217;m not going to delete the directory, or change my registry to point to a new location.<br \/>\nI&#8217;m going to add a\u00a0<strong>symbolic link<\/strong>\u00a0from C:\\windows\\installer to F:\\installer.<\/p>\n<ol>\n<li>Download Junction from\u00a0<a href=\"http:\/\/technet.microsoft.com\/en-us\/sysinternals\/bb896768.aspx\">http:\/\/technet.microsoft.com\/en-us\/sysinternals\/bb896768.aspx<\/a><\/li>\n<li>Copy OR move C:\\windows\\installer to F:\\installer<\/li>\n<li>Delete all the files in C:\\windows\\installer<\/li>\n<li>Close all your Explorer windows<\/li>\n<li>Run &gt; cmd&gt; C:\\junction C:\\WINDOWS\\Installer F:\\installer<\/li>\n<\/ol>\n<p>That should do it. I wrote a batch (run.bat) script to do the whole procedure.<\/p>\n<pre>@<span style=\"color: #2040a0;\">set<\/span> <span style=\"color: #2040a0;\">src<\/span>=<span style=\"color: #2040a0;\">C:\\WINDOWS\\Installer<\/span>\r\n@<span style=\"color: #2040a0;\">set<\/span> <span style=\"color: #2040a0;\">trg<\/span>=<span style=\"color: #2040a0;\">F<\/span>:\\<span style=\"color: #2040a0;\">Installer<\/span>\r\n::<span style=\"color: #2040a0;\">copy<\/span> %<span style=\"color: #2040a0;\">src<\/span>%\\* %<span style=\"color: #2040a0;\">trg<\/span>%\r\n::<span style=\"color: #2040a0;\">detele<\/span> %<span style=\"color: #2040a0;\">src<\/span>%\\*\r\n<span style=\"color: #2040a0;\">move<\/span> \/<span style=\"color: #2040a0;\">y<\/span> %<span style=\"color: #2040a0;\">src<\/span>%\\* %<span style=\"color: #2040a0;\">trg<\/span>%\r\n<span style=\"color: #2040a0;\">junction<\/span> %<span style=\"color: #2040a0;\">src<\/span>% %<span style=\"color: #2040a0;\">trg<\/span>%\r\n<span style=\"color: #2040a0;\">pause<\/span><\/pre>\n<p>This should work for most directories. The batch file should be in the same directory as junction.exe.<\/p><\/div>\n<div>\n<div>Posted by\u00a0rayone\u00a0at\u00a0<a title=\"permanent link\" href=\"http:\/\/blog.ray1.net\/2009\/04\/moving-your-windows-installer-directory.html\" rel=\"bookmark\"><abbr title=\"2009-04-02T12:26:00+11:00\">12:26 PM<\/abbr><\/a>\u00a0<a title=\"Email Post\" href=\"http:\/\/www.blogger.com\/email-post.g?blogID=1635568622827949164&amp;postID=7511479167589278506\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/img1.blogblog.com\/img\/icon18_email.gif\" alt=\"\" width=\"18\" height=\"13\" \/><\/a><\/div>\n<div>Labels:\u00a0<a href=\"http:\/\/blog.ray1.net\/search\/label\/OS%20Configuration\" rel=\"tag\">OS Configuration<\/a><\/div>\n<div><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Moving your Windows Installer Directory http:\/\/blog.ray1.net\/2009\/04\/moving-your-windows-installer-directory.html I mostly work with Virtual Machines and I like to pre-allocating the disk size. When I created my VM I figured 10GB would be enough for C:\\ with Win2003 Server and a couple of &#8230; <a class=\"more-link\" href=\"https:\/\/www.wildow.com\/blog\/?p=917\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-917","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=917"}],"version-history":[{"count":1,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/917\/revisions"}],"predecessor-version":[{"id":918,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/917\/revisions\/918"}],"wp:attachment":[{"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}