Skip to content

Commit f8c7f8f

Browse files
updated installer.
1 parent 14f06fe commit f8c7f8f

File tree

7 files changed

+147
-190
lines changed

7 files changed

+147
-190
lines changed

installer/create_installer.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set LIB=
2525
set PATH=C:\WINDOWS\system32;C:\WINDOWS
2626

2727
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
28-
call :build_msi "%QTBASE%\6.7.1\msvc2019_64\bin\qtenv2.bat" 6.7
28+
call :build_msi "%QTBASE%\6.8.0\msvc2022_64\bin\qtenv2.bat" 6.8
2929

3030
:: Clear environment variables
3131
set VCToolsVersion=
@@ -36,7 +36,7 @@ set LIB=
3636
set PATH=C:\WINDOWS\system32;C:\WINDOWS
3737

3838
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
39-
call :build_msi "%QTBASE%\6.6.3\msvc2019_64\bin\qtenv2.bat" 6.6
39+
call :build_msi "%QTBASE%\6.7.3\msvc2022_64\bin\qtenv2.bat" 6.7
4040

4141
call :build_setup treefrog-%VERSION%-msvc_64-setup.exe
4242

installer/msi/TreeFrog.wxs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<!-- *** 基本的に 9行目,10行目,42行目,54行目も修正する (guidgen使用) *** -->
66

77
<!-- プロダクト情報 -->
8-
<Product Name='TreeFrog Framework 2.9.0'
9-
Id="DDB2A2E5-ECD1-4C0F-998F-533149FB3637"
10-
UpgradeCode="39124F5E-CBB3-4A79-90A0-C47729C9F506"
8+
<Product Name='TreeFrog Framework 2.10.0'
9+
Id="E62F0889-126C-4B96-B216-14A4E5B4409A"
10+
UpgradeCode="EF057FD0-AB58-44D9-AB7F-23138622F72A"
1111
Language='1041' Codepage='932'
12-
Version='2.9.0' Manufacturer='TreeFrog Framework Project'>
12+
Version='2.10.0' Manufacturer='TreeFrog Framework Project'>
1313

1414
<!-- パッケージ情報 -->
1515
<Package Id='*' Keywords='Installer'
@@ -27,21 +27,21 @@
2727
<Directory Id='TARGETDIR' Name='SourceDir'>
2828
<Directory Id='WINDOWSVOLUME'>
2929
<Directory Id='INSTALLDIR' Name='TreeFrog'>
30-
<Directory Id='VERSIONDIR' Name='2.9.0'>
30+
<Directory Id='VERSIONDIR' Name='2.10.0'>
3131
</Directory>
3232
</Directory>
3333
</Directory>
3434
<Directory Id="DesktopFolder" SourceName="Desktop"/>
3535
<Directory Id="ProgramMenuFolder">
36-
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.9.0"/>
36+
<Directory Id="ApplicationProgramsFolder" Name="TreeFrog Framework 2.10.0"/>
3737
</Directory>
3838
</Directory>
3939

4040
<!-- デスクトップショートカット -->
4141
<DirectoryRef Id="DesktopFolder">
42-
<Component Id="DesktopShortcut" Guid="4CA80893-F007-4E29-A3B5-530ACE94C7EB">
42+
<Component Id="DesktopShortcut" Guid="70D025DC-2123-4D90-8F58-94C02E1274D1">
4343
<Shortcut Id="PromptDesktopShortcut"
44-
Name="TreeFrog Prompt 2.9.0"
44+
Name="TreeFrog Prompt 2.10.0"
4545
Description="TreeFrog Framework Prompt"
4646
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
4747
WorkingDirectory="PersonalFolder"/>
@@ -51,12 +51,12 @@
5151

5252
<!-- プログラムメニューショートカット -->
5353
<DirectoryRef Id="ApplicationProgramsFolder">
54-
<Component Id="ApplicationShortcut" Guid="BE257E94-EA18-477F-B585-49E9D1B0E0C5">
54+
<Component Id="ApplicationShortcut" Guid="29D7EA6D-B7C3-4516-A141-FDB7F307502D">
5555
<CreateFolder Directory="ApplicationProgramsFolder"/>
5656

5757
<!-- Shortcut to TF prompt-->
5858
<Shortcut Id="PromptProgramMenuShortcut"
59-
Name="TreeFrog Prompt 2.9.0"
59+
Name="TreeFrog Prompt 2.10.0"
6060
Description="TreeFrog Framework Prompt"
6161
Target="[SystemFolder]cmd.exe" Arguments="/K [VERSIONDIR]bin\\tfenv.bat"
6262
WorkingDirectory="PersonalFolder"/>

installer/treefrog-setup/treefrog-setup/AssemblyInfo.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ using namespace System::Runtime::InteropServices;
77
using namespace System::Security::Permissions;
88

99
//
10-
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
11-
// アセンブリに関連付けられている情報を変更するには、
12-
// これらの属性値を変更してください。
10+
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
11+
// アセンブリに関連付けられている情報を変更するには、
12+
// これらの属性値を変更してください。
1313
//
1414
[assembly:AssemblyTitleAttribute("treefrogsetup")];
1515
[assembly:AssemblyDescriptionAttribute("")];
@@ -21,19 +21,18 @@ using namespace System::Security::Permissions;
2121
[assembly:AssemblyCultureAttribute("")];
2222

2323
//
24-
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
24+
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
2525
//
2626
// Major Version
2727
// Minor Version
2828
// Build Number
2929
// Revision
3030
//
31-
// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を
32-
// 既定値にすることができます:
31+
// すべての値を指定するか、下のように '*' を使ってリビジョンおよびビルド番号を
32+
// 既定値にすることができます:
3333

3434
[assembly:AssemblyVersionAttribute("2.10.0")];
3535

3636
[assembly:ComVisible(false)];
3737

3838
[assembly:CLSCompliantAttribute(true)];
39-

installer/treefrog-setup/treefrog-setup/MainForm.h

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#undef GetTempPath
77

88
//
9-
// リリースする際は50行目を編集!
9+
// リリースする際は50行目を編集!
1010
//
1111

1212

@@ -45,13 +45,13 @@ namespace treefrogsetup {
4545
static initonly String^ TF_ENV_BAT = "C:\\TreeFrog\\" + VersionString() + "\\bin\\tfenv.bat"; // Base Directory
4646

4747
//
48-
// バージョン
48+
// バージョン
4949
//
50-
static initonly String^ VERSION_STR6_NEW = L"6.7";
51-
static initonly String^ VERSION_STR6_PREV = L"6.6";
50+
static initonly String^ VERSION_STR6_NEW = L"6.8";
51+
static initonly String^ VERSION_STR6_PREV = L"6.7";
5252

53-
static initonly int RCID_NEW = IDR_TREEFROG_QT607_MSI;
54-
static initonly int RCID_PREV = IDR_TREEFROG_QT606_MSI;
53+
static initonly int RCID_NEW = IDR_TREEFROG_QT608_MSI;
54+
static initonly int RCID_PREV = IDR_TREEFROG_QT607_MSI;
5555

5656
public:
5757
MainForm(void)
@@ -65,25 +65,6 @@ namespace treefrogsetup {
6565

6666
this->Text = "TreeFrog Framework " + VersionString() + " Setup";
6767
String^ folder = L"C:\\Qt";
68-
69-
//try {
70-
// // Check Qt5 Folder
71-
// String^ fol = L"C:\\Qt";
72-
// array<String^>^ dir = Directory::GetDirectories(fol);
73-
74-
// if (dir->Length > 0) {
75-
// fol = dir[0];
76-
// for (int i = 1; i < dir->Length; ++i) {
77-
// if (dir[i]->IndexOf("creator", StringComparison::OrdinalIgnoreCase) < 0) {
78-
// fol = (String::Compare(fol, dir[i]) >= 0) ? fol : dir[i];
79-
// }
80-
// }
81-
// folder = fol;
82-
// }
83-
//} catch (...) {
84-
// //
85-
//}
86-
8768
forderTextBox->Text = folder;
8869
}
8970

@@ -106,8 +87,8 @@ namespace treefrogsetup {
10687

10788
#pragma region Windows Form Designer generated code
10889
/// <summary>
109-
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を
110-
/// コード エディターで変更しないでください。
90+
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を
91+
/// コード エディターで変更しないでください。
11192
/// </summary>
11293
void InitializeComponent(void)
11394
{
@@ -183,7 +164,7 @@ namespace treefrogsetup {
183164
this->label1->Name = L"label1";
184165
this->label1->Size = System::Drawing::Size(162, 15);
185166
this->label1->TabIndex = 5;
186-
this->label1->Text = L"Example: C:\\Qt\\" + VERSION_STR6_NEW + ".0\\msvc2019_64";
167+
this->label1->Text = L"Example: C:\\Qt\\" + VERSION_STR6_NEW + ".0\\msvc2022_64";
187168
//
188169
// labeltop
189170
//
@@ -348,7 +329,6 @@ namespace treefrogsetup {
348329
List<String ^>^ bins = gcnew List<String ^>();
349330

350331
if (forderTextBox->Text != L"C:\\") {
351-
//bins->AddRange(searchSubDirectories(L"bin", searchSubDirectories(L"mingw*", forderTextBox->Text, excludes), excludes));
352332
bins->AddRange(searchSubDirectories(L"bin", searchSubDirectories(L"msvc20*", forderTextBox->Text, excludes), excludes));
353333

354334
// Qt 5.9 or later
@@ -454,26 +434,6 @@ namespace treefrogsetup {
454434
return;
455435
}
456436

457-
//// Edits tfenv.bat
458-
//IO::FileInfo^ fibat = gcnew IO::FileInfo(TF_ENV_BAT);
459-
//if (proc->ExitCode == 0 && fibat->Exists) {
460-
// String^ out;
461-
462-
// StreamReader^ din = File::OpenText(TF_ENV_BAT);
463-
// String^ line;
464-
// while ((line = din->ReadLine()) != nullptr) {
465-
// if (line->StartsWith("set PATH=")) {
466-
// line = L"set PATH=%TFDIR%\\bin;" + qtbin + "%PATH%";
467-
// }
468-
// out += line + "\r\n";
469-
// }
470-
// din->Close();
471-
472-
// StreamWriter^ dout = gcnew StreamWriter(TF_ENV_BAT);
473-
// dout->Write(out);
474-
// dout->Close();
475-
//}
476-
477437
// Edits tfenv.bat
478438
IO::FileInfo^ fibat = gcnew IO::FileInfo(TF_ENV_BAT);
479439
if (proc->ExitCode == 0 && fibat->Exists) {

installer/treefrog-setup/treefrog-setup/app.rc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ LANGUAGE 17, SUBLANG_DEFAULT
1717
//
1818
// User resources
1919
//
20-
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
21-
IDR_TREEFROG_QT603_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.3.msi"
22-
23-
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
24-
IDR_TREEFROG_QT604_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.4.msi"
25-
2620
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
2721
IDR_TREEFROG_QT605_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.5.msi"
2822

@@ -32,6 +26,9 @@ IDR_TREEFROG_QT606_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.6.msi"
3226
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
3327
IDR_TREEFROG_QT607_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.7.msi"
3428

29+
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
30+
IDR_TREEFROG_QT608_MSI TREEFROG_MSI "..\\..\\msi\\TreeFrog-SDK-Qt6.8.msi"
31+
3532

3633
//
3734
// String Table resources

installer/treefrog-setup/treefrog-setup/treefrog-setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// treefrog-setup.cpp : メイン プロジェクト ファイルです。
1+
// treefrog-setup.cpp
22

33
#include "stdafx.h"
44
#include "MainForm.h"

0 commit comments

Comments
 (0)