{"action":"created","issue":{"url":"https://api.github.com/repos/chef/vagrant-omnibus/issues/110","labels_url":"https://api.github.com/repos/chef/vagrant-omnibus/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/chef/vagrant-omnibus/issues/110/comments","events_url":"https://api.github.com/repos/chef/vagrant-omnibus/issues/110/events","html_url":"https://github.com/chef/vagrant-omnibus/issues/110","id":55731019,"number":110,"title":"config.omnibus.install_url = '/some/path/on/the/host' doesn't work on windows","user":{"login":"vinyar","id":5116939,"avatar_url":"https://avatars.githubusercontent.com/u/5116939?v=3","gravatar_id":"","url":"https://api.github.com/users/vinyar","html_url":"https://github.com/vinyar","followers_url":"https://api.github.com/users/vinyar/followers","following_url":"https://api.github.com/users/vinyar/following{/other_user}","gists_url":"https://api.github.com/users/vinyar/gists{/gist_id}","starred_url":"https://api.github.com/users/vinyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinyar/subscriptions","organizations_url":"https://api.github.com/users/vinyar/orgs","repos_url":"https://api.github.com/users/vinyar/repos","events_url":"https://api.github.com/users/vinyar/events{/privacy}","received_events_url":"https://api.github.com/users/vinyar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T09:12:44Z","updated_at":"2015-01-28T11:04:53Z","closed_at":null,"body":"Looks like on windows the download is initialized with WebClient, and the ?v breaks when attempting to 'download' from local path.\r\n\r\nVagrantfile:\r\n```ruby\r\n    config.omnibus.chef_version = '12.0.3'\r\n    config.omnibus.install_url = 'c:\\\\parent_binaries\\\\chef_client\\\\'\r\n    config.vm.guest = :windows #needed for vagrant omnibus to work (1.4.1 has a bug https://github.com/chef/vagrant-omnibus/issues/90)\r\n    config.vm.communicator = \"winrm\"\r\n```\r\nError:\r\n```powershell\r\npowershell -command \"(New-Object System.Net.WebClient).DownloadFile('c:\\parent_binaries\\chef_client\\?v=%version%', '%dest%')\"\r\n\r\nGets translated to:\r\n(New-Object System.Net.WebClient).DownloadFile('c:\\parent_binaries\\chef_client\\?v=12.0.3', 'C:\\Users\\vagrant\\chef-client-12.0.3-1.windows.msi')\r\n```\r\n\r\n```powershell\r\nPS C:\\Users\\vagrant> (New-Object System.Net.WebClient).DownloadFile('c:\\parent_binaries\\chef_client\\?v=12.0.3', 'C:\\User\r\ns\\vagrant\\chef-client-12.0.3-1.windows.msi')\r\nException calling \"DownloadFile\" with \"2\" argument(s): \"Illegal characters in path.\"\r\nAt line:1 char:47\r\n+ (New-Object System.Net.WebClient).DownloadFile <<<< ('c:\\parent_binaries\\chef_client\\?v=12.0.3', 'C:\\Users\\vagrant\\ch\r\nef-client-12.0.3-1.windows.msi')\r\n    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\n    + FullyQualifiedErrorId : DotNetMethodException\r\n```\r\n\r\nI am not sure if there is a simple syntax change that would allow both. Paging @smurawski "},"comment":{"url":"https://api.github.com/repos/chef/vagrant-omnibus/issues/comments/71816516","html_url":"https://github.com/chef/vagrant-omnibus/issues/110#issuecomment-71816516","issue_url":"https://api.github.com/repos/chef/vagrant-omnibus/issues/110","id":71816516,"user":{"login":"vinyar","id":5116939,"avatar_url":"https://avatars.githubusercontent.com/u/5116939?v=3","gravatar_id":"","url":"https://api.github.com/users/vinyar","html_url":"https://github.com/vinyar","followers_url":"https://api.github.com/users/vinyar/followers","following_url":"https://api.github.com/users/vinyar/following{/other_user}","gists_url":"https://api.github.com/users/vinyar/gists{/gist_id}","starred_url":"https://api.github.com/users/vinyar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinyar/subscriptions","organizations_url":"https://api.github.com/users/vinyar/orgs","repos_url":"https://api.github.com/users/vinyar/repos","events_url":"https://api.github.com/users/vinyar/events{/privacy}","received_events_url":"https://api.github.com/users/vinyar/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T11:04:53Z","updated_at":"2015-01-28T11:04:53Z","body":"testing the following syntax \r\n\r\n```powershell\r\nif(test-path $url\\chef-client*%version%-1.windows.msi){copy $url\\chef-client*%version%-1.windows.msi %dest%}else{\"(New-Object System.Net.WebClient).DownloadFile('c:\\parent_binaries\\chef_client\\?v=%version%', '%dest%')\"}\r\n```"}}