I read through all the documentation but I am still having trouble with the following file association. Here are the requirements
1) A third party application installs itself under this HKCR
>ReadRegStr $0 HKCR "Applications\cView.exe\shell\open\command" ""
I can read this value with no problem (I get this string back: "C:\Program Files\cView\cView.exe" "%1")
2) Now I need to associate ".rpt" files with this application. I try doing the following:
;create file association
ReadRegStr $0 HKCR "Applications\cView.exe\shell\open\command" ""
WriteRegStr HKCR ".rpt" "" "Applications\cView.exe"
WriteRegStr HKCR ".rpt\DefaultIcon" "" $0,0
WriteRegStr HKCR "Applications\cView.exe" "" "cView File"
WriteRegStr HKCR "Applications\cView.exe\shell" "" "open"
It does not work!
Any help would be greatly appreciated.
1) A third party application installs itself under this HKCR
>ReadRegStr $0 HKCR "Applications\cView.exe\shell\open\command" ""
I can read this value with no problem (I get this string back: "C:\Program Files\cView\cView.exe" "%1")
2) Now I need to associate ".rpt" files with this application. I try doing the following:
;create file association
ReadRegStr $0 HKCR "Applications\cView.exe\shell\open\command" ""
WriteRegStr HKCR ".rpt" "" "Applications\cView.exe"
WriteRegStr HKCR ".rpt\DefaultIcon" "" $0,0
WriteRegStr HKCR "Applications\cView.exe" "" "cView File"
WriteRegStr HKCR "Applications\cView.exe\shell" "" "open"
It does not work!
Any help would be greatly appreciated.
Comment