jing
jing

Reputation: 2021

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?

Upvotes: 0

Views: 1265

Answers (1)

Anders
Anders

Reputation: 101606

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

Upvotes: 1

Related Questions