Skip to content
⌘ NSIS Forum Archive

Problem with "Page directory" and "InstallDir"

3 posts

jonwil#

Problem with "Page directory" and "InstallDir"

I have an NSIS installer. It contains an InstallDir entry to set the default install directory to c:\westwood\renegade and a Page directory entry to let the user choose the install path.
It also contains an .onVerifyInstDir function to check if $INSTDIR\data\always.dat exists or not.

The problem I am having is that if the user selects, say, C:\westwood\apbfds as the install path using the "browse" button (and that folder contains the right file) then the "destination folder" text box will contain C:\westwood\apbfds\renegade and not C:\westwood\apbfds

Can anyone sell me what I can do to stop it adding the \renegade to the end?
T.Slappy#
Try playing with the "\" at the end of desired path - see manual as Afrow suggested 🙂