Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: AL|EN on February 15, 2020, 02:15:24 AM

Title: Weidu is executing every executable called setup-* even if it's not weidu
Post by: AL|EN on February 15, 2020, 02:15:24 AM
Hi,


Weidu is executing every executable called setup-* even if it's not weidu. I'm assuming that it's because autoupdate design. Can you alter this so the non-weidu executable won't be executed?
Title: Re: Weidu is executing every executable called setup-* even if it's not weidu
Post by: Wisp on February 16, 2020, 04:14:17 AM
I can't know if an executable matching the setup pattern is or is not a WeiDU without running it to see if it takes the expected input and produces the expected output. Yes, it is autoupdate which runs all the setup executables in the game directory.
Title: Re: Weidu is executing every executable called setup-* even if it's not weidu
Post by: AL|EN on February 28, 2020, 05:36:01 AM
Sure you can, just check ProductName property of the executable. If it's there, it's weidu so compare ProductVersion with the current one.

EDIT: well, apparently on macOS and Linux, there is no way to check executable without launching?
Title: Re: Weidu is executing every executable called setup-* even if it's not weidu
Post by: Wisp on March 12, 2020, 12:53:03 PM
Sure you can, just check ProductName property of the executable. If it's there, it's weidu so compare ProductVersion with the current one.
I can't use features that only exist in the most recent versions of WeiDU. Autoupdate needs to be able to handle any old WeiDU ever released.