Jump to content

Recommended Posts

Posted

please help me !

i inno-packed "emeditor",which is a fine text-editor.

i wanna in setup ,it can auto-Association the .txt and .nfo file.

and i wanna the Association will be used to ALL USER.

so,i add the under code to the setup script:

[Registry]
Root: HKCR; SubKey: .txt; ValueType: string; ValueData: emeditor text file; Flags: uninsdeletekey
Root: HKCR; SubKey: emeditor text file; ValueType: string; ValueData: text file; Flags: uninsdeletekey
Root: HKCR; SubKey: emeditor text file\Shell\Open\Command; ValueType: string; ValueData: """{app}\emeditor.exe"" ""%1"""; Flags: uninsdeletevalue
Root: HKCR; Subkey: emeditor text file\DefaultIcon; ValueType: string; ValueData: {app}\emeditor.exe -102,-1; Flags: uninsdeletevalue
Root: HKCR; SubKey: .nfo; ValueType: string; ValueData: emeditor nfo file; Flags: uninsdeletekey
Root: HKCR; SubKey: emeditor nfo file; ValueType: string; ValueData: nfo file; Flags: uninsdeletekey
Root: HKCR; SubKey: emeditor nfo file\Shell\Open\Command; ValueType: string; ValueData: """{app}\emeditor.exe"" ""%1"""; Flags: uninsdeletevalue
Root: HKCR; Subkey: emeditor nfo file\DefaultIcon; ValueType: string; ValueData: {app}\emeditor.exe -1,-1; Flags: uninsdeletevalue

i wonder: what is "subkey",can i directly use that code?

is there any more simple method to complete "file Association"?


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...