{"id":24933,"date":"2007-10-02T10:00:00","date_gmt":"2007-10-02T10:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2007\/10\/02\/dont-assume-the-first-person-to-run-your-program-is-an-administrator\/"},"modified":"2007-10-02T10:00:00","modified_gmt":"2007-10-02T10:00:00","slug":"dont-assume-the-first-person-to-run-your-program-is-an-administrator","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20071002-00\/?p=24933","title":{"rendered":"Don&#039;t assume the first person to run your program is an administrator"},"content":{"rendered":"<p>One &#8220;optimization&#8221; I&#8217;ve seen from some programs is to defer a bunch of system configuration work to the first time the program is run or the first time a feature is requested instead of doing it at install time. The problem with this is that the first person to run your program is not guaranteed to be an administrator.\n For example, there is one popular media program that doesn&#8217;t install its CD AutoPlay handler until you run it for the first time. If the first person to run the program is not an administrator, then their AutoPlay handler doesn&#8217;t get installed and consequently never works.\n This problem became more acute in Windows&nbsp;Vista, where users do not flex their administrative rights by default, even if they are administrators. Consequently, when run on Windows&nbsp;Vista, this program <i>never<\/i> installs its AutoPlay handler.<\/p>\n<p> It fell to the application compatibility folks to see what they could do to rescue this program from the &#8220;not compatible with Windows&nbsp;Vista&#8221; pile. It&#8217;s frustrating having to &#8220;fix&#8221; something that was broken when you got there. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>One &#8220;optimization&#8221; I&#8217;ve seen from some programs is to defer a bunch of system configuration work to the first time the program is run or the first time a feature is requested instead of doing it at install time. The problem with this is that the first person to run your program is not guaranteed [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-24933","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>One &#8220;optimization&#8221; I&#8217;ve seen from some programs is to defer a bunch of system configuration work to the first time the program is run or the first time a feature is requested instead of doing it at install time. The problem with this is that the first person to run your program is not guaranteed [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/24933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=24933"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/24933\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=24933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=24933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=24933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}