Archive: Blank text forms on Server 2008R2 64-bit


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?


Solved! Turns out that this code on the script was the culprit:


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.

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.


Well, you should only turn off the redirection when installing files since it breaks normal .dll loading etc


Ah, yeah, I guess it makes sense that it should affect all filesystem commands globally. I'll remember that.


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)