Skip to content
⌘ NSIS Forum Archive

Always add company\app in install location

4 posts

xilay#

Always add company\app in install location

Hello (and sorry for my english),

I use MUI and my default install directory is C:\Company\App .
If the user change this directory, I will have for example D:\Program Files\App
But I need to have D:\Program Files\Company\App

Have you got an idea to do that?
Thanks
glory_man#
I can suggest folowing solution:

!define brand "Company\App"
InstallDir "c:\${brand}\"
...
Function .onVerifyInstDir
StrCpy $INSTDIR "$INSTDIR\${brand}"
FunctionEnd