Old 1st February 2011, 11:51   #1
Henrik Holst
Junior Member
 
Join Date: Feb 2011
Posts: 2
Blank text forms on Server 2008R2 64-bit

Hi,

I have noticed a very strange problem, when running the resulting installer (NSIS 2.46) on a Windows Server 2008R2 64-bit version then lot's of text fields are blank. For example the whole license screen is completely blank. When choosing installation folder location then the "Destination Folder" inout is blank until one selects the whole form with left-click and then the path magically appears.

If one clicks the "Browse" button then there is no possibility to choose paths since nothing is displayed. Running the very same installer on a 32-bit XP shows no problems at all ?!

I have attached screenshots from the installation folder screen and the browse location screen.

Anyone else seen this problem?
Attached Thumbnails
Click image for larger version

Name:	location.png
Views:	122
Size:	22.6 KB
ID:	48444   Click image for larger version

Name:	browser.png
Views:	127
Size:	7.3 KB
ID:	48445  
Henrik Holst is offline   Reply With Quote
Old 3rd February 2011, 07:55   #2
Henrik Holst
Junior Member
 
Join Date: Feb 2011
Posts: 2
Solved! Turns out that this code on the script was the culprit:
code:

Function .onInit
${If} ${RunningX64}
${DisableX64FSRedirection}


So if one disables FSRedirection in .onInit then NSIS experiences troubles with some of it's funtions such as some form fields, and the file browser.
Henrik Holst is offline   Reply With Quote
Old 3rd February 2011, 11:24   #3
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Can you please show us some example code (as short and simple as possible) that shows this bad behavior? If it's indeed caused by redirection, it might very well be a bug in NSIS. You can use http://nsis.pastebin.com or an attachment.
MSG is offline   Reply With Quote
Old 3rd February 2011, 14:58   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,288
Well, you should only turn off the redirection when installing files since it breaks normal .dll loading etc

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 3rd February 2011, 16:12   #5
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Ah, yeah, I guess it makes sense that it should affect all filesystem commands globally. I'll remember that.
MSG is offline   Reply With Quote
Old 3rd February 2011, 20:13   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,288
It is per thread, not per process, but there is no official documentation about how many threads NSIS uses (Most plugins depend on the GUI running in the same thread as the function callbacks)

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