Skip to content

Commit

Permalink
2.6.2
Browse files Browse the repository at this point in the history
Disabled some components, made old install date info be appended in a localized manner.
  • Loading branch information
krypto5863 committed Aug 2, 2024
1 parent 03421f4 commit 6e95265
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CMI.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "COM Modular Installer"
#define MyAppVersion "2.6.1"
#define MyAppVersion "2.6.2"
#define MyAppURL "https://krypto5863.github.io/COM-Modular-Installer/"
#define MyAppUpdates "https://github.com/krypto5863/COM-Modular-Installer/releases"
#define MyAppSupport "https://github.com/krypto5863/COM-Modular-Installer/issues"
Expand Down Expand Up @@ -134,7 +134,7 @@ Name: bepinexPlugs; Description: BepInEx Plugins;
Name: bepinexPlugs/InBlock; Description: InputHotkeyBlock; Types: full notr compact eng pic self hen;
Name: bepinexPlugs/meidophoto; Description: MeidoPhotoStudio; Types: full notr eng pic self;
Name: bepinexPlugs/meidophoto/Poses; Description: 1900 Poses for MPS; Flags: dontinheritcheck;
Name: bepinexPlugs/modref; Description: ModRefresh; Types:full pic self eng notr;
Name: bepinexPlugs/modref; Description: ModRefresh;
Name: bepinexPlugs/ShaderServant; Description: ShaderServant; Types: Full notr eng pic self hen;
Name: bepinexPlugs/ShapekeyMaster; Description: ShapekeyMaster; Types: Full notr eng pic self hen;
Name: bepinexPlugs/ShiftClick; Description: ShiftClickExplorer; Types: Full notr compact eng pic self hen;
Expand All @@ -161,7 +161,7 @@ Name: Scripts; Description: ScriptLoader Scripts;
Name: Scripts/editname; Description: EditableNames Script; Types: Full notr compact eng pic self hen;
Name: Scripts/enascout; Description: Enable Scout Mode Script;
Name: Scripts/eventcharacterlistfix; Description: EventCharacterListFix Script; Types: Full notr compact eng pic self hen;
Name: Scripts/fastfade; Description: FastFade Script; Types: Full notr eng pic self hen;
//Name: Scripts/fastfade; Description: FastFade Script; Types: Full notr eng pic self hen;
Name: Scripts/freeguest; Description: FreeGuest Script;
Name: Scripts/forceschedule; Description: ForceScheduleEvents Script;
Name: Scripts/invertlearntstat; Description: InvertLearntStat Script;
Expand Down
15 changes: 15 additions & 0 deletions Helpers.iss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ begin
Result := true;
end;
function AppendToName(const Path: String; const Suffix: String): boolean;
begin
if NOT ShellRename(Path, Path + ' ' + Suffix) then
begin
log('Could not rename: ' + Path + ' to ' + ExtractFileName(Path) + ' ' + Suffix);
result := false;
exit;
end;
result := true;
end;
{
type
SYSTEMTIME = record
Year: WORD;
Expand Down Expand Up @@ -88,6 +102,7 @@ begin
FindClose(FindRec);
end;
end;
}
procedure ApplyCustomPreset(const path: String);
var
Expand Down
2 changes: 1 addition & 1 deletion Installer Files/Files.iss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Source: "{#ibep}\ScriptLoader\Scripts\editable_names.cs"; DestDir: "{app}\script
Source: "{#ibep}\ScriptLoader\Scripts\editBlinkStop.cs"; DestDir: "{app}\scripts"; Components:scripts/blinkstop; Flags: {#stdFlags}
Source: "{#ibep}\ScriptLoader\Scripts\enable_scout_mode.cs"; DestDir: "{app}\scripts"; Components:scripts/enascout; Flags: {#stdFlags}
Source: "{#ibep}\ScriptLoader\Scripts\EventCharacterListFix.cs"; DestDir: "{app}\scripts"; Components:scripts/EventCharacterListFix; Flags: {#stdFlags}
Source: "{#ibep}\ScriptLoader\Scripts\fastFade.cs"; DestDir: "{app}\scripts"; Components:scripts/fastfade; Flags: {#stdFlags}
;Source: "{#ibep}\ScriptLoader\Scripts\fastFade.cs"; DestDir: "{app}\scripts"; Components:scripts/fastfade; Flags: {#stdFlags}
Source: "{#ibep}\ScriptLoader\Scripts\freeGuest.cs"; DestDir: "{app}\scripts"; Components:scripts/freeguest; Flags: {#stdFlags}
Source: "{#ibep}\ScriptLoader\Scripts\ForceScheduleEvents.cs"; DestDir: "{app}\scripts"; Components:scripts/ForceSchedule; Flags: {#stdFlags}
Source: "{#ibep}\ScriptLoader\Scripts\InvertLearntStat.cs"; DestDir: "{app}\scripts"; Components:scripts/InvertLearntStat; Flags: {#stdFlags}
Expand Down
4 changes: 2 additions & 2 deletions MainCode.iss
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ begin
OldInstallPath := AddBackSlash(path) + 'OldInstall'
while DirExists(OldInstallPath) AND NOT AppendCreationTimeToName(OldInstallPath) do
while DirExists(OldInstallPath) AND NOT AppendToName(OldInstallPath, GetDateTimeString('ddddd.h.nn.ss', '.', '.')) do
begin
case SuppressibleMsgBox('Encountered an issue while attempting to rename OldInstall folder.', mbError, MB_ABORTRETRYIGNORE, IDIGNORE) of
Expand Down Expand Up @@ -247,7 +247,7 @@ begin
OldInstallPath := AddBackSlash(path) + 'OldInstall'
while DirExists(OldInstallPath) AND NOT AppendCreationTimeToName(OldInstallPath) do
while DirExists(OldInstallPath) AND NOT AppendToName(OldInstallPath, GetDateTimeString('ddddd.h.nn.ss', '.', '.')) do
begin
case SuppressibleMsgBox(CustomMessage('CannotRenameOld'), mbError, MB_ABORTRETRYIGNORE, IDIGNORE) of
IDIGNORE: break;
Expand Down
2 changes: 2 additions & 0 deletions OldInstallHandler.iss
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ begin
result := true;
end;
{
function AppendCreationTimeToName(const Path: String): boolean;
var
DateTime: String;
Expand All @@ -162,4 +163,5 @@ begin
result := true;
end;
}
[/Code]

0 comments on commit 6e95265

Please sign in to comment.