Page 1 of 1

Installation Error on Windows XP SP3

Posted: Tue Nov 04, 2008 1:18 am
by windozer
I don't know why, but as for version 1.95.2 I get an error when trying to install XnView. I wanted to upgrade from version 1.94 and started the installer. It copied the files, but when it was almost finished, a dialog popped up, something like: "Cannot register XnView Shell Extension ... error with regsvr32.exe ..." It offered then to 'Abort', 'Ignore' or 'Cancel'. I chose 'Abort' and it said that all changes had been rolled back.

I tried several times, also after reboot, but same error. However, although I choose 'Abort', XnView surprisingly was upgraded when I started it. I expected to see the old version as it claimed to roll back changes. But the new icons showed that something must have changed. The information box showed v1.95.2 then. It seems that only the Shell Extension wasn't upgraded, although it is also working. I also tried to install the Shell Extension with the XnView Shell Extension installer and got the same error.

Also I tried to find out about the service regsvr32.exe and it seems to run properly. Becaue in command prompt I can start it without problems from anywhere. Are there others having this problem?

ZIP-ZIP-ZIP------

Posted: Tue Nov 04, 2008 1:59 am
by Clo
:arrow: windozer

:) Hello ! Welcome aboard !
I don't know why, but as for version 1.95.2 I get an error when trying to install XnView. I wanted to upgrade from version 1.94 and started the installer. …
• Bad idea, IMHO… I upgrade always “by hand” from the ZIP file :wink:
…error with regsvr32.exe ..."
• Yes, it's an error I got a while ago, simply using the <register.bat> file…
- Searching the forum, you'ld probably find out threads about that.
• Indeed, when the new ShellExt isn't updated, the old one works still.
- To update ShellExt, I make like below :

1. Ensure you that XnView is not running,
2. Rename <XnViewShellExt.dll> as <XnViewShellExt.dll.old> for instance.
3. Copy the new <XnViewShellExt.dll> into its sub-folder …\ShellEx\*.* from the ZIP archive.
- Because some mysterious oddness of Win, you can't delete the "old" file on the spot.
- The old library'll be used till you reboot the PC, then the new one will be,
and you can delete the old one without any problem…

:mrgreen: Kind regards,
Claude
Clo

Thank you

Posted: Thu Nov 06, 2008 2:46 am
by windozer
Thank you very much! That worked! :D

Posted: Thu Nov 06, 2008 12:50 pm
by JohnFredC
Some softwares require a post-installation reboot for situations such as this one.

Pierre? Maybe XnView should also require (or at least request) a reboot after an install that upgrades the shell extension.

For those who don't understand this issue, it looks bad for an XnView Setup to fail! And even for those who do understand, the current state of affairs is surely an inconvenience.

Posted: Thu Nov 06, 2008 3:12 pm
by xnview
To install correctly the shell extension, previous version must uninstalled and session closed before to install the new version...

Posted: Thu Nov 06, 2008 10:50 pm
by XnTriq
foxyshadis ([url=http://newsgroup.xnview.com/viewtopic.php?p=44685#44685]1.90: if Shell Extension is already in use, it can't be[/url]) wrote:In the installer, you can always add these steps to the script:

taskkill /f /fi explorer.exe
<unregister>
explorer.exe

Taskkill only exists on xp by default though, so it'd have to be an xp-only segment. Alternately, you could just stuff the HKLM\...\RunOnce key with a batch file to do the copy/register, like most installers do, and tell the user the new shell extension will be finished after a reboot.

(Or you could always bundle a tool to search all processes for references to the file, and forcibly close that file handle; less intrusive on the user, if a bit less stable.)