Please merge with:
http://zero-k.info/Forum/Thread/5088 (read this one!)
http://zero-k.info/Forum/Thread/7273http://zero-k.info/Forum/Thread/11639Its good to see that this community is always here... tirelessly repeating the same things again and again. Well... with some variation regarding the versions of windows being at fault...
http://zero-k.info/Forum/Thread/9115?page=1#98543Look at this other report:
https://code.google.com/p/zero-k/issues/detail?id=2114I have the impression that the bug was there before win 8.1 ... and that the handling of this issue has been a total failure for years... wasting the time of a lot of people, and potentially causing loss of players.
So, can we make some progress and admit that maybe, there is a bug in the installer, and NOT with ""insert current version of windows here"" ?
I'd love to find where the bugs are... but how the setup.exe is generated is a mystery. I can't find any indication on how to build it from the repository.
I can even find 2 different versions of the installer...
http://zero-k.info/lobby/setup.exehttp://zero-k.info/lobby/Zero-K.setup.exeI'm sure "someone" will quickly point out that one of these 2 is not being used by players... but I'd prefer to focus on how those are generated and deployed. Maybe we can find some script of source code in there... and maybe we can fix it?
Anyway, the error is not issued by the installer, but by ZKL itself:
https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZeroKLobby/Program.cs#L161An interesting condition:
StartupPath.Contains("Local\\Apps")
look again at OP's screenshot...
Then here:
https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZeroKLobby/Program.cs#L171So, zero-k.exe is moved to ...local\apps\... then started again, then of course, when its checking whether it is in local\apps, it complains again...
Note: a similar problem exist on my machine... running the installer again result in a superfluous zero-k.exe download, which, when launched, will make the same complains. But its not happening further.
Details & source to build installer are now required to debug any further... without the feeling that I'm reverse engineering something designed to be obfuscated.
What I found: installer is MS clickonce... and installer creates a log. At the end of the log:
quote:
Launching Application. Application appears to be an application manifest Launching application manifest via dfshim
|
So I check how it is run using
https://technet.microsoft.com/en-us/sysinternals/bb896645.aspxAnd obviously, the installer starts zero-k.exe from the apps\local folder... which again triggers this:
https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZeroKLobby/Program.cs#L161So... none of this appears related to windows. All the behavior is coded right into ZKL.
My guess is that someone wants to use ClickOnce just for the initial setup, but can't/don't know how to control where the lobby exe is installed, or something similar. So a "workaround" was coded to then copy the exe to spring folder, where it will feel more at home.