Skip to content
⌘ NSIS Forum Archive

nsExec Question

2 posts

Yathosho#

nsExec Question

to uninstall the windows messenger, one can type the following command in the commandline
RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove
when use the following line in nsis
nsExec::Exec 'RunDLL32.exe advpack.dll,LaunchINFSection "$WINDIR\INF\msmsgs.inf,BLC.Remove"'
i get an error message (Error: could not locate INF file). same happens, when i replace $WINDIR with %windir%.

any ideas what the problem is?
Yathosho#
nevermind, it works when i changed the quoting
nsExec::Exec "RunDLL32.exe advpack.dll,LaunchINFSection $WINDIR\INF\msmsgs.inf,BLC.Remove"
i think to remember, that the opposite happened in a previous version of nsis.