Archive: Always add company\app in install location


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


What way you use to define install directory?


I can suggest folowing solution:


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

Oh thanks, perfect, exactly what I want :up: