skEwb, on 19 July 2011 - 02:42 PM, said:
Hey this unfortunately does not add anything in the registry on WXP and W7.
I converted it over to the proper 7-zip SFX format and it gives 0 errors, but doesn't work:
;!@Install@!UTF-8!
OverwriteMode="1"
RunProgram="hidcon:cmd /c \"%APPDATA%\\WhileIdle\\WhileIdle.exe\""
RunProgram="hidcon:cmd /c \"reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v Whileidle /t REG_SZ /d \"\"%APPDATA%\\WhileIdle\\WhileIdle.exe\"\"\""
InstallPath="%APPDATA%\\WhileIdle"
GUIMode="2"
;!@InstallEnd@!
Thanks
I'm sure, beside giving you a working config.txt , you would like to know why your own config.txt is failing and with no error.
Just a quick tip: Use Process Explorer from sysinternals to see if your own silent installer is hang silently
As in your case, whileidle.exe is started but your silent installer expect it to close before proceeding to execute the reg add command. Hence you do not see any registry added.
Also to add troubleshooting your own config, do not use hidcon:
Wait until you build your config.txt and tested fully functional, then start to hid those console box.
There is a slight error in my own config provided. I missed out the /f in reg add command. Running it once, it's okay. Running 2nd time, will hang. So modify as follow:
This is a functional config.txt, not as best as gora's config.txt. The whole idea is to keep it as close to your (skEwb) original config.txt as possible so you'll appreciate what went wrong.
;!@Install@!UTF-8!
OverwriteMode="1"
RunProgram="hidcon:cmd /c start \"NowaitStart\" \"%APPDATA%\\WhileIdle\\WhileIdle.exe\""
RunProgram="hidcon:cmd /c reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v Whileidle /t REG_SZ /d \"%%T\\WhileIdle.exe\" /f"
InstallPath="%APPDATA%\\WhileIdle"
GUIMode="2"
;!@InstallEnd@!
While on this thing, perhaps we (all users of this great tool) could share some common tips that can help user avoid mistake that user generally made. This way we learn faster & better in understanding/appreciating this tool capability & its limitation. (I hope these tips can make it into the help documentation eventually)
What I see right now is some user who have config.txt problem just doesn't know what to do or doesn't have a clue what went wrong.
Thanks for reading & Cheers