Search code examples
windowsnsismsinfo32

msinfo32 won't run in NSIS under Windows XP


The following NSIS line refuses to run for some reason (returns immediately) under Windows XP:

  ExecWait ' "$PROGRAMFILES\Common Files\Microsoft Shared\MSInfo\msinfo32" /report "$DESKTOP\msinfo.log" '

If I run msinfo32 in the command line, it runs properly:

C:\Documents and Settings\Admin> "%PROGRAMFILES%\Common Files\Microsoft Shared\MSInfo\msinfo32" /report "%APPDATA%\..\Desktop\msinfo.log"

Why?

And how do I make it work?


Solution

  • Remove spaces after single quotes and add .exe for msinfo. Worked for me.