I can't believe my life is so boring and sad, but I spent most of today solving this.
This problem affects all Windows XP SP3 machines I have access to - it didn't want to install the Batch Processor on any of them. However, it installed onto Windows 7 without any problems. So I went on to compare the ProcMon output of the successful and unsuccessful cases.
I managed to trace the problem to certain registry keys. It looks like shell32.dll couldn't get the runas command (cmd.exe command path and parameters) from either of these registry keys:
HKCU\Software\Classes\batfile\shell\runas
HKCU\Software\Classes\Unknown\shell\runas
HKCU\Software\Classes\*\shell\runas
HKCR\batfile\shell\runas
HKCR\Unknown\shell\runas
HKCR\*\shell\runas
None of these keys contain the runas command in XP SP3, but one of them does in Win7 (and I assume Vista), where the installation was successful:
HKCR\batfile\shell\runas\command\(Default)
Type: REG_EXPAND_SZ
Length: 82
Data: %SystemRoot%\System32\cmd.exe /C "%1" %*
So I figured creating the key in XP will solve the problem. To make sure I used the correct path on my system, I checked and found that XP does have a runas command, but in a different place: HKLM\SOFTWARE\Classes\batfile\shell\runas\command. The data type here is REG_SZ instead of REG_EXPAND_SZ, but I hoped it wouldn't make a difference - the data string was the same.
So I manually added runas\command into the already existing HKCR\batfile\shell, entered %SystemRoot%\System32\cmd.exe /C "%1" %* into the (Default) value's data field, then restared Windows.
It still didn't work, because after successfully finding the cmd path, now it went looking for the non-existent HKCR\batfile\shell\runas\ddeexec. On Win7 it did nothing like this, so I figured the data type may be significant.
In Windows XP you cannot create a (Default) value of the REG_EXPAND_SZ type from the regedit UI . You need to create the key by using a .reg file. The string needs to be in hex, using hex(2) as the type (credits to DentArthurDent: http://forum.piriform.com/lofiversion/i ... 12205.html).
So I deleted the runas key I created before, and used this script to add the same as before, but using REG_EXPAND_SZ instead of REG_SZ:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\batfile\shell\runas]
[HKEY_CLASSES_ROOT\batfile\shell\runas\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,\
6d,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,31,\
00,22,00,20,00,25,00,2a,00,00,00
(This is not guaranteed to work on your machine, and I take no responsibility if you break your registry. Also, I can't attach a .reg file to this post, so if you want to use this, you need to create the .reg file for yourself. Remember to leave a blank line at the end!)
After a restart, I could install the Batch Processor! :wink: It was still weird though, because it asked for Administrator credentials even though I was using an admin account.
:?: I've got one question though - how do I set the output format? It uses PNG for me, but I'd like to use JPG (or whatever the original format is). I couldn't find a way to set a default format.
Thanks!