{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/ServiceControlInstaller/issues/19","labels_url":"https://api.github.com/repos/Particular/ServiceControlInstaller/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Particular/ServiceControlInstaller/issues/19/comments","events_url":"https://api.github.com/repos/Particular/ServiceControlInstaller/issues/19/events","html_url":"https://github.com/Particular/ServiceControlInstaller/issues/19","id":99339447,"number":19,"title":"Folder icon greyed out with System32 path","user":{"login":"petersgiles","id":1644481,"avatar_url":"https://avatars.githubusercontent.com/u/1644481?v=3","gravatar_id":"","url":"https://api.github.com/users/petersgiles","html_url":"https://github.com/petersgiles","followers_url":"https://api.github.com/users/petersgiles/followers","following_url":"https://api.github.com/users/petersgiles/following{/other_user}","gists_url":"https://api.github.com/users/petersgiles/gists{/gist_id}","starred_url":"https://api.github.com/users/petersgiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petersgiles/subscriptions","organizations_url":"https://api.github.com/users/petersgiles/orgs","repos_url":"https://api.github.com/users/petersgiles/repos","events_url":"https://api.github.com/users/petersgiles/events{/privacy}","received_events_url":"https://api.github.com/users/petersgiles/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/ServiceControlInstaller/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Particular/ServiceControlInstaller/labels/UI","name":"UI","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"petersgiles","id":1644481,"avatar_url":"https://avatars.githubusercontent.com/u/1644481?v=3","gravatar_id":"","url":"https://api.github.com/users/petersgiles","html_url":"https://github.com/petersgiles","followers_url":"https://api.github.com/users/petersgiles/followers","following_url":"https://api.github.com/users/petersgiles/following{/other_user}","gists_url":"https://api.github.com/users/petersgiles/gists{/gist_id}","starred_url":"https://api.github.com/users/petersgiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petersgiles/subscriptions","organizations_url":"https://api.github.com/users/petersgiles/orgs","repos_url":"https://api.github.com/users/petersgiles/repos","events_url":"https://api.github.com/users/petersgiles/events{/privacy}","received_events_url":"https://api.github.com/users/petersgiles/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-06T02:25:23Z","updated_at":"2015-08-06T02:29:43Z","closed_at":null,"body":"Ok the reason the log folder path is greyed out for paths in system32 is that M$ does a redirect for 32bit processes into WOW64 (or whatever stupid name they gave that folder) the log file isn’t there of course because we put it in system32.\r\n\r\nIs there any issue with making to installer 64 bit, assuming Service Control is 64bit and therefore the management software should be the same. @greg @distantcam (edited)"},"comment":{"url":"https://api.github.com/repos/Particular/ServiceControlInstaller/issues/comments/128216881","html_url":"https://github.com/Particular/ServiceControlInstaller/issues/19#issuecomment-128216881","issue_url":"https://api.github.com/repos/Particular/ServiceControlInstaller/issues/19","id":128216881,"user":{"login":"petersgiles","id":1644481,"avatar_url":"https://avatars.githubusercontent.com/u/1644481?v=3","gravatar_id":"","url":"https://api.github.com/users/petersgiles","html_url":"https://github.com/petersgiles","followers_url":"https://api.github.com/users/petersgiles/followers","following_url":"https://api.github.com/users/petersgiles/following{/other_user}","gists_url":"https://api.github.com/users/petersgiles/gists{/gist_id}","starred_url":"https://api.github.com/users/petersgiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petersgiles/subscriptions","organizations_url":"https://api.github.com/users/petersgiles/orgs","repos_url":"https://api.github.com/users/petersgiles/repos","events_url":"https://api.github.com/users/petersgiles/events{/privacy}","received_events_url":"https://api.github.com/users/petersgiles/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T02:29:43Z","updated_at":"2015-08-06T02:29:43Z","body":"Here's some code that fixes the icon but it doesn't really help because I can't open the folder with the 'corrected' path.\r\n\r\n```C#\r\nstatic string FixUrlOn64bitSystem(string url)\r\n {\r\n            if (!Environment.Is64BitOperatingSystem || Environment.Is64BitProcess)\r\n            {\r\n                return url;\r\n            }\r\n\r\n            var system32Directory = Path.Combine(Environment.ExpandEnvironmentVariables(\"%windir%\"), \"system32\");\r\n            // For 32-bit processes on 64-bit systems, %windir%\\system32 folder\r\n            // can only be accessed by specifying %windir%\\sysnative folder.\r\n            var systemNativeDirectory = Path.Combine(Environment.ExpandEnvironmentVariables(\"%windir%\"), \"sysnative\");\r\n\r\n            return url.Replace(system32Directory, systemNativeDirectory);\r\n}\r\n```"}}