Search code examples
windows-vistainstallationnsis

NSIS InstallDir in Vista / XP


I created installer via NSIS. "c:\program files\myapp" is default folder for my application. But I need another default folder (for example c:\users\\AppData\myapp) in Windows Vista.

I found lot of Functions to determine Windows version, but I cannot call them before defining InstallDir variable. Any ideas how to do it?


Solution

  • You can set $instdir in .OnInit, or use MultiUser.nsh