Archive: install problem on Windows Server 2003


install problem on Windows Server 2003
A user today reported that a rather simple installer of mine installed fine for him on a Win XP system, but when he ran it on a Windows Server 2003 system, everything appeared to have gone fine except the application folder in Program Files didn't get created, and so no files were installed.

Does anyone have a clue as to what might cause this?

Thanks,

Brian Murphy
Austin, Texas

Here's the part of the script where the installing is done. I changed "ifnewer" to "try" and sent that to him to try, but I doubt it will matter.

InstallDir "$PROGRAMFILES\XLRotor Security Key Server"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show

Section "MainSection" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer

File /a /r "Files\*.*"


Are you dealing with the 64-bit version of 2003 server? If so, then the files were likely installed under the "Program Files (x86)" folder.


I will find out and report back.

Although, I did ask him to search the entire system for the files, and he said he did and did not find the files.


Another thing that comes to mind is that maybe the user just didn't have the proper permissions. You might change your code just slightly to check for errors. (It won't tell you WHICH error, but would at least alert you to problems during the install):


!include logiclib.nsh
...
Section "MainSection" SEC01
ClearErrors
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File /a /r "Files\*.*"
${If} ${Errors}
MessageBox MB_OK "Error copying files!"
${EndIf}
SectionEnd

(Or, you could change the MessageBox to a DetailPrint command so that problems are at least documented in the install log.)