Skip to content
⌘ NSIS Forum Archive

NSIS 2.46/3.0b Installer hangs on Windows Server 2012 R2

4 posts

gaaroo#

NSIS 2.46/3.0b Installer hangs on Windows Server 2012 R2

Hi, I'm new with NSIS and I'm trying to create an installer for my program that would work for most versions of windows including windows server 2012 R2. My installer has some custom pages with different radio button choices that the user can choose from. In the custom page functions there are a few "copyfiles" commands used that will copy the correct configuration files to the installed folder. However, the copyfiles command is causing my installer to hang (On windows server 2012 R2). When I look at the process in processExplorer or taskManager, I see that the context switch keeps increasing, and roughly 50% of the CPU is taken up by the process.

Does anyone have similar issues? Or have a solution or tip I can try to solve this?

Any help or pointers would be great!

Thanks!
Anders#
Does the operation ever complete or does it hang forever?

The copyfiles command is just a thin wrapper around the SHFileOperation function.

Can you run Process Monitor and see if it is doing any kind of filesystem operation at all?
gaaroo#
The process never completes, and the context switch count just keeps going up from what I can see in process explorer. I've tried just calling copyfiles to copy file from c:\folder1\1.txt to c:\folder2\1copied.txt and it hangs there too so i don't think it's a permission thing. The file actually gets copied over, but the thread hangs after copying the file.

It doesn't seem like it's doing any file operations while the CPU goes crazy. I've left it running for a couple of days to see if it finishes, but still not finishing.
gaaroo#
Weird but when I added /SILENT with the copyfiles call it works without hanging.

Thanks for your help!