|
#1411
|
|||
|
|||
|
Quote:
Run DSG Extract Setup.dll Copy to Setup_DLL Changed the line in settings.ini (I'm not sure about this step. I copied the line with the .dat extension and renamed checksums.dat to Data1a-01 to match what DSG made.) Compiled. Get Error. I'm fairly sure I followed the steps correctly. |
| Sponsored Links |
|
#1412
|
||||
|
||||
|
Looks like a bug. However under normal circumstances you cannot call {app} before the folder is actually initialized by inno setup, but in this case the crc check will start at the very end (I think it's the very last action if you enable all possible options), so I don't know why you get this error. I will ask César if he can fix this.
__________________
Haters gonna hate
|
| The Following 2 Users Say Thank You to KaktoR For This Useful Post: | ||
insertdisc (31-05-2025), mausschieber (31-05-2025) | ||
|
#1413
|
|||
|
|||
|
CRC Errors
Quote:
Code:
begin
I := 1;
SetArrayLength(HashFileList, 0);
while GetIniString('CRCCheck', 'HashFile' + IntToStr(I), '', ExpandConstant('{tmp}\Settings.ini')) <> '' do
begin
HashLine := GetIniString('CRCCheck', 'HashFile' + IntToStr(I), '', ExpandConstant('{tmp}\Settings.ini'));
if ComponentsCheck(LineDecode(HashLine, 'Comp', '')) and TasksCheck(LineDecode(HashLine, 'Task', '')) and LanguagesCheck(LineDecode(HashLine, 'Lang', '')) then
begin
HashFile := ExpandFileName(ExpandConstant(Trim(LineDecode(HashLine, '', ''))));
if FileExists(HashFile) or (Pos(LowerCase(ExpandConstant('{app}\')), LowerCase(HashFile)) > 0) then
begin
Y := GetArrayLength(HashFileList);
SetArrayLength(HashFileList, Y + 1);
HashFileList[Y].FileName := GenerateUniqueName(ExpandConstant('{tmp}'), '.dat');
HashFileList[Y].BasePath := ExpandFileName(ExpandConstant(Trim(LineDecode(HashLine, 'DestDir', '{app}'))));
HashFileList[Y].AppDirFile := Pos(LowerCase(ExpandConstant('{app}\')), LowerCase(HashFile)) > 0;
HashFileList[Y].Algorithm := DSG_GetHashAlgorithm(Trim(LineDecode(HashLine, 'Algo', 'auto')));
if (not HashFileList[Y].AppDirFile) and (not FileCopy(HashFile, HashFileList[Y].FileName, False)) then
SetArrayLength(HashFileList, Y);
end;
end;
Code:
begin
I := 1;
SetArrayLength(HashFileList, 0);
while GetIniString('CRCCheck', 'HashFile' + IntToStr(I), '', ExpandConstant('{tmp}\Settings.ini')) <> '' do
begin
HashLine := GetIniString('CRCCheck', 'HashFile' + IntToStr(I), '', ExpandConstant('{tmp}\Settings.ini'));
if ComponentsCheck(LineDecode(HashLine, 'Comp', '')) and TasksCheck(LineDecode(HashLine, 'Task', '')) and LanguagesCheck(LineDecode(HashLine, 'Lang', '')) then
begin
HashFile := ExpandFileName(ExpandConstant(Trim(LineDecode(HashLine, '', ''))));
if FileExists(HashFile) or (Pos(LowerCase(ExpandConstant('{tmp}\')), LowerCase(HashFile)) > 0) then
begin
Y := GetArrayLength(HashFileList);
SetArrayLength(HashFileList, Y + 1);
HashFileList[Y].FileName := GenerateUniqueName(ExpandConstant('{tmp}'), '.dat');
HashFileList[Y].BasePath := ExpandFileName(ExpandConstant(Trim(LineDecode(HashLine, 'DestDir', '{app}'))));
HashFileList[Y].AppDirFile := Pos(LowerCase(ExpandConstant('{tmp}\')), LowerCase(HashFile)) > 0;
HashFileList[Y].Algorithm := DSG_GetHashAlgorithm(Trim(LineDecode(HashLine, 'Algo', 'auto')));
if (not HashFileList[Y].AppDirFile) and (not FileCopy(HashFile, HashFileList[Y].FileName, False)) then
SetArrayLength(HashFileList, Y);
end;
end;
|
|
#1414
|
||||
|
||||
|
Quote:
If your hash file source path is the installation folder, you're in trouble. |
| The Following User Says Thank You to Cesar82 For This Useful Post: | ||
insertdisc (01-06-2025) | ||
|
#1415
|
||||
|
||||
|
Try this
__________________
Haters gonna hate
|
| The Following 3 Users Say Thank You to KaktoR For This Useful Post: | ||
|
#1416
|
|||
|
|||
|
Code:
Line 4492: Column 7: Unknown identifier 'DSG_FinishUninstallFilesList' |
|
#1417
|
||||
|
||||
|
Works fine here. Did you changed something in DSG_Module.iss?
__________________
Haters gonna hate
|
| The Following User Says Thank You to KaktoR For This Useful Post: | ||
insertdisc (01-06-2025) | ||
|
#1418
|
|||
|
|||
|
Negative. I just tried with a Vanilla v7.5.0 and the fix script and 2 different extracted setup.DLL files. Same error.
|
|
#1419
|
|||
|
|||
|
I got the script to compile. I had forgotten the hotfix with the module in it. I'll test the CRC fix ASAP. Thanks for your help so far.
Edit: Everything seems to be working as intended! Thank you! Last edited by insertdisc; 01-06-2025 at 10:59. Reason: Update |
|
#1420
|
|||
|
|||
|
Typo
Found a typo. Just thought you should know.
"Your system does partially meet the hardware reuirements." |
| The Following User Says Thank You to insertdisc For This Useful Post: | ||
KaktoR (01-06-2025) | ||
|
#1421
|
|||
|
|||
|
Title scale
Is there a way to scale the title bar height and left padding with DPI changes as well? Things start getting clipped/overlapped at uhd resolutions and over %200 scale. I can edit the height in a fixed way by editing the vsf but I'm sure that will be huge on lower resolutions. Am I walking into a dead end here?
Last edited by insertdisc; 03-06-2025 at 06:35. Reason: Spelling |
|
#1422
|
||||
|
||||
|
Compact Mode Components Bug
I think I found a bug for the components page when using compact mode (Hotfix 8).
This bug makes the Start Menu Checkbox stay visible on components page when using compact mode. FIX:in this section: Code:
ComponentsPageVisible := (not ComponentsPageVisible); Code:
StartMenuCB.Visible Code:
#if !UpdateMode Code:
#if !UpdateMode
IconsCB.Visible := (not ComponentsPageVisible);
StartMenuCB.Visible := (not ComponentsPageVisible);
UnInstallCB.Visible := (not ComponentsPageVisible);
#endif
__________________
Built with hustle, crowned with success. |
| The Following User Says Thank You to PHM2D For This Useful Post: | ||
KaktoR (18-08-2025) | ||
|
#1423
|
||||
|
||||
|
Thanks, fixed.
The same should be added on Code:
procedure TasksPageClick(Sender: TObject); Code:
StartMenuCB.Visible := (not TasksPageVisible);
__________________
Haters gonna hate
Last edited by KaktoR; 18-08-2025 at 08:29. |
| The Following 2 Users Say Thank You to KaktoR For This Useful Post: | ||
mausschieber (18-08-2025), PHM2D (18-08-2025) | ||
|
#1424
|
|||
|
|||
|
Is there anyway to modify the script to have a separate audio file play during the splash screen, and then start the normal music file when the splash ends? I tried using a LLM to analyze the script and Settings.ini to see if it could add that in, and it couldn't. Not really an important feature, but I was just wondering
|
|
#1425
|
||||
|
||||
|
Start Menu Shortcut Bugs!
When I checked the start menu shortcut creator checkbox, I realized that the shortcut is not created inside the programs folder of the start menu. However it was created when I checked the desktop shortcut creator checkbox. So I fixed it like this:
Code:
//#if !CompactMode || !UpdateMode
// function CreateIconsDesktop: Boolean;
// begin
// Result := (not IsDoneError) and IconsCB.Checked;
// end;
// function IsUninstallable: Boolean;
// begin
// Result := UninstallCB.Checked;
// end;
//#endif
//#if !CompactMode
//function CreateIconsStartMenu: Boolean;
//begin
// Result := (not IsDoneError) and (not StartMenuCB.Checked);
//end;
//#endif
function CreateIconsDesktop: Boolean;
begin
Result := (not IsDoneError) and Assigned(IconsCB) and IconsCB.Checked; // your “desktop shortcut” checkbox
end;
function CreateIconsStartMenu: Boolean;
begin
Result := (not IsDoneError) and Assigned(StartMenuCB) and StartMenuCB.Checked;
end;
function IsUninstallable: Boolean;
begin
Result := Assigned(UninstallCB) and UninstallCB.Checked;
end;
procedure StartMenuCBClick(Sender: TObject);
var
CB: TNewCheckBox;
begin
if (Sender is TNewCheckBox) then CB := TNewCheckBox(Sender) else CB := StartMenuCB;
if Assigned(WizardForm) and Assigned(CB) then
begin
WizardForm.GroupEdit.Enabled := CB.Checked;
WizardForm.GroupBrowseButton.Enabled := CB.Checked;
end;
end;
Code:
StartMenuCB := TNewCheckBox.Create(WizardForm); Code:
Checked := False; // 1) set default state
OnClick := @StartMenuCBClick; // 2) wire the handler
StartMenuCBClick(StartMenuCB); // 3) Synchronize the UI to the current checkbox state
end;
__________________
Built with hustle, crowned with success. |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Help] need Advanced Installer script with Razor1911's UltraArc module | rez3vil | Conversion Tutorials | 3 | 15-04-2024 02:24 |
| Portable Installer Inno Setup Script | y_thelastknight | Conversion Tutorials | 59 | 23-10-2020 00:02 |
| INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 02:05 |
| Simple Arc Installer | 78372 | Conversion Tutorials | 1 | 15-06-2017 15:37 |
| MSC+Srep+lzma Simple Script Example | gozarck | Conversion Tutorials | 10 | 07-09-2015 16:31 |