Skip to content
⌘ NSIS Forum Archive

install direcotry select

3 posts

marcomop#

install direcotry select

Good afternoon.

When the user uses teh default program target directory for my installer, the installer works fine.

However, when the users select their own directory the installer appends my apps folder behind the installpath.

Is there a way to prevent this from happening.

thanks

marius
kichik#
Append a backslash to the parameter you pass to InstallDir. Instead of:
InstallDir "$PROGRAMFILES\Blah"
Use:
InstallDir "$PROGRAMFILES\Blah\"
For more information, see the documentation for InstallDir.