![]() |
InstallDir problem
Hi all,
I have a little problem with the automatic completion of a directory with InstallDir: I have two variables $CompanyName and $SoftwareName which are initialized into .OnInit function and I want to use them to append the installation directory. Then, I have the two following lines: InstallDir "$PROGRAMFILES\$CompanyName\$SoftwareName" and, into .OnInit function: StrCpy $INSTDIR "$PROGRAMFILES\$CompanyName\$SoftwareName" The problem is the auto-completion of the directory choosen by the user with the directory page: Only the value of the variable $SoftwareName is append to the directory choosen. It is obviously normal because NSIS appends only the string following the last backslash. :cry: Then, my question is: Is there a way to have my two variables appended to the directory choosen by the user? Thanks. :) |
You can use InstallDir $PROGRAMFILES\$CombinedVar and then copy something\something into $CombinedVar.
|
Yes!
Thank you very much!!! :) This is so simply, I did not even think to try that trick. :igor: |
| All times are GMT. The time now is 04:33. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.