i'm new and excuse me for me english, i'm austrian.
I tried for a couple of days and search here in the forum and in the FAQ and in the documents, but i haven't found an solution.
I will install a addon for a Program. The program is existing installed on the pc's from the users. But i don't know, in which location. Under c:\programme oder d
:\program files and so one.
Now i have see the ReadRegStr but i become an error:
Error: command ReadRegStr not valid outside section or functionMy lines are here:
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Microsoft Games\Flight Simulator\9.0" "EXE Path"In the EXE Path (this is a String) there i will find the correct path to the application.
StrCpy $0 $INSTDIR ""
And in this path i will installe my file, as the same folder structure. Does this go? I have search and tried, but i have no idea what's wrong.
And the next was in my script:
OutFile setup.exeI know, any user will say, i should search in the forum, but believe me, i have search for a long time.
InstallDir $INSTDIR
.....
SetOutPath "$INSTDIR $0"
File "..\Microsoft Games\Flig
Seeming i'm too stupid.
🙄
I hope everyone can help me.
