Skip to content

Commit

Permalink
Merge pull request sakura-editor#170 from m-tmatma/feature/sakura-iss…
Browse files Browse the repository at this point in the history
…-utf8

sakura.iss を UTF8 に変更
  • Loading branch information
kobake authored Jun 23, 2018
2 parents ed6f99c + fe646c9 commit 4ea1b49
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions installer/sakura.iss
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#define MyAppVer GetFileVersion("sakura\sakura.exe")
#define MyAppVer GetFileVersion("sakura\sakura.exe")
#define MyAppVerH StringChange(MyAppVer, ".", "-")

[Setup]
AppName=サクラエディタ
AppName=サクラエディタ
AppId=sakura editor
AppVerName=sakura editor(サクラエディタ)
AppVerName=sakura editor(サクラエディタ)
AppMutex=MutexSakuraEditor
AppPublisher=サクラエディタ開発チーム
AppPublisher=サクラエディタ開発チーム
AppPublisherURL=http://sakura-editor.sourceforge.net
AppSupportURL=http://sakura-editor.sourceforge.net
AppUpdatesURL=http://sourceforge.net/projects/sakura-editor/
DefaultDirName={code:getDefautDirName|sakura}
DefaultGroupName=サクラエディタ
DefaultGroupName=サクラエディタ
UninstallDisplayIcon={app}\sakura.exe
InfoBeforeFile="instmaterials\info.txt"

Expand All @@ -21,11 +21,11 @@ DisableStartupPrompt=no

PrivilegesRequired=None

; エディタのバージョンに応じて書き換える場所
; エディタのバージョンに応じて書き換える場所
OutputBaseFilename=sakura_install{#MyAppVerH}
VersionInfoVersion={#MyAppVer}

; OSバージョン制限
; OSバージョン制限
MinVersion=0,5.0

[Languages]
Expand All @@ -35,21 +35,21 @@ Name: "ja"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: all; Description: "All"
Name: editorwithhelp; Description: "Editor with Help"
Name: editoronly; Description: "Editor Only"
Name: custom; Description: "カスタム"; Flags: iscustom
Name: custom; Description: "カスタム"; Flags: iscustom

[Components]
Name: main; Description: "サクラエディタ本体"; Types: all editorwithhelp editoronly custom; Flags: fixed
Name: help; Description: "ヘルプファイル"; Types: all editorwithhelp
Name: keyword; Description: "KeyWordファイル"; Types: all
Name: main; Description: "サクラエディタ本体"; Types: all editorwithhelp editoronly custom; Flags: fixed
Name: help; Description: "ヘルプファイル"; Types: all editorwithhelp
Name: keyword; Description: "KeyWordファイル"; Types: all

[Tasks]
Name: startmenu; Description: "スタートメニューを作成(&S)"; Components: main;
Name: quicklaunch; Description: "Quick Launchにアイコン作成(&Q)"; Components: main;
Name: proglist; Description: "プログラム一覧に追加(&P)"; Components: main;
Name: desktopicon; Description: "デスクトップにアイコン作成(&D)"; Components: main; Flags: unchecked;
Name: fileassoc; Description: "「SAKURAで開く」メニューの追加(&E)"; Components: main; Flags: unchecked;
Name: startup; Description: "起動時に常駐(&B)"; Components: main; Flags: unchecked;
Name: sendto; Description: "送るに追加(&T)"; Components: main; Flags: unchecked;
Name: startmenu; Description: "スタートメニューを作成(&S)"; Components: main;
Name: quicklaunch; Description: "Quick Launchにアイコン作成(&Q)"; Components: main;
Name: proglist; Description: "プログラム一覧に追加(&P)"; Components: main;
Name: desktopicon; Description: "デスクトップにアイコン作成(&D)"; Components: main; Flags: unchecked;
Name: fileassoc; Description: "「SAKURAで開く」メニューの追加(&E)"; Components: main; Flags: unchecked;
Name: startup; Description: "起動時に常駐(&B)"; Components: main; Flags: unchecked;
Name: sendto; Description: "送るに追加(&T)"; Components: main; Flags: unchecked;

[Files]
Source: "sakura\sakura.exe"; DestDir: "{app}"; Components: main; Flags: ignoreversion;
Expand All @@ -67,31 +67,31 @@ Source: "sakura\keyword\*"; DestDir: "{app}\keyword"; Components: keyword; Flags

[Registry]
; registry for all user (Admin only)
Root: HKLM; Subkey: "SOFTWARE\Classes\*\shell\sakuraeditor"; ValueType: string; ValueName: ""; ValueData: "SAKURAで開く(&E)"; Tasks: fileassoc; Flags: uninsdeletekey; Check: CheckPrivilege(true)
Root: HKLM; Subkey: "SOFTWARE\Classes\*\shell\sakuraeditor"; ValueType: string; ValueName: ""; ValueData: "SAKURAで開く(&E)"; Tasks: fileassoc; Flags: uninsdeletekey; Check: CheckPrivilege(true)
Root: HKLM; Subkey: "SOFTWARE\Classes\*\shell\sakuraeditor\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" ""%1"""; Tasks: fileassoc; Flags: uninsdeletekey; Check: CheckPrivilege(true)
Root: HKLM; Subkey: "SOFTWARE\Classes\Applications\sakura.exe\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\sakura.exe"" ""%1"""; Tasks: proglist; Flags: uninsdeletekey; Check: CheckPrivilege(true)

; registry for each user (non-Admin only)
Root: HKCU; Subkey: "SOFTWARE\Classes\*\shell\sakuraeditor"; ValueType: string; ValueName: ""; ValueData: "SAKURAで開く(&E)"; Tasks: fileassoc; Flags: uninsdeletekey; Check: CheckPrivilege(false)
Root: HKCU; Subkey: "SOFTWARE\Classes\*\shell\sakuraeditor"; ValueType: string; ValueName: ""; ValueData: "SAKURAで開く(&E)"; Tasks: fileassoc; Flags: uninsdeletekey; Check: CheckPrivilege(false)
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)

[Icons]
Name: "{group}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Check: InTopMenu(false); Tasks: startmenu;
Name: "{userstartmenu}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Check: InTopMenu(true); Tasks: startmenu;
Name: "{group}\ヘルプファイル"; Filename: "{app}\sakura.chm"; Components: help; Tasks: startmenu;
Name: "{group}\設定フォルダ"; Filename: "%APPDATA%\sakura"; Components: main; Check: isMultiUserEnabled; Tasks: startmenu;
Name: "{userdesktop}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Tasks: desktopicon;
Name: "{group}\アンインストール"; Filename: "{uninstallexe}"; Tasks: startmenu;
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Tasks: quicklaunch;
Name: "{userstartup}\サクラエディタ常駐"; Filename: "{app}\sakura.exe"; Parameters: "-NOWIN"; Components: main; Tasks: startup;
Name: "{sendto}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Tasks: sendto;
Name: "{group}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Check: InTopMenu(false); Tasks: startmenu;
Name: "{userstartmenu}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Check: InTopMenu(true); Tasks: startmenu;
Name: "{group}\ヘルプファイル"; Filename: "{app}\sakura.chm"; Components: help; Tasks: startmenu;
Name: "{group}\設定フォルダ"; Filename: "%APPDATA%\sakura"; Components: main; Check: isMultiUserEnabled; Tasks: startmenu;
Name: "{userdesktop}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Tasks: desktopicon;
Name: "{group}\アンインストール"; Filename: "{uninstallexe}"; Tasks: startmenu;
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Tasks: quicklaunch;
Name: "{userstartup}\サクラエディタ常駐"; Filename: "{app}\sakura.exe"; Parameters: "-NOWIN"; Components: main; Tasks: startup;
Name: "{sendto}\サクラエディタ"; Filename: "{app}\sakura.exe"; Components: main; Tasks: sendto;

[Run]
FileName: "{app}\sakura.exe"; Description: "今すぐサクラエディタを起動"; WorkingDir: "{app}"; Flags: postinstall nowait skipifsilent; Check: CheckPrivilege(false);
FileName: "{app}\sakura.exe"; Description: "今すぐサクラエディタを起動"; WorkingDir: "{app}"; Flags: postinstall nowait skipifsilent; Check: CheckPrivilege(false);

[UninstallDelete]
;Uninstall時に確認無く消されるのでコメントアウト
;Uninstall時に確認無く消されるのでコメントアウト
;Type: files; Name: "{app}\sakura.ini"

[Dirs]
Expand Down Expand Up @@ -219,8 +219,8 @@ begin
( MultiUserPage.Values[0] = False ) then
begin
selected := MsgBox(
{ 'Program Files等のシステムフォルダへインストールする場合はUACを無効にしないと設定が保存できませんがよろしいですか?',}
'互換モードでインストールします.システムファイルおよびプログラムをユーザ権限で編集すると編集結果が他のアプリケーションから参照できないことがあります.(VirtualStore機能)',
{ 'Program Files等のシステムフォルダへインストールする場合はUACを無効にしないと設定が保存できませんがよろしいですか?',}
'互換モードでインストールします.システムファイルおよびプログラムをユーザ権限で編集すると編集結果が他のアプリケーションから参照できないことがあります.(VirtualStore機能)',
mbConfirmation,
( MB_OKCANCEL ));
if selected = IDCANCEL then
Expand Down Expand Up @@ -259,10 +259,10 @@ end;
procedure InitializeWizard;
begin
{ Create multi user page }
MultiUserPage := CreateInputOptionPage( wpSelectComponents, '設定保存方法の選択',
'設定をユーザ毎に保存するか実行ファイルの場所へ保存するかを選択してください',
'よくわからない場合は変更しないでください', False, False );
MultiUserPage.Add( '設定をユーザ毎に個別に管理する' );
MultiUserPage := CreateInputOptionPage( wpSelectComponents, '設定保存方法の選択',
'設定をユーザ毎に保存するか実行ファイルの場所へ保存するかを選択してください',
'よくわからない場合は変更しないでください', False, False );
MultiUserPage.Add( '設定をユーザ毎に個別に管理する' );
MultiUserPage.Values[0] := False;
MultiUserPage.OnShouldSkipPage := @ShoudSkipMultiUser;
MultiUserPage.OnNextButtonClick := @NextButtonClickMultiUser;
Expand Down Expand Up @@ -294,18 +294,18 @@ function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoType
var
MemoMuitiUser, MemoVirtualStore : String;
begin
MemoMuitiUser := '設定ファイル等格納場所' + NewLine + Space;
MemoMuitiUser := '設定ファイル等格納場所' + NewLine + Space;
MemoVirtualStore := 'VirtualStore' + NewLine + Space;
if isMultiUserEnabled then
begin
MemoMuitiUser := MemoMuitiUser + 'ユーザ個別ディレクトリ';
MemoVirtualStore := MemoVirtualStore + '無効';
MemoMuitiUser := MemoMuitiUser + 'ユーザ個別ディレクトリ';
MemoVirtualStore := MemoVirtualStore + '無効';
end
else
begin
MemoMuitiUser := MemoMuitiUser + '実行ファイルと同一ディレクトリ';
MemoVirtualStore := MemoVirtualStore + '有効';
MemoMuitiUser := MemoMuitiUser + '実行ファイルと同一ディレクトリ';
MemoVirtualStore := MemoVirtualStore + '有効';
end;
if IsVistaOrLater then
Expand Down

0 comments on commit 4ea1b49

Please sign in to comment.