George King Posted October 14, 2009 Author Share Posted October 14, 2009 (edited) Great Darky, it works, and what about deleting Quick Launch icon? I dont know how do it... My current code (first line work), but dont know how delete it...Name = %NAME%,0x0000000A,23Name = %NAME%,0x0000000A,35 Edited October 14, 2009 by George King Quote Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2009 Share Posted October 14, 2009 (edited) Great Darky, it works, and what about deleting Quick Launch icon? I dont know how do it... My current code (first line work), but dont know how delete it...Name = %NAME%,0x0000000A,23Name = %NAME%,0x0000000A,35well you can't use 35 because they are not in All User they are in UserProfile so replace the 35 with 26that should do the trickEdit: and you need to add the subdir also (i don't know if you already added it or not) Edited October 14, 2009 by DaRk MaDnEsS Quote Link to comment Share on other sites More sharing options...
George King Posted October 14, 2009 Author Share Posted October 14, 2009 well you can't use 35 because they are not in All User they are in UserProfile so replace the 35 with 26that should do the trickEdit: and you need to add the subdir also (i don't know if you already added it or not)Don Quote Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2009 Share Posted October 14, 2009 Don Quote Link to comment Share on other sites More sharing options...
George King Posted October 14, 2009 Author Share Posted October 14, 2009 Dont know how, u making this icons:[WindowsLiveMessenger.Shortcut1]Name = %NAME%,0x00000008,23CmdLine = 16422,"Windows Live\Messenger","msnmsgr.exe"WorkingDir = 16422,"Windows Live\Messenger"InfoTip = %TIP%[WindowsLiveMessenger.Shortcut2]Name = %NAME%,8,26SubDir = "Microsoft\Internet Explorer\Quick Launch"CmdLine = 16422,"Windows Live\Messenger","msnmsgr.exe"WorkingDir = 16422,"Windows Live\Messenger"InfoTip = %TIP%Can you post deleting code? Quote Link to comment Share on other sites More sharing options...
George King Posted October 14, 2009 Author Share Posted October 14, 2009 Ok Darky, got it. But there is new problem... If messenger running. I added this, but not working...[Uninstall.msmsgs]RunPreSetupCommands = ExitWindowsLiveMessenger:1[ExitWindowsLiveMessenger]TASKKILL /F /T /IM MSNMSGR.EXEP.S. I Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 14, 2009 Share Posted October 14, 2009 Try adding the /T to the end like in the exampleExamples: TASKKILL /IM notepad.exe TASKKILL /PID 1230 /PID 1241 /PID 1253 /T TASKKILL /F /IM cmd.exe /T TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*" TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM * TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"BTW this only works if you call the INF section using advanced INF install or advpack.dll, I have a trick that uses UnRegisterDLLs (because it executes before CopyFiles) to do this for Optional Components uninstall (see plusoc.inf of my MCE addon)[Uninstall.msmsgs]UnregisterDLLs = ExitWindowsLiveMessenger[ExitWindowsLiveMessenger]11,,taskkill.exe,,,."/F /IM MSNMSGR.EXE /T";or11,,tskill.exe,,,."MSNMSGR" Quote Link to comment Share on other sites More sharing options...
George King Posted October 15, 2009 Author Share Posted October 15, 2009 (edited) Now i´m confused, i tried all of you posted (also seen plusoc.inf), but not working... :ranting:EDIT: Got it, it must be like this:11,,taskkill.exe,,,"/F /IM MSNMSGR.EXE /T" Edited October 15, 2009 by George King Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 15, 2009 Share Posted October 15, 2009 Thats EXACTLY! what I had Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2009 Share Posted October 15, 2009 Thats EXACTLY! what I hadno for some reason there was a "." you added i think it's a mistake you did there << i didn't notice it my self until i made a second look Quote Link to comment Share on other sites More sharing options...
George King Posted October 15, 2009 Author Share Posted October 15, 2009 All now work 100% but if i uninstall messenger, thne in Program Files is folder Windows Live withou files, only include Messenger, Contacs, Installer, all folders are empty... Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2009 Share Posted October 15, 2009 (edited) All now work 100% but if i uninstall messenger, thne in Program Files is folder Windows Live withou files, only include Messenger, Contacs, Installer, all folders are empty... try add this line RunPostSetupCommands =Delete.Folders[Delete.Folders]RUNDLL32 advpack.dll,DelNodeRunDLL32 "%16422%\Windows Live\Messenger",8Edit:Just in case it didn't work try this Run = Delete.Folders[Delete.Folders]CommandLine="CMD /Q /C RD /S /Q ""%16422%\Windows Live\Messenger"" "TickCount=500 Edited October 15, 2009 by DaRk MaDnEsS Quote Link to comment Share on other sites More sharing options...
George King Posted October 16, 2009 Author Share Posted October 16, 2009 I tried this:DelDirs = WindowsLiveMessengerUninstall[WindowsLiveMessengerUninstall]"%16422%\Windows Live\Messenger""%16422%\Windows Live\Contacts""%16422%\Windows Live\Installer"But don Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 16, 2009 Share Posted October 16, 2009 DelDirs will not work if even a single file is present in the folder... 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.