2

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?

Eternal Learner
  • 2,602
  • 5
  • 27
  • 38

2 Answers2

2

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

sha
  • 17,824
  • 5
  • 63
  • 98
1
ExecWait '"$COMMONFILES\Microsoft Shared\MSInfo\msinfo32" /report "$temp\msinfo.log"'

Like sha says, remove whitespace, and you should be using the $COMMONFILES[32/64] constant, not $PROGRAMFILES

Anders
  • 97,548
  • 12
  • 110
  • 164