#1531
|
||||
|
||||
Is there any way to execute a registry update as the first operation of an install? I'm currently packing the "LEGO" games by the "Traveler's Tales" developers and as many of you undoubtedly know the unpacked "*.dat" archives can have some rather long paths for some files, particularly in newer titles. As a fix to this I'm currently planning to launch either a basic registry script in the form of a ".reg" or use Inno Setup's built-in registry functions to disable Window's 256 character limit (which is perfectly safe to do and only requires a very small modification, I honestly don't know why it isn't disabled by default), but I'm currently a tad unsure how to proceed, has anyone accomplished anything similar in the past, that they'd be willing to share details on?
|
Sponsored Links |
#1532
|
||||
|
||||
^^
I don't see why you wouldn't be able to put an Exec2 leading to a batch file before ISDone (or whatever implementation you use to bridge Inno Setup and FreeArc) starts. A suggestion, Paste this into a batch file and save it as disable_path_limit.bat: Code:
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d 1 /f Code:
Source: disable_path_limit.bat; DestDir: {tmp}; Flags: dontcopy Code:
ExtractTemporaryFile('disable_path_limit.bat'); Exec2(ExpandConstant('{tmp}\disable_path_limit.bat'),'',false); DeleteFile(ExpandConstant('{tmp}\disable_path_limit.bat')); Note that this batch file requires admin permissions so providing the installer is running in an elevated state, the script should face no issues. |
#1533
|
||||
|
||||
Quote:
UPDATE: It seems that FreeArc doesn't like Long Paths regardless of the registry, looks like I'll have to resign myself to using a shorter default folder name. Last edited by L33THAK0R; 12-01-2023 at 00:36. |
#1534
|
|||
|
|||
Good morning everybody! Is there any way to add a check box in setup.exe for unnecessary .bin files (e.g. soundtracks, manuals, .png images, bonus content in general) and the corresponding instructions in archives.ini file for inno setup? Which are the needed instructions for it? Thank you so much!
|
#1535
|
||||
|
||||
Does anyone know how to change the border cursor of an EDIT?
See the attached file. I would like the cursor when entering the edit to also display the "Hand" cursor and not the "Arrow" cursor. P.S: If you disable the Edit border, this cursor is not displayed. Although the attachment file is created in delphi I would like a solution that I can use in Inno Setup. Thanks! |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |
Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |