Adding an application to OpenWithList with Inno Setup

Posted by Ben McCann on Stack Overflow See other posts from Stack Overflow or by Ben McCann
Published on 2009-07-02T02:21:45Z Indexed on 2010/04/01 21:03 UTC
Read the original article Hit count: 376

I'm trying to write an installer for an app I created. I found a suggestion elsewhere that I was trying to follow and it mostly worked. My app is now in the "Open With" list. However, the app won't run at all. Could it be that it's because the app is not being started in its directory, so it can't find the dlls?

Root: HKCR; Subkey: ".xls\OpenWithList\docs.exe"; Flags: uninsdeletekey noerror
Root: HKCR; Subkey: ".ods\OpenWithList\docs.exe"; Flags: uninsdeletekey noerror
Root: HKCR; Subkey: "applications\docs.exe\shell\open\command"; ValueType: string; 
    ValueData: """{app}\docs.exe"" ""%1?"""; Flags: uninsdeletekey noerror

Root: HKCU; Subkey: "Software\Classes\.xls\OpenWithList\docs.exe"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Classes\.ods\OpenWithList\docs.exe"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Classes\applications\docs.exe\shell\open\command"; 
    ValueType: string; ValueData: """{app}\docs.exe"" ""%1"""; Flags: uninsdeletekey

© Stack Overflow or respective owner

Related posts about inno-setup

Related posts about windows-registry