Geej Posted July 20, 2011 Share Posted July 20, 2011 So were you able to use keycodes.exe for anything useful for this particular problem, of did you only rely on the "200 = Ctrl + and 400 = Alt +" reference?Cheers and RegardsI face the same situation as you. keycodes.exe is not much use when using combined keystroke. I relied on "200 = Ctrl + and 400 = Alt +" reference only.Found a more reliable alternative solution. Query the shortcut's properties using Shortcut v1.11 (console tool, shortcut.exe)It returns a dec value. Then use windows calculator to convert dec to hexFor Ctrl + Alt +A, dec value return is 1601 which then converted to 641 in hex. tada @echo offShortcut /F:"%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System Tools\Disk Defragmenter.lnk" /A:Qpause bphlpt 1 Quote Link to comment Share on other sites More sharing options...
ricktendo Posted July 20, 2011 Author Share Posted July 20, 2011 Now all we need to know is how to set Run: Normal Window/Minimized/Maximized and well have EVERYTHING!!! covered Quote Link to comment Share on other sites More sharing options...
bphlpt Posted July 20, 2011 Share Posted July 20, 2011 @GeejThe Shortcut tool you found seems to be a wonderful way to confirm the keycode! ie when you have created the link along with the desired Hotkey, then the Shortcut Tool can then be used to verify what the keycode is that equates to that Hotkey. I guess we just have to rely on remembering the "200 = Ctrl + and 400 = Alt +" trick for the actual creating of the Hotkey keycode in the first place. Thank you for pursuing this so diligently.Cheer and Regards Quote Link to comment Share on other sites More sharing options...
Guest Posted October 3, 2011 Share Posted October 3, 2011 I need corrected of this command to use in inf file,i want unload with this commandor something like this,before delete file in uninstall sectionCMD /Q /S CD /D %16422%\Utility\T-Clock2010\Win32\clock.exe /exit Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 3, 2011 Author Share Posted October 3, 2011 You could use UnregisterDLLs to call it or RunPreSetupCommands, either way this is how that would go (might only work with advpack.dll,LaunchINFSection)[UnregDLLsection]16422,Utility\T-Clock2010\Win32,clock.exe,,,"/exit"; Or[RunPreSetupSection]"""%16422%\Utility\T-Clock2010\Win32\clock.exe"" /exit" mona 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 4, 2011 Share Posted October 4, 2011 thanks great work Quote Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2011 Share Posted October 12, 2011 You could use UnregisterDLLs to call it or RunPreSetupCommands, either way this is how that would go (might only work with advpack.dll,LaunchINFSection)[UnregDLLsection]16422,Utility\T-Clock2010\Win32,clock.exe,,,"/exit"; Or[RunPreSetupSection]"""%16422%\Utility\T-Clock2010\Win32\clock.exe"" /exit"Hii used below command to delete folders in uninstal section but in uninstalling show cmd windowhow can hide this window?RunPostSetupCommands = dirappdel[dirappdel]CMD /Q /C DEL /f /s /q """%16410%\SumatraPDF"""CMD /Q /C RMDIR /s /q """%16410%\SumatraPDF""" Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 12, 2011 Author Share Posted October 12, 2011 What are you using to call it?If you are using RunPre/PostSetupCommands add a :1 to the end of the name of the section you want to hide (dont add it to the actual section just the [uninstall] one, same as you do for tskill/taskkill)RunPreSetupCommands=Close.Sidebar:1[Close.Sidebar]TSKILL sidebarBut I would better recommend this for deleting folders[Del.Gadgets.Settings]RUNDLL32 advpack.dll,DelNodeRunDLL32 %16422%\%GADS%,8RUNDLL32 advpack.dll,DelNodeRunDLL32 %16422%\%SHGADS%,8RUNDLL32 advpack.dll,DelNodeRunDLL32 %16422%\%VISXORG%,1RUNDLL32 advpack.dll,DelNodeRunDLL32 %16412%\%WINSIDE%,8RUNDLL32 advpack.dll,DelNodeRunDLL32 %16412%\%WINLIVE%,8These are the numbers you can useDelete Folder1 // delete the directory only if it's empty2 // don't delete any sub-dirs; delete only the files4 // don't delete the dir itself8 // delete UNC [network] paths mona 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2011 Share Posted October 12, 2011 (edited) your tips very good now it hide cmd windowi using it to sure it actually delete folder and file,sometimes it dont delete with DelDirseven if i define folder.but also even when use TSKILL to kill exe process if on the same directory one txt file openeddirectory dont deleted.how can delete this folder?it can be do like below,add it uninstall section so on the next log off directory deleted,but i want deleteit without log offAddReg = Sum000.addreg[sum000.addreg]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\softs","Delete3",0,"cmd /c RD /S /Q ""%userprofile%\Application Data\SumatraPDF""" Edited October 12, 2011 by mona Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 12, 2011 Author Share Posted October 12, 2011 Try 16410AddReg = Sum000.addreg[Sum000.addreg]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\softs","Delete3",0,"RUNDLL32 advpack.dll,DelNodeRunDLL32 ""%16410%\SumatraPDF"",8" mona 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2011 Share Posted October 12, 2011 (edited) i know this with your tips but not possible do delete without RunOnceEx?actually i use this for folder have dll shell extensions for delete folder on the next logoff Edited October 12, 2011 by mona Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 12, 2011 Author Share Posted October 12, 2011 No, not if its in use Quote Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2011 Share Posted October 12, 2011 thanks best regards Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 12, 2011 Author Share Posted October 12, 2011 Anytime...gotta keep the legacy going, INF addons is a dying art form Quote Link to comment Share on other sites More sharing options...
Guest Posted October 21, 2011 Share Posted October 21, 2011 Now all we need to know is how to set Run: Normal Window/Minimized/Maximized and well have EVERYTHING!!! coveredhi rickcheck below linkthis for URL File Format to set window state,but seems dont work in inf file,or maybe somthing like thisShow Command =7(Nothing) Normal7 Minimized3 Maximizedhttp://www.cyanwerks.com/file-format-url.html Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 21, 2011 Author Share Posted October 21, 2011 Nice find and you are right it does not work, it only works with inside .url files wich are nothing really but .ini files with a .url extension (I use updateinis to create my bitlocker2go url, it does appear to work this way)[defaultinstall]UpdateInis=BitLocker2Go.ReadMe.AddUrl[BitLocker2Go.ReadMe.AddUrl]%01%\readme.url,InternetShortcut,,URL=http://go.microsoft.com/fwlink/?LinkId=129765%01%\readme.url,InternetShortcut,,ShowCommand=7 mona 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.