Old 13th October 2014, 05:27   #1
roonwhit
Junior Member
 
Join Date: Jan 2004
Location: Perth, Western Australia
Posts: 14
Stu,

I don't have a SysNative folder, but calling to Notepad is Windows is not returning any value.

David
roonwhit is offline   Reply With Quote
Old 13th October 2014, 08:14   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
Alright, try this. I've added an attachment with a test script. Extract to a folder, compile and run it. Then paste up the result here. Running this gives me:
Quote:
makensisw-x86.exe(0)=|0|
makensisw-amd64.exe(6)=|6|
Completed
Attached Files
File Type: zip getbinarytype.zip (132.2 KB, 118 views)

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 14th October 2014, 01:20   #3
roonwhit
Junior Member
 
Join Date: Jan 2004
Location: Perth, Western Australia
Posts: 14
Jason,

Your code works perfectly on my machine at home, but at work, both files return 0.

So something about NSIS on my machine at work is broken! I'm using HM NIS Edit Portable.

David
roonwhit is offline   Reply With Quote
Old 14th October 2014, 02:01   #4
roonwhit
Junior Member
 
Join Date: Jan 2004
Location: Perth, Western Australia
Posts: 14
Installed 3.0b1 - scripts now correctly return expected values, both for Jason's code and my original ones. So issue was bug in version of compiler installed with Portable Apps version of HM NIS Edit.

Sorry for the distraction.
David
roonwhit is offline   Reply With Quote
Old 14th October 2014, 02:48   #5
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
No problem . When there's a problem, there is no such thing as a distraction. We tested through it and fixed it .

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 15th October 2014, 12:35   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
Quote:
Originally Posted by roonwhit View Post
Installed 3.0b1 - scripts now correctly return expected values, both for Jason's code and my original ones. So issue was bug in version of compiler installed with Portable Apps version of HM NIS Edit.
Is the portable version using the NSIS fork from scratchpaper.com (2.46.xyz)? It has issues with calling functions that are exported 3 times (some functions in kernel32 and shell32 are exported as plain and with A and W suffix)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump