View Single Post
Old 15th May 2007, 18:36   #3
[NSIS Dev, Mod]
kichik's Avatar
Join Date: Oct 2001
Location: Israel
Posts: 11,343
  1. File path may contain quotes, so it's better to use R0 instead of '$R0' when passing it to System::Call.
  2. /NUL is not a valid parameter. Either use n for NULL or pass a real pointer.
  3. You must allocate a buffer for GetFileVersionInfo with System::Alloc. You just passed it pointer to an integer which it fills and then some. That's corrupting the heap.
Once fixed, I think it makes a good candidate for a NSIS Example wiki page..
Everything makes a good candidate for that. Feel free to create Wiki pages with what you'd consider useful information.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote