On compiling the code however, it comes up with "Error: Can't add entry, no section or function is open!"ReadRegStr $1 HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\trainz.exe" "Path"
InstallDir $1
What am I doing wrong and how do I fix it?