#136
|
|||
|
|||
Thank you for responding! Yes, it does not contain a ; before the line but still didn't work. In the end I found that adding "runascurrentuser" to the flags made it work. Hope this helps anyone who had the same problem I did.
|
The Following User Says Thank You to giruthanders For This Useful Post: | ||
Cesar82 (01-11-2021) |
Sponsored Links |
#137
|
||||
|
||||
Light Installer Script 1.0.1.0
Added Light Installer Script 1.0.1.0 in first post.
Code:
- Added support for Persian (Farsi) language to Light Installer Script (Thanks to Gehrman for collaboration). - Added support for skinsharp skins (SkinH.dll library by Shegorat) to Light Installer Script. >> The library of the skinsharp does not support special characters like cyrillic characters. >> So languages like Russian and Japanese and Persian should get broken using skinsharp. - Fixed some minor bugs. Last edited by Cesar82; 01-11-2021 at 09:26. |
The Following User Says Thank You to Cesar82 For This Useful Post: | ||
Gehrman (03-11-2021) |
#138
|
|||
|
|||
Remember Default Installation Directory
Hello, I would like to ask how I could make the setup remember the folder I install my games in, like FitGirl's?
The default is C:\Program Files, but for example I change it to D:\Games. I want the installer to remember so that the next game I install, it will default to that directory instead of going back to C. |
#139
|
||||
|
||||
Quote:
It doesn't memorize your last choice, it always installs in a "Games" folder and on the same drive. Even if you choose "E:\My Games", assuming the system is installed on the "C:" drive in the next install it will suggest "D:\Games" as in the first install (Correct me if I'm wrong). If you want similar behavior change the line in the [Setup] section of the script. Code:
from: DefaultDirName={#DefaultDir}\{#GameName} to: DefaultDirName={code:NoSD}\Games\{#GameName} Code:
const DRIVE_FIXED = 3; function GetLogicalDriveStrings(nLenDrives: DWORD; lpDrives: String): DWORD; external '[email protected] stdcall delayload'; function GetDriveType(lpDisk: String): DWORD; external '[email protected] stdcall delayload'; function NoSD(Param: String): String; var Drive: String; Buffer: String; begin SetLength(Buffer, 255); SetLength(Buffer, GetLogicalDriveStrings(254, Buffer)); Result := ExpandConstant('{sd}'); while Pos(#0, Buffer) > 0 do begin Drive := Copy(Buffer, 1, Pos(#0, Buffer) - 1); if (GetDriveType(Drive) = DRIVE_FIXED) and (CompareText(Drive, ExpandConstant('{sd}\')) <> 0) then begin Result := RemoveBackslash(Drive); Break; end; Delete(Buffer, 1, Pos(#0, Buffer)); end; end; Last edited by Cesar82; 02-11-2021 at 10:25. |
The Following 2 Users Say Thank You to Cesar82 For This Useful Post: | ||
Gehrman (03-11-2021), giruthanders (05-11-2021) |
#140
|
||||
|
||||
Quote:
You mean a preprocessor parameter that disabling it disables the creation of uninstall files and uninstall registry entries? Quote:
The AppPublisherURL= AppSupportURL= AppUpdatesURL= keys are descriptive used only in shortcut of the control panel. READ: AppPublisherURL, AppSupportURL, AppUpdatesURL. |
#141
|
||||
|
||||
Lignt Installer Script 1.0.1.0 (u2)
Quote:
Code:
- Added ISPP directive (#define Uninstallable), if you disable this directive line: >> It won't create the uninstall files. >> Will not create uninstall registry keys. >> It will not create the shortcuts in the start menu. |
#142
|
||||
|
||||
Quote:
If you find other bugs let me know. I have attached the script with the reported bugs fixed. |
The Following 3 Users Say Thank You to Cesar82 For This Useful Post: | ||
#143
|
||||
|
||||
LIU Preview (Starting project)
If you have any suggestions, they are welcome. |
The Following 8 Users Say Thank You to Cesar82 For This Useful Post: | ||
andreiutzu21 (13-06-2022), fabrieunko (15-06-2022), ffmla (21-06-2022), Gehrman (02-07-2022), KaktoR (16-06-2022), macut18 (13-06-2022), mausschieber (13-06-2022), oo7 (19-06-2022) |
#144
|
||||
|
||||
It's awesome. I'm waiting.
|
#146
|
|||
|
|||
How do i add optional files?
After getting the diskspan output of 2 files (data1.bin,data-optional.bin) and adding both to the records.ini like so:
Code:
[Record1] Type=FreeArc_Original Source={src}\data1.bin Output={app}\ Disk=1 Size=1.924.677.867 bytes [Record2] Type=FreeArc_Original Source={src}\data-optional.bin Output={app}\ Disk=2 Size=78.614.874 bytes How do i make the installer skip the optional file if its not there? Thanks in advance. |
#147
|
||||
|
||||
Quote:
|
#148
|
||||
|
||||
Request to add ISExec
Hi Cesar82
Is it possible to add ISExec like the example below? Code:
[Record1] Type=ISExec Source={tmp}\SHH_Patch_HI-VU.exe Param=/Dir={app} Disk=1 Task=1 |
#149
|
||||
|
||||
Quote:
Perhaps something unique to the Light Installer could be implemented in a different section like [Exec#] by manually adding it to the Records.ini itself. |
The Following User Says Thank You to Cesar82 For This Useful Post: | ||
Gehrman (13-07-2022) |
#150
|
||||
|
||||
Isskin INI code
Hi Cesar82, Thank you for the script you made, but i have a problem when adding the skin(cjstyles) with INI code, the skin is not added, So i made some changes:
Code:
#if !defined(StyleFile) #define StyleFile "NULL" #else #define StyleParam "" #if Pos("|", StyleFile) > 0 #define StyleParam Trim(Copy(StyleFile, Pos("|", StyleFile + "|") + 1, Len(StyleFile))) #expr StyleParam = StyleParam + ".ini" #if (StyleParam != "") && (LowerCase(ExtractFileExt(StyleFile)) == "cjstyles") #expr StyleParam = StyleParam + ".ini" #endif #define StyleFile Trim(Copy(StyleFile, 0, Pos("|", StyleFile) - 1)) #endif #if (LowerCase(ExtractFileExt(StyleFile)) != "vsf") && (LowerCase(ExtractFileExt(StyleFile)) != "cjstyles") && (LowerCase(ExtractFileExt(StyleFile)) != "she") #define StyleFile "NULL" #endif #endif Last edited by Lord.Freddy; 17-08-2022 at 02:40. |
The Following User Says Thank You to Lord.Freddy For This Useful Post: | ||
Cesar82 (06-09-2022) |
Tags |
asis, ciu, inno, installer, ultraarc |
Thread Tools | |
Display Modes | |
|
|
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 03:24 |
Ultimate Conversion Compressor (UCC) | vollachr | Conversion Tutorials | 55 | 26-04-2021 10:27 |
INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 03:05 |
How many forum members does it take to change a light bulb? | rms2001 | XBox Games | 6 | 12-01-2004 06:31 |