I have a problem with Inno Setup.
I'm using resolution detection script in [Code]
section from here:
INNO Setup: How to get the primary monitor's resolution?
And now I want to put xres
and yres
values to [Registry]
section of my installer which looks like this.
Root: HKCU; Subkey: "Software\MyApp\Settings"; Flags: uninsdeletekey; ValueType: dword; \
ValueName: "ScreenWidth"; ValueData: "XRES"
Root: HKCU; Subkey: "Software\MyApp\Settings"; Flags: uninsdeletekey; ValueType: dword; \
ValueName: "ScreenHeight"; ValueData: "YRES"
I tried this method How to use a Pascal variable in Inno Setup?, but I can't get it work. I tried to solve the problem by myself many times, but I give up...
Can someone help me and explain how to do that?
I'm newbie with Inno Setup, and especially with Pascal.