Author Topic: Reinstalled PI1.7. The Update to 1.7.6.793 continues to fail  (Read 3269 times)

Offline MikeWiles

  • Newcomer
  • Posts: 31
Hi,

After many of the issues with the 1.8 RC I opted to go back and reinstall version 1.7.  After installation I'm prompted to do 19 updates.  18 of those updates will succeed, but the final one fails - the update to PixInsight iteslf.  Previous to the reinstall I had no issues.  The machine is running Windows 7 Professional (64-bit).   Below is the log file from the failed update.

2013-01-17 04:17:17 : Begin updater1
2013-01-17 04:17:17 : *******************************************************************************
2013-01-17 04:17:17 : This is PixInsight Updater stage one program version 01.00.08
2013-01-17 04:17:17 : Core application PID         : 1616
2013-01-17 04:17:17 : Target application directory : C:/Program Files/PixInsight
2013-01-17 04:17:17 : Source update directory      : C:/Users/mwiles/AppData/Local/Temp/PixInsight64-update/contents
2013-01-17 04:17:17 : *******************************************************************************
2013-01-17 04:17:17 : Waiting for the PixInsight Core application to terminate...
2013-01-17 04:17:18 : PixInsight Core application terminated.
2013-01-17 04:17:18 : Waiting for things to stabilize...
2013-01-17 04:17:20 : Begin update process.
2013-01-17 04:17:20 : Source updates database loaded: C:/Users/mwiles/AppData/Local/Temp/PixInsight64-update/contents/updates.xri
2013-01-17 04:17:20 : File removed: C:/Users/mwiles/AppData/Local/Temp/PixInsight64-update/contents/updates.xri
2013-01-17 04:17:20 : Begin file transfer process.
2013-01-17 04:17:21 : *** Error: Unable to create file: C:/Program Files/PixInsight/bin/PixInsight.exe: Win32 error (32): The process cannot access the file because it is being used by another process.

2013-01-17 04:17:21 : End updater1: ERROR


I saw in another similar post that there was an issue with folder permissions.  When I try to change the default folder for update downloads and apply the preferences I get an error:  SetGlobalInteger():  Low-Level API Error.

Any ideas?

Mike

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Reinstalled PI1.7. The Update to 1.7.6.793 continues to fail
« Reply #1 on: 2013 January 16 23:46:54 »
My guess is that there is another instance of PI running somewhere. Reboot your machine and try again.
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline MikeWiles

  • Newcomer
  • Posts: 31
Re: Reinstalled PI1.7. The Update to 1.7.6.793 continues to fail
« Reply #2 on: 2013 January 17 09:06:10 »
Thanks Georg,

There's not another instance of PI running.  I have double checked even the process monitor to ensure that there's not some background process going.  All of the other 18 updates have installed correctly.  It's only the last core update to PI 1.7.6.793 that fails.  I have attempted all of the usual workarounds such as rebooting the PC, disabling the automatic restart of PI after the update installs, etc. 

Additionally, I'm unable to update the preferences in 1.7 because of the LowLevelAPI error when I try to save the changes.  it appears that the 1.8 uninstall has left some things hanging out there or corrupted some registry/configuration settings.

Mike

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Reinstalled PI1.7. The Update to 1.7.6.793 continues to fail
« Reply #3 on: 2013 January 17 10:53:02 »
Hi Mike,

2013-01-17 04:17:21 : *** Error: Unable to create file: C:/Program Files/PixInsight/bin/PixInsight.exe: Win32 error (32): The process cannot access the file because it is being used by another process.

This error message basically describes the cause of the problem: the PixInsight Core executable file (or another process attached to it) is still running when the updater program attempts to replace it with an updated version. Note that the updater program thinks that the PI executable is already not running; otherwise it would abort the update task just after:

2013-01-17 04:17:17 : Waiting for the PixInsight Core application to terminate...

It is very unlikely that this is a permissions problem, since the folder:

C:/Users/mwiles/AppData/Local/Temp/

is just your temporary files folder. This folder cannot be write-protected for obvious reasons. On the other hand, the PixInsight updater application is digitally signed with a code-signing certificate (as all the executables included in the PixInsight package) and runs in privileged mode using UAC (User Access Control) technology, so it basically is able to write anywhere on your computer without limitations.

The PixInsight application does not use the Windows registry at all (only the installation program writes a single keyword to the registry, to remember the installation folder), so this cannot be the problem either.

If you uninstalled 1.8 RC1 and re-installed 1.7, there should be no problems. Have you changed anything else on your computer since you installed 1.8?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/