PDA

View Full Version : Unable to locate program: FantasyGroundsUpdater.exe



Topdecker
February 25th, 2020, 20:23
I started FGU, clicked on CHECK FOR UPDATES, the updater started and I got busy entertaining myself in a web browser while the download process started. I noticed that the updater snapped closed - so I relaunched FGU and now get:

https://i.imgur.com/LQIrcV5.png

It would be nice if the updater were available for download rather than reinstalling over the top of FGU.

Thanks

LordEntrails
February 25th, 2020, 20:27
Check your FG data folder for an update named something like ...PREV

Zacchaeus
February 25th, 2020, 20:45
The updater creates a file folder called FGudpater_New and then tries to delete the old updater (which it renames FGUpdater_Old) but this can fail and so the process halts. If you delete the _OLD one and replace it with the updater in the _NEW folder and run it, it should carry on fine.

Topdecker
February 25th, 2020, 21:00
Ok, I located the _NEW one and copied it over. Thanks, guys!

Moon Wizard
February 25th, 2020, 21:03
@Topdecker,

* What OS are you using?
* When was the last time you updated prior to this time?

I want to pass this on to Ryan to review.

Thanks,
JPG

Neovirtus
February 25th, 2020, 21:18
One of my players and I both saw this same error message when I was running my game last Thursday. (windows 10, unsure of previous version, perhaps up to two weeks?)

edit: One thought that occurs to me is that when I've seen this issue it immediately follows an update, and during the update the "Launcher" seems to be patched first, then FGU should restart prior to updating all the the modules. However, it seems like FGU closes but doesn't auto-restart. So I have to launch the program again, and run the Check for Updates again, which then patches all the modules. Perhaps the same bug which causes the restart to fail is also causing an incomplete patching process?

Zacchaeus
February 25th, 2020, 21:19
In my case when I looked at the updater log the reason it stopped was a permissions issue (it couldn't delete the old file before continuing). I would have reported it at the time but I knew it was being worked on so I just assumed that this was part of the problem and you knew about it. Should perhaps have not assumed that.

Topdecker
February 26th, 2020, 00:15
The only odd thing to transpire is that last week, I installed over the top of my existing install to handle the problems that were going on then with updates.

Top

redeyesofnight
February 26th, 2020, 18:09
In my case when I looked at the updater log the reason it stopped was a permissions issue (it couldn't delete the old file before continuing). I would have reported it at the time but I knew it was being worked on so I just assumed that this was part of the problem and you knew about it. Should perhaps have not assumed that.

I have seen this issue crop up before, but it is difficult determining exactly why the file can't be deleted and what's a good way to resolve this.
As far as I can tell for this specific issue, FGUpdaterEngine is doing its work properly, launching FantasyGroundsUpdater_Old.exe properly (which does the legwork of removing the old updater files and copying in the FantasyGroundsUpdater_NEW).

There are 3 things this program is deleting: FantasyGroundsUpdater.exe, FGUpdaterEngine folder (containing FGUpdaterEngine.exe), and if/when those complete properly, the FantasyGroundsUpdater_NEW folder.

The code in FantasyGroundsUpdater.exe is set to wait until the FGUpdaterEngine process closes, so it *shouldn't* be an issue of the program being open.

If anyone does happen to come across this issue and has FantasyGroundsUpdater.log in their Application folder (particularly with any messages about failed deletion), I would appreciate that.
This would at least give me insight into which deletion is problematic, and then to figure out why. I'd guess that some file is being accessed and not released properly, but it's tricky to know.

I'll check if anyone's had a similar issue with a log already.

Neovirtus
February 27th, 2020, 01:53
Just had this issue again.


[2/26/2020 8:38:09 PM] [NOTICE] Launcher scene starting.
[2/26/2020 8:38:16 PM] [<color="red">ERROR</color>] Updater: Unable to locate program (X:/FantasyGrounds/FantasyGroundsUpdater.exe)


FantasyGroundsUpdater.txt

ARGS:
CheckNewUpdater(): True
RUNNING AS FantasyGroundsUpdater_OLD.exe
New Updater Valid: True
Replace with new updater
DELETE X:\FantasyGrounds\FantasyGroundsUpdater.exe
Recursive Delete: X:\FantasyGrounds\FGupdaterEngine
Deleting parent X:\FantasyGrounds\FGupdaterEngine
Could not delete parent: 'X:\FantasyGrounds\FGupdaterEngine' System.UnauthorizedAccessException: Access to the path 'FGUpdaterEngine.exe' is denied.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at FantasyGroundsUpdater.Program.RecursiveDelete(Stri ng deleteDir, Boolean deleteParent)
Error: Could not delete path 'X:\FantasyGrounds\FGupdaterEngine' Another program may be accessing this folder, please make sure FantasyGrounds and FGUpdaterEngine are closed and relaunch FantasyGroundsUpdater. If this does not work, please try deleting the folder manually. If this fails, please restart computer and relaunch FantasyGroundsUpdater.


Everything worked fine after I copied the "new" updater from the folder to the main directory.

Zacchaeus
February 27th, 2020, 11:05
Yep, that was the error I got too.

Topdecker
March 21st, 2020, 16:43
New week, same problem.

Topdecker
March 21st, 2020, 16:52
I was wrong. This one is worse.

Now it complains about not being able find fgupdaterengine.exe. So I have copied that and all of data and folders that it needs. This is a couple of steps in the wrong direction.

Topdecker
March 21st, 2020, 16:55
And after I copied every thing over, it deleted it and complained that it is missed. Which now leaves my install broken.

bmos
March 21st, 2020, 17:47
I saw this on a number of new installs. I think that the updater is launching without admin privileges on first launch (I don't remember seeing the UAC window) although I know at least one person who this didn't happen to so there must be more to it.
Perhaps a new installer exe that includes the latest version of the launcher?

Topdecker
March 21st, 2020, 22:19
So I downloaded the web installer - same error message.

Decide to uninstall it and start fresh - same error message. It is pretty much broken. If anyone knows the steps for a manual uninstall, that'd be handy about now.

UPDATE: Deleted the uninstall keys from the registry and then the files and folders in c:\programs files\smiteworks. That appears to have gotten it cleaned out.

Top

Takashima
April 25th, 2020, 18:30
I have the same issue when clicking on "SETTINGS" button.
Fresh installation of FGU (ultimate), never had FG before

[4/25/2020 7:26:05 PM] FGU v4.0.0 ULTIMATE (2020-04-23)
[4/25/2020 7:26:05 PM] Launcher scene starting.
[4/25/2020 7:26:07 PM] [<color="red">ERROR</color>] Updater: Unable to locate program (C:/Users/Philippe/Desktop/FantasyGroundsUpdater.exe)

Taka

Takashima
April 25th, 2020, 19:08
for info, I resolved the issue by changing the properties of the shortcut on the desktop: the "start in" location was empty, and program was trying to find files in same location as the shortcut.
After putting the full path where the *exe is located, errors does not occur anymore.

Happy DDing,
Taka

LordEntrails
April 25th, 2020, 19:19
The updater should not be looking on your desktop. Did you change the installation location?

Takashima
April 25th, 2020, 21:35
The updater application does not, but the main Fantasy ground application itself does: the desktop shortcut does not have a "start in" location, so it stays in current location (ie, desktop).
(I sent some screenshot by mail to support)
Manually fixing the shortcut to fill in the "Start in" field resolved the issue.

No idea why shortcut was created that way in my case, though.