|
|
|
|
#1 |
|
Junior Member
Join Date: Jul 2010
Posts: 14
|
Deleting compatibility keys
Lately, I've been having issues with users turning on compatibility mode and breaking my application. I would like to remove the compatibility registry key through the installer rather then walk the user through doing so manually.
so far, it looks like the following: DeleteRegKey HKCU "$INSTDIR\APP\APP.EXE" But this does not delete the affected key. Am I doing something wrong? Is this even the proper key I should be deleting? Any help is appreciated. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You need to specify the registry path, the key you are after is somewhere under \Software\Microsoft, perhaps Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Jul 2010
Posts: 14
|
Quote:
DeleteRegKey HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\$INSTDIR\APP\APP.EXE" looks fine, but the registry key is still there, must be something else I'm missing or overlooking. |
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2010
Posts: 14
|
Looks like I was also using the wrong function, finally figured it out. The line that I tested and confirmed working is this:
DeleteRegValue HKCU "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" "$INSTDIR\APP\APP.EXE" |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|