{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/conda/constructor/pulls/7","id":61596498,"html_url":"https://github.com/conda/constructor/pull/7","diff_url":"https://github.com/conda/constructor/pull/7.diff","patch_url":"https://github.com/conda/constructor/pull/7.patch","issue_url":"https://api.github.com/repos/conda/constructor/issues/7","number":7,"state":"open","locked":false,"title":"Add default_prefix support for Windows","user":{"login":"bheklilr","id":1035817,"avatar_url":"https://avatars.githubusercontent.com/u/1035817?v=3","gravatar_id":"","url":"https://api.github.com/users/bheklilr","html_url":"https://github.com/bheklilr","followers_url":"https://api.github.com/users/bheklilr/followers","following_url":"https://api.github.com/users/bheklilr/following{/other_user}","gists_url":"https://api.github.com/users/bheklilr/gists{/gist_id}","starred_url":"https://api.github.com/users/bheklilr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bheklilr/subscriptions","organizations_url":"https://api.github.com/users/bheklilr/orgs","repos_url":"https://api.github.com/users/bheklilr/repos","events_url":"https://api.github.com/users/bheklilr/events{/privacy}","received_events_url":"https://api.github.com/users/bheklilr/received_events","type":"User","site_admin":false},"body":"I modified winexe.py and main.nsi.tmpl slightly to allow the construct.yaml file to specify the `default_prefix` key to be used to customize the installation location.  I believe it should have the same behavior as in shar.py for unix based systems, but I don't have access to one right now to confirm.  This change calls `os.path.expandvars` on the value of `default_prefix` instead of relying on the NSIS `$LocalAppData` variable to expand the path.  This should also make the feature as powerful as for unix installers since variables other than `$HOME`/`%LOCALAPPDATA%` could be used in the prefix.\r\n\r\nAn example usage is:\r\n\r\n```yaml\r\nname: test\r\nversion: \"1.0.0.0\"\r\n\r\nchannels:\r\n  - http://repo.continuum.io/pkgs/free/\r\n\r\nspecs:\r\n  - python\r\n\r\ndefault_prefix: \"%LOCALAPPDATA%\\Company ABC\\test\"\r\n```\r\n\r\nThis would build a minimal installer which when installed with \"Just for me\" on Windows would point at `C:\\Users\\username\\AppData\\Local\\Company ABC\\test`.  If you see any problems with it let me know and I'll get them fixed.","created_at":"2016-03-03T17:40:13Z","updated_at":"2016-03-03T17:40:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/conda/constructor/pulls/7/commits","review_comments_url":"https://api.github.com/repos/conda/constructor/pulls/7/comments","review_comment_url":"https://api.github.com/repos/conda/constructor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conda/constructor/issues/7/comments","statuses_url":"https://api.github.com/repos/conda/constructor/statuses/825b330c94460c07e7d335c30185ed39460269e6","head":{"label":"bheklilr:master","ref":"master","sha":"825b330c94460c07e7d335c30185ed39460269e6","user":{"login":"bheklilr","id":1035817,"avatar_url":"https://avatars.githubusercontent.com/u/1035817?v=3","gravatar_id":"","url":"https://api.github.com/users/bheklilr","html_url":"https://github.com/bheklilr","followers_url":"https://api.github.com/users/bheklilr/followers","following_url":"https://api.github.com/users/bheklilr/following{/other_user}","gists_url":"https://api.github.com/users/bheklilr/gists{/gist_id}","starred_url":"https://api.github.com/users/bheklilr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bheklilr/subscriptions","organizations_url":"https://api.github.com/users/bheklilr/orgs","repos_url":"https://api.github.com/users/bheklilr/repos","events_url":"https://api.github.com/users/bheklilr/events{/privacy}","received_events_url":"https://api.github.com/users/bheklilr/received_events","type":"User","site_admin":false},"repo":{"id":53067780,"name":"constructor","full_name":"bheklilr/constructor","owner":{"login":"bheklilr","id":1035817,"avatar_url":"https://avatars.githubusercontent.com/u/1035817?v=3","gravatar_id":"","url":"https://api.github.com/users/bheklilr","html_url":"https://github.com/bheklilr","followers_url":"https://api.github.com/users/bheklilr/followers","following_url":"https://api.github.com/users/bheklilr/following{/other_user}","gists_url":"https://api.github.com/users/bheklilr/gists{/gist_id}","starred_url":"https://api.github.com/users/bheklilr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bheklilr/subscriptions","organizations_url":"https://api.github.com/users/bheklilr/orgs","repos_url":"https://api.github.com/users/bheklilr/repos","events_url":"https://api.github.com/users/bheklilr/events{/privacy}","received_events_url":"https://api.github.com/users/bheklilr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bheklilr/constructor","description":"tool for creating installers from conda packages","fork":true,"url":"https://api.github.com/repos/bheklilr/constructor","forks_url":"https://api.github.com/repos/bheklilr/constructor/forks","keys_url":"https://api.github.com/repos/bheklilr/constructor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bheklilr/constructor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bheklilr/constructor/teams","hooks_url":"https://api.github.com/repos/bheklilr/constructor/hooks","issue_events_url":"https://api.github.com/repos/bheklilr/constructor/issues/events{/number}","events_url":"https://api.github.com/repos/bheklilr/constructor/events","assignees_url":"https://api.github.com/repos/bheklilr/constructor/assignees{/user}","branches_url":"https://api.github.com/repos/bheklilr/constructor/branches{/branch}","tags_url":"https://api.github.com/repos/bheklilr/constructor/tags","blobs_url":"https://api.github.com/repos/bheklilr/constructor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bheklilr/constructor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bheklilr/constructor/git/refs{/sha}","trees_url":"https://api.github.com/repos/bheklilr/constructor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bheklilr/constructor/statuses/{sha}","languages_url":"https://api.github.com/repos/bheklilr/constructor/languages","stargazers_url":"https://api.github.com/repos/bheklilr/constructor/stargazers","contributors_url":"https://api.github.com/repos/bheklilr/constructor/contributors","subscribers_url":"https://api.github.com/repos/bheklilr/constructor/subscribers","subscription_url":"https://api.github.com/repos/bheklilr/constructor/subscription","commits_url":"https://api.github.com/repos/bheklilr/constructor/commits{/sha}","git_commits_url":"https://api.github.com/repos/bheklilr/constructor/git/commits{/sha}","comments_url":"https://api.github.com/repos/bheklilr/constructor/comments{/number}","issue_comment_url":"https://api.github.com/repos/bheklilr/constructor/issues/comments{/number}","contents_url":"https://api.github.com/repos/bheklilr/constructor/contents/{+path}","compare_url":"https://api.github.com/repos/bheklilr/constructor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bheklilr/constructor/merges","archive_url":"https://api.github.com/repos/bheklilr/constructor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bheklilr/constructor/downloads","issues_url":"https://api.github.com/repos/bheklilr/constructor/issues{/number}","pulls_url":"https://api.github.com/repos/bheklilr/constructor/pulls{/number}","milestones_url":"https://api.github.com/repos/bheklilr/constructor/milestones{/number}","notifications_url":"https://api.github.com/repos/bheklilr/constructor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bheklilr/constructor/labels{/name}","releases_url":"https://api.github.com/repos/bheklilr/constructor/releases{/id}","deployments_url":"https://api.github.com/repos/bheklilr/constructor/deployments","created_at":"2016-03-03T17:02:16Z","updated_at":"2016-03-03T17:02:17Z","pushed_at":"2016-03-03T17:28:24Z","git_url":"git://github.com/bheklilr/constructor.git","ssh_url":"git@github.com:bheklilr/constructor.git","clone_url":"https://github.com/bheklilr/constructor.git","svn_url":"https://github.com/bheklilr/constructor","homepage":null,"size":399,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"conda:master","ref":"master","sha":"96272d888cdebc1f86b2cb400c3f079090f28fcb","user":{"login":"conda","id":6392739,"avatar_url":"https://avatars.githubusercontent.com/u/6392739?v=3","gravatar_id":"","url":"https://api.github.com/users/conda","html_url":"https://github.com/conda","followers_url":"https://api.github.com/users/conda/followers","following_url":"https://api.github.com/users/conda/following{/other_user}","gists_url":"https://api.github.com/users/conda/gists{/gist_id}","starred_url":"https://api.github.com/users/conda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conda/subscriptions","organizations_url":"https://api.github.com/users/conda/orgs","repos_url":"https://api.github.com/users/conda/repos","events_url":"https://api.github.com/users/conda/events{/privacy}","received_events_url":"https://api.github.com/users/conda/received_events","type":"Organization","site_admin":false},"repo":{"id":51571636,"name":"constructor","full_name":"conda/constructor","owner":{"login":"conda","id":6392739,"avatar_url":"https://avatars.githubusercontent.com/u/6392739?v=3","gravatar_id":"","url":"https://api.github.com/users/conda","html_url":"https://github.com/conda","followers_url":"https://api.github.com/users/conda/followers","following_url":"https://api.github.com/users/conda/following{/other_user}","gists_url":"https://api.github.com/users/conda/gists{/gist_id}","starred_url":"https://api.github.com/users/conda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conda/subscriptions","organizations_url":"https://api.github.com/users/conda/orgs","repos_url":"https://api.github.com/users/conda/repos","events_url":"https://api.github.com/users/conda/events{/privacy}","received_events_url":"https://api.github.com/users/conda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/conda/constructor","description":"tool for creating installers from conda packages","fork":false,"url":"https://api.github.com/repos/conda/constructor","forks_url":"https://api.github.com/repos/conda/constructor/forks","keys_url":"https://api.github.com/repos/conda/constructor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/conda/constructor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/conda/constructor/teams","hooks_url":"https://api.github.com/repos/conda/constructor/hooks","issue_events_url":"https://api.github.com/repos/conda/constructor/issues/events{/number}","events_url":"https://api.github.com/repos/conda/constructor/events","assignees_url":"https://api.github.com/repos/conda/constructor/assignees{/user}","branches_url":"https://api.github.com/repos/conda/constructor/branches{/branch}","tags_url":"https://api.github.com/repos/conda/constructor/tags","blobs_url":"https://api.github.com/repos/conda/constructor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/conda/constructor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/conda/constructor/git/refs{/sha}","trees_url":"https://api.github.com/repos/conda/constructor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/conda/constructor/statuses/{sha}","languages_url":"https://api.github.com/repos/conda/constructor/languages","stargazers_url":"https://api.github.com/repos/conda/constructor/stargazers","contributors_url":"https://api.github.com/repos/conda/constructor/contributors","subscribers_url":"https://api.github.com/repos/conda/constructor/subscribers","subscription_url":"https://api.github.com/repos/conda/constructor/subscription","commits_url":"https://api.github.com/repos/conda/constructor/commits{/sha}","git_commits_url":"https://api.github.com/repos/conda/constructor/git/commits{/sha}","comments_url":"https://api.github.com/repos/conda/constructor/comments{/number}","issue_comment_url":"https://api.github.com/repos/conda/constructor/issues/comments{/number}","contents_url":"https://api.github.com/repos/conda/constructor/contents/{+path}","compare_url":"https://api.github.com/repos/conda/constructor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/conda/constructor/merges","archive_url":"https://api.github.com/repos/conda/constructor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/conda/constructor/downloads","issues_url":"https://api.github.com/repos/conda/constructor/issues{/number}","pulls_url":"https://api.github.com/repos/conda/constructor/pulls{/number}","milestones_url":"https://api.github.com/repos/conda/constructor/milestones{/number}","notifications_url":"https://api.github.com/repos/conda/constructor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/conda/constructor/labels{/name}","releases_url":"https://api.github.com/repos/conda/constructor/releases{/id}","deployments_url":"https://api.github.com/repos/conda/constructor/deployments","created_at":"2016-02-12T06:52:50Z","updated_at":"2016-03-03T15:10:41Z","pushed_at":"2016-03-03T06:45:58Z","git_url":"git://github.com/conda/constructor.git","ssh_url":"git@github.com:conda/constructor.git","clone_url":"https://github.com/conda/constructor.git","svn_url":"https://github.com/conda/constructor","homepage":null,"size":389,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/conda/constructor/pulls/7"},"html":{"href":"https://github.com/conda/constructor/pull/7"},"issue":{"href":"https://api.github.com/repos/conda/constructor/issues/7"},"comments":{"href":"https://api.github.com/repos/conda/constructor/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/conda/constructor/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/conda/constructor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conda/constructor/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/conda/constructor/statuses/825b330c94460c07e7d335c30185ed39460269e6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":7,"deletions":2,"changed_files":2}}