ClickOnceToSquirrelMigrator icon indicating copy to clipboard operation
ClickOnceToSquirrelMigrator copied to clipboard

Update.exe not found?

Open EasyAsABC123 opened this issue 8 years ago • 1 comments

The squirrel app has included both Update.exe and Squirrel.exe, the ClickOnce app has both as well. But the are in the same directory as the app, it appears that it is looking for them in the parent directory which doesn't exist (from what i can tell in clickonce). screen shot 2017-10-10 at 10 15 57 am screen shot 2017-10-10 at 10 17 14 am

EasyAsABC123 avatar Oct 10 '17 14:10 EasyAsABC123

I've got the same error. This problem is caused by the UpdateManager, not the ClickonceToSquirrelMigrator. The issue I found is that if you don't provide application name for the UpdateManager (in the clickonce app) it tries to derive the name from the current application while assuming that it is a squirrel application (which it is not). So it looks for update.exe in the parent directory which does not exist.

A fix to this is to provide an application name, this way the update manager does not try generate it. Also it was helpful for me to specify the root directory. Otherwise when the squirrel app was installed it was installed within the clickonce path...which is probably a bad idea.

h77ps avatar Jul 10 '19 20:07 h77ps