Jump to content

Featured Replies

  • Author

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,23
Name = %NAME%,0x0000000A,35

Edited by George King

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,23
Name = %NAME%,0x0000000A,35

well you can't use 35 because they are not in All User

they are in UserProfile so replace the 35 with 26

that should do the trick

Edit:

and you need to add the subdir also

(i don't know if you already added it or not)

Edited by DaRk MaDnEsS

  • Author

well you can't use 35 because they are not in All User

they are in UserProfile so replace the 35 with 26

that should do the trick

Edit:

and you need to add the subdir also

(i don't know if you already added it or not)

Don

Don

  • Author

Dont know how, u making this icons:

[WindowsLiveMessenger.Shortcut1]
Name = %NAME%,0x00000008,23
CmdLine = 16422,"Windows Live\Messenger","msnmsgr.exe"
WorkingDir = 16422,"Windows Live\Messenger"
InfoTip = %TIP%

[WindowsLiveMessenger.Shortcut2]
Name = %NAME%,8,26
SubDir = "Microsoft\Internet Explorer\Quick Launch"
CmdLine = 16422,"Windows Live\Messenger","msnmsgr.exe"
WorkingDir = 16422,"Windows Live\Messenger"
InfoTip = %TIP%

Can you post deleting code?

  • Author

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.EXE

P.S. I

Try adding the /T to the end like in the example

Examples:
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"
;or
11,,tskill.exe,,,."MSNMSGR"

  • Author

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 by George King

Thats EXACTLY! what I had

no 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

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",8

Edit:

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 by DaRk MaDnEsS

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...