Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1411  
Old 31-05-2025, 13:12
insertdisc insertdisc is offline
Registered User
 
Join Date: May 2025
Location: Earth
Posts: 12
Thanks: 5
Thanked 1 Time in 1 Post
insertdisc is on a distinguished road
Cool CRC Errors

Quote:
Originally Posted by mausschieber View Post
Setup.dll contains the files needed by the installer to unpack your game, and Records.ini contains the compressed file information needed to unpack it.

You can include these files, but to do so you must use the DSG tools by clicking on the TOOLS button and then on the "Setup DLL" tab.
You must unpack Setup.dll and place all the unpacked contents of Setup.dll and Records.ini in a folder named "Setup_DLL" next to the installer script and recompile the script.

and did you read the helpfiles from helpfolder there is all information about the Installer for DSG is also an helpfile
My steps were:
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.
Reply With Quote
Sponsored Links
  #1412  
Old 31-05-2025, 13:16
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
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
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
insertdisc (31-05-2025), mausschieber (31-05-2025)
  #1413  
Old 31-05-2025, 13:41
insertdisc insertdisc is offline
Registered User
 
Join Date: May 2025
Location: Earth
Posts: 12
Thanks: 5
Thanked 1 Time in 1 Post
insertdisc is on a distinguished road
CRC Errors

Quote:
Originally Posted by KaktoR View Post
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.
I changed
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;
to
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;
and hash completed successfully. Though I'm not sure what long-term implications that would have.
Reply With Quote
  #1414  
Old 31-05-2025, 14:46
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by insertdisc View Post
I changed
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;
to
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;
and hash completed successfully. Though I'm not sure what long-term implications that would have.
You did a "hack". LOL

If your hash file source path is the installation folder, you're in trouble.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
insertdisc (01-06-2025)
  #1415  
Old 31-05-2025, 15:20
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Try this
Attached Files
File Type: 7z fix.7z (34.8 KB, 20 views)
__________________
Haters gonna hate
Reply With Quote
The Following 3 Users Say Thank You to KaktoR For This Useful Post:
Cesar82 (01-06-2025), insertdisc (31-05-2025), mausschieber (31-05-2025)
  #1416  
Old 31-05-2025, 19:12
insertdisc insertdisc is offline
Registered User
 
Join Date: May 2025
Location: Earth
Posts: 12
Thanks: 5
Thanked 1 Time in 1 Post
insertdisc is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Try this
Code:
Line 4492:
Column 7:
Unknown identifier 'DSG_FinishUninstallFilesList'
It errors out during compile.
Reply With Quote
  #1417  
Old 01-06-2025, 01:35
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Works fine here. Did you changed something in DSG_Module.iss?
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
insertdisc (01-06-2025)
  #1418  
Old 01-06-2025, 08:22
insertdisc insertdisc is offline
Registered User
 
Join Date: May 2025
Location: Earth
Posts: 12
Thanks: 5
Thanked 1 Time in 1 Post
insertdisc is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Works fine here. Did you changed something in DSG_Module.iss?
Negative. I just tried with a Vanilla v7.5.0 and the fix script and 2 different extracted setup.DLL files. Same error.
Reply With Quote
  #1419  
Old 01-06-2025, 08:27
insertdisc insertdisc is offline
Registered User
 
Join Date: May 2025
Location: Earth
Posts: 12
Thanks: 5
Thanked 1 Time in 1 Post
insertdisc is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Works fine here. Did you changed something in DSG_Module.iss?
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
Reply With Quote
  #1420  
Old 01-06-2025, 15:39
insertdisc insertdisc is offline
Registered User
 
Join Date: May 2025
Location: Earth
Posts: 12
Thanks: 5
Thanked 1 Time in 1 Post
insertdisc is on a distinguished road
Typo

Found a typo. Just thought you should know.

"Your system does partially meet the hardware reuirements."
Reply With Quote
The Following User Says Thank You to insertdisc For This Useful Post:
KaktoR (01-06-2025)
  #1421  
Old 03-06-2025, 06:34
insertdisc insertdisc is offline
Registered User
 
Join Date: May 2025
Location: Earth
Posts: 12
Thanks: 5
Thanked 1 Time in 1 Post
insertdisc is on a distinguished road
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
Reply With Quote
  #1422  
Old 18-08-2025, 08:03
PHM2D's Avatar
PHM2D PHM2D is offline
Registered User
 
Join Date: Mar 2024
Location: Area 51
Posts: 9
Thanks: 6
Thanked 5 Times in 3 Posts
PHM2D is on a distinguished road
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);
we should add
Code:
StartMenuCB.Visible
under the
Code:
#if !UpdateMode
as well so it would look like this:
Code:
      #if !UpdateMode
        IconsCB.Visible := (not ComponentsPageVisible);
        StartMenuCB.Visible := (not ComponentsPageVisible);
        UnInstallCB.Visible := (not ComponentsPageVisible);
      #endif
the same should be done for the tasks' page.
__________________
Built with hustle, crowned with success.
Reply With Quote
The Following User Says Thank You to PHM2D For This Useful Post:
KaktoR (18-08-2025)
  #1423  
Old 18-08-2025, 08:23
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Thanks, fixed.

The same should be added on
Code:
procedure TasksPageClick(Sender: TObject);
Code:
StartMenuCB.Visible := (not TasksPageVisible);
Attached Files
File Type: 7z Hotfix_9.7z (58.5 KB, 12 views)
__________________
Haters gonna hate

Last edited by KaktoR; 18-08-2025 at 08:29.
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
mausschieber (18-08-2025), PHM2D (18-08-2025)
  #1424  
Old 19-08-2025, 15:24
trillestdwane trillestdwane is offline
Registered User
 
Join Date: Jul 2024
Location: Hell
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
trillestdwane is on a distinguished road
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
Reply With Quote
  #1425  
Old 20-08-2025, 03:35
PHM2D's Avatar
PHM2D PHM2D is offline
Registered User
 
Join Date: Mar 2024
Location: Area 51
Posts: 9
Thanks: 6
Thanked 5 Times in 3 Posts
PHM2D is on a distinguished road
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;
Then called it inside the
Code:
StartMenuCB := TNewCheckBox.Create(WizardForm);
like this:
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;
I don't know if anyone has experienced this bug but here is my solution nevertheless!
__________________
Built with hustle, crowned with success.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 10:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com