Recently I was trying to read the "UninstallString" from the system registry and check if the uninstaller file exists.
The problem is that if the file path stored in the registry includes quotes, the IfFileExists function always returns false.ReadRegStr $R0 HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\My_App" \
"UninstallString"
IfFileExists $R0 +1 done
Example
if $R0 = C:\Program files\MyApp\uninstall.exe then IfFileExists returns true (file exists)
but
if $R0 = "C:\Program files\MyApp\uninstall.exe" then IfFileExists returns false (file doesn't exist)
Is there any way to make it work or to exclude quotes from the received value (path)?
Regards,
Stander