what file /r nor work with variable but file /r "c:...." worked good!
if have a way for using file /r with variable?
;--------------------------------
Function verscan32
SetRegView 32
ReadRegStr $R1 HKCU 'Software\DownloadManager' 'ExePath' ;Installed Patch
ReadRegStr $R2 HKCU 'Software\DownloadManager' 'AppDataIDMFolder' ;Backup Patch
FunctionEnd
;--------------------
Function verscan64
SetRegView 64
ReadRegStr $R1 HKCU 'Software\DownloadManager' 'ExePath' ;Installed Patch
ReadRegStr $R2 HKCU 'Software\DownloadManager' 'AppDataIDMFolder' ;Backup Patch
FunctionEnd
;--------------------------------
Section
${If} ${RunningX64}
call verscan64
${ELSE}
call verscan32
${EndIf}
IfFileExists "$R1" foundIDM notfoundIDM
notfoundIDM:
MessageBox MB_OK "Internet Downlaod Manager not Found On You're Pc!"
goto end
foundIDM:
SetShellVarContext all
SetOutPath "$INSTDIR"
***********************************
***********************************
File /r "C:\Users\rozsoft\AppData\Roaming\IDM\" ;****************This is Worked
File /r $R2 ;****************Not Worked
***********************************
***********************************
end:
SectionEnd