These are chat archives for chocolatey/ChocolateyGUI

4th
Jun 2015
Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 10:20
I have same problem, @nyxcharon , Retrieving installed packages doesn't work
Waiting for ever without error message
I'm using Windows 8.1
Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 11:07
Solution: Use Windows 7 compatibility mode option. ChocolateyGui is not compatible Windows 8.1
Gary Ewan Park
@gep13
Jun 04 2015 11:11
@ramoneeza that is not strictly true. I am running Windows 8.1. and ChocolateyGUI without any issues, so there must be something else at play here
but I am not exactly sure what that is
Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 11:12
But I was not able to run ChocolateGUI without that change (Windows 7 compatibility)
Gary Ewan Park
@gep13
Jun 04 2015 11:12
the compatibility mode workaround, is a solution to a different underlying issue
Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 11:12
Maybe I'm using a Spanish Windows version? (A hardcored path issue?)
Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 12:37
Win32Exception (0x80004005): Error en la ejecuciĆ³n de servidor
en System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
This is the line containing the problem. I suspect lack of ProcessStartInfo.Arguments
Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 13:01

The way I found to get this to work was to disable WOW64 file system redirection. Nothing else seemed to work.
From this link: http://tcamilli.blogspot.co.uk/2005/07/disabling-wow64-file-system.html

[DllImport("Kernel32.Dll", EntryPoint="Wow64EnableWow64FsRedirection")]
public static extern bool EnableWow64FSRedirection(bool enable);

Wow64Interop.EnableWow64FSRedirection(false)
Process processToStart = new Process
{
StartInfo =
{
FileName = @"C:\Windows\Sysnative\hkcmd.exe",
WorkingDirectory = @"C:\Windows\Sysnative\")
}
};
processToStart.Start();
Wow64Interop.EnableWow64FSRedirection(true)

I think the problem is an automatic WOW64 filesystem redirection on Windows 8.1 x64 and .net 4.0
Gary Ewan Park
@gep13
Jun 04 2015 13:03
hmmm, I haven't touched anything like that on my system though, so can't explain why it would work for me, and not for you
in a powershell window, can you run Get-ExecutionPolicy?
and paste the output here?
Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 13:19
blob
Gary Ewan Park
@gep13
Jun 04 2015 13:19
ok, so I "think" that could be part of the problem :-)
let me check something...
hmm, nope, that isn't it either

Maybe I'm using a Spanish Windows version? (A hardcored path issue?)

Ah, I missed this part. I honestly haven't test on a different installed language

Ramon Ordiales Plaza
@ramoneeza
Jun 04 2015 13:23
Windows 8.1 x64 Spanish
Choco works fine... but ChocolateyGUI fails start process... A mix between x32 and x64 code?
Gary Ewan Park
@gep13
Jun 04 2015 13:29
hmm, shouldn't be, but can't rule it out. I will need to do some more tests, try to replicate the issue