{"action":"created","issue":{"url":"https://api.github.com/repos/atom/grunt-electron-installer/issues/39","labels_url":"https://api.github.com/repos/atom/grunt-electron-installer/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/atom/grunt-electron-installer/issues/39/comments","events_url":"https://api.github.com/repos/atom/grunt-electron-installer/issues/39/events","html_url":"https://github.com/atom/grunt-electron-installer/issues/39","id":96151855,"number":39,"title":"Command path generated is too long, can't create installer","user":{"login":"techninja","id":320747,"avatar_url":"https://avatars.githubusercontent.com/u/320747?v=3","gravatar_id":"","url":"https://api.github.com/users/techninja","html_url":"https://github.com/techninja","followers_url":"https://api.github.com/users/techninja/followers","following_url":"https://api.github.com/users/techninja/following{/other_user}","gists_url":"https://api.github.com/users/techninja/gists{/gist_id}","starred_url":"https://api.github.com/users/techninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techninja/subscriptions","organizations_url":"https://api.github.com/users/techninja/orgs","repos_url":"https://api.github.com/users/techninja/repos","events_url":"https://api.github.com/users/techninja/events{/privacy}","received_events_url":"https://api.github.com/users/techninja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-20T20:25:51Z","updated_at":"2015-07-21T20:53:44Z","closed_at":null,"body":"I'm not sure how everyone else has been able to get theirs working, but I've been completely unable to get this going. Using Windows 7, x64, MSVS 2013 Express Desktop. When running `grunt create-windows-installer`, I get the following when building the installer for my robopaint project:\r\n```\r\n>> The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.\r\nWarning: Command failed: C:\\rpb\\node_modules\\grunt-electron-installer\\vendor\\nuget.exe pack C:\\Users\\TECHNI~1\\AppData\\Local\\Temp\\squirrel-installer-115620-7836-vbwmay\\robopaint.nuspec -BasePath C:\\rpb\\out\\Robopaint-win32\r\n-x64 -OutputDirectory C:\\Users\\TECHNI~1\\AppData\\Local\\Temp\\squirrel-installer-115620-7836-vbwmay -NoDefaultExcludes\r\nThe specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.\r\n Use --force to continue.\r\n```\r\nI suspec that `AppData` as the temp location may be to blame for path character bloat, but wow the mere fact that there's a limit sure is annoying. I did find this:\r\n\r\n>Maximum Path Length Limitation\r\n>\r\n>In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is \"D:\\some 256-character path string<NUL>\" where \"<NUL>\" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)\r\nNote  File I/O functions in the Windows API convert \"/\" to \"\\\" as part of converting the name to an NT-style name, except when using the \"\\\\?\\\" prefix as detailed in the following sections.\r\n>\r\n>The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters. This type of path is composed of components separated by backslashes, each up to the value returned in the lpMaximumComponentLength parameter of the GetVolumeInformation function (this value is commonly 255 characters). To specify an extended-length path, use the \"\\\\?\\\" prefix. For example, \"\\\\?\\D:\\very long path\".\r\n>Note  The maximum path of 32,767 characters is approximate, because the \"\\\\?\\\" prefix may be expanded to a longer string by the system at run time, and this expansion applies to the total length.\r\n>\r\n>The \"\\\\?\\\" prefix can also be used with paths constructed according to the universal naming convention (UNC). To specify such a path using UNC, use the \"\\\\?\\UNC\\\" prefix. For example, \"\\\\?\\UNC\\server\\share\", where \"server\" is the name of the computer and \"share\" is the name of the shared folder. These prefixes are not used as part of the path itself. They indicate that the path should be passed to the system with minimal modification, which means that you cannot use forward slashes to represent path separators, or a period to represent the current directory, or double dots to represent the parent directory. Because you cannot use the \"\\\\?\\\" prefix with a relative path, relative paths are always limited to a total of MAX_PATH characters.\r\n\r\nMakes me think if we initiate this command with `\\\\?\\` this wouldn't be an issue? Hmm.\r\n\r\nI've tried setting the global npm `tmp` via `npm config set tmp \"C:\\tmp\"`, but it didn't seem to actually change it when the script runs. Any ideas?"},"comment":{"url":"https://api.github.com/repos/atom/grunt-electron-installer/issues/comments/123474232","html_url":"https://github.com/atom/grunt-electron-installer/issues/39#issuecomment-123474232","issue_url":"https://api.github.com/repos/atom/grunt-electron-installer/issues/39","id":123474232,"user":{"login":"techninja","id":320747,"avatar_url":"https://avatars.githubusercontent.com/u/320747?v=3","gravatar_id":"","url":"https://api.github.com/users/techninja","html_url":"https://github.com/techninja","followers_url":"https://api.github.com/users/techninja/followers","following_url":"https://api.github.com/users/techninja/following{/other_user}","gists_url":"https://api.github.com/users/techninja/gists{/gist_id}","starred_url":"https://api.github.com/users/techninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techninja/subscriptions","organizations_url":"https://api.github.com/users/techninja/orgs","repos_url":"https://api.github.com/users/techninja/repos","events_url":"https://api.github.com/users/techninja/events{/privacy}","received_events_url":"https://api.github.com/users/techninja/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T20:53:44Z","updated_at":"2015-07-21T20:53:44Z","body":"To Reproduce: 32 bit Win 7 build Virtualbox VM (via [modern.ie](http://dev.modern.ie/tools/vms/)):\r\n- Install MS VisualStudio express 2013 desktop (wait approx 2 hours)\r\n- Install git (_with_ unix command line tools option during install, very handy)\r\n- Install io.js (2.4.0)\r\n- Install python 2.7.x\r\n- From cmd: `npm install -g grunt-cli node-gyp`\r\n- Clone repo, `npm install`, copy pre-built resources for installer packaging\r\n- run `grunt create-windows-installer` (Wait very patiently)\r\n\r\nGot the same error as above.\r\n\r\n"}}