Skip to content

Commit

Permalink
管理者権限非保持ユーザがインストーラーを使用するとエラーが発生する問題を修正(sakura-editor#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
iqc-cpi committed Jul 8, 2024
1 parent fb0d86a commit 5256f49
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions installer/sakura-common.iss
Original file line number Diff line number Diff line change
Expand Up @@ -290,34 +290,34 @@ Root: HKCU; Subkey: "SOFTWARE\Classes\*\shell\sakuraeditor";
Root: HKCU; Subkey: "SOFTWARE\Classes\*\shell\sakuraeditor\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" ""%1"""; Tasks: fileassoc; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\Applications\sakura.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" ""%1"""; Tasks: proglist; Flags: uninsdeletekey; Check: CheckPrivilege(false)

Root: HKLM; Subkey: "SOFTWARE\Classes\directory\shell\sakuraGrep"; ValueType: string; ValueName: ""; ValueData: "{cm:sakuragrepMenu}"; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\directory\shell\sakuraGrep"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\sakura.exe"""; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\directory\shell\sakuraGrep\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" -GREPDLG -GREPMODE -GFOLDER=""%1"" -GOPT=""SP"" -GCODE=99 "; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\directory\shell\sakuraGrep"; ValueType: string; ValueName: ""; ValueData: "{cm:sakuragrepMenu}"; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\directory\shell\sakuraGrep"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\sakura.exe"""; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\directory\shell\sakuraGrep\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" -GREPDLG -GREPMODE -GFOLDER=""%1"" -GOPT=""SP"" -GCODE=99 "; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)

Root: HKLM; Subkey: "SOFTWARE\Classes\directory\BackGround\shell\sakuraGrep"; ValueType: string; ValueName: ""; ValueData: "{cm:sakuragrepMenu}"; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\directory\BackGround\shell\sakuraGrep"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\sakura.exe"""; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\directory\BackGround\shell\sakuraGrep\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" -GREPDLG -GREPMODE -GFOLDER=""%V"" -GOPT=""SP"" -GCODE=99 "; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\directory\BackGround\shell\sakuraGrep"; ValueType: string; ValueName: ""; ValueData: "{cm:sakuragrepMenu}"; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\directory\BackGround\shell\sakuraGrep"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\sakura.exe"""; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\directory\BackGround\shell\sakuraGrep\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" -GREPDLG -GREPMODE -GFOLDER=""%V"" -GOPT=""SP"" -GCODE=99 "; Tasks: sakuragrep; Flags: uninsdeletekey; Check: CheckPrivilege(false)

; add ProgID
; see https://www.glamenv-septzen.net/view/14#idf5215e
; see https://docs.microsoft.com/en-us/visualstudio/extensibility/registering-verbs-for-file-name-extensions?view=vs-2017
Root: HKLM; Subkey: "SOFTWARE\Classes\SakuraEditor.Document"; ValueType: string; ValueName: ""; ValueData: ""; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\SakuraEditor.Document\shell"; ValueType: string; ValueName: ""; ValueData: ""; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\SakuraEditor.Document\shell\open"; ValueType: string; ValueName: ""; ValueData: ""; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\SakuraEditor.Document\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" ""%1"""; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\SakuraEditor.Document"; ValueType: string; ValueName: ""; ValueData: ""; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\SakuraEditor.Document\shell"; ValueType: string; ValueName: ""; ValueData: ""; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\SakuraEditor.Document\shell\open"; ValueType: string; ValueName: ""; ValueData: ""; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\SakuraEditor.Document\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" ""%1"""; Flags: uninsdeletekey; Check: CheckPrivilege(false)

; add File Handlers to each extensions
; see https://docs.microsoft.com/en-us/visualstudio/extensibility/specifying-file-handlers-for-file-name-extensions?view=vs-2017
Root: HKLM; Subkey: "SOFTWARE\Classes\.txt\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.log\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.c\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.cpp\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.cs\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.h\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.md\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.ini\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.java\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKLM; Subkey: "SOFTWARE\Classes\.rst\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.txt\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.log\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.c\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.cpp\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.cs\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.h\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.md\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.ini\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.java\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\.rst\OpenWithProgids"; ValueType: string; ValueName: "SakuraEditor.Document"; ValueData: ""; Flags: uninsdeletevalue; Check: CheckPrivilege(false)

[Icons]
Name: "{group}\{cm:AppName}"; Filename: "{app}\sakura.exe"; Components: main; Check: InTopMenu(false); Tasks: startmenu;
Expand Down

0 comments on commit 5256f49

Please sign in to comment.