TRuLLi Posted August 10, 2006 Posted August 10, 2006 (edited) I was just browsing my wpi.log to check if everything went ok, most "returned codes" were 0 or -1, but with 1 .regfile i saw the following return code:-----donderdag 10 augustus 2006 19:40:23 Program: Add Open with Notepad UID: ADDNOTEPAD Order: 900003 Category: Shortcuts & Cleanup donderdag 10 augustus 2006 19:40:25 Reg Before Success (returned code -1073741502): "RegEdit /S D:\SETUP\WPI\registry\ennotepadrightclick.reg" donderdag 10 augustus 2006 19:40:25 Finished installationcould anybody explain me what this return code means? Edited August 10, 2006 by TRuLLi
zorphnog Posted August 10, 2006 Posted August 10, 2006 My guess is that its a return code of one of your entries in the regfile, but I don't know. Regedit is really more of a GUI editing tool, and does not return any sensible codes. It would probably be better to use reg.exe instead of regedit.exe. Reg.exe is a ms-dos based tool returns 0 for success and 1 for failure. Try something like:reg import "%wpipath%\registry\ennotepadrightclick.reg"Reg.exe comes builtin with WinXP Pro and Win2k3 Server, for Win2k itis available in this package:http://www.microsoft.com/windows2000/downl...pporttools.mspx
TRuLLi Posted August 10, 2006 Author Posted August 10, 2006 I just used the "regb" option from wpi, which uses regedit.. so this code isnt a normal code?
zorphnog Posted August 10, 2006 Posted August 10, 2006 Well I wouldn't say that the code is irregular or necessarily bad. It could be anything: a warning, an uninitiated integer, who knows. My point about reg.exe is that it sends either success or failure and nothing in between. Have you looked to see if the reg entries imported correctly?
TRuLLi Posted August 10, 2006 Author Posted August 10, 2006 then i'd say you suggest that the next version of wpi uses reg.exe instead of regedit /S no, i haven't looked into it yet, got a strange bug in my wpi. had no time to look into it yet, but after it adds this registry value (it's noting irregular in there), it suddenly reboots. dunno what the cause of this is yet..
mritter Posted August 11, 2006 Posted August 11, 2006 Made a note of reg.exe. Just may have to switch.
Djé Posted August 11, 2006 Posted August 11, 2006 Made a note of reg.exe. Just may have to switch.Mark, beware that as noted above, reg.exe is not included in W2K. So it will have to be clear for those users that they have to download it.
Kelsenellenelvian Posted August 11, 2006 Posted August 11, 2006 Lets not go with something that doesnt exist for some users.
zorphnog Posted August 11, 2006 Posted August 11, 2006 I agree. Those who want to use it, can change the code in the handleCommand function of installer.js.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now