#136
|
||||
|
||||
Quote:
Code:
#define GameExec "bin\game.exe" |
Sponsored Links |
#137
|
|||
|
|||
Language not defined blank space
Language selection has skin, but now if some are not defined there is blank space in it's place
![]() |
#138
|
||||
|
||||
Quote:
In the [Languages] section of the script, simply enter the text highlighted in red color below (on script line 294 here). Code:
#sub CreateLangList #if defined(LangSection) && (FileLine != "") && (Pos(";", FileLine) != 1) && (Pos("[", FileLine) != 1) #expr LangList[Count] = FileLine #expr Count++ #elif Pos(LowerCase("[Languages]"), LowerCase(FileLine)) > 0 #define public LangSection #endif #endsub |
The Following User Says Thank You to Cesar82 For This Useful Post: | ||
sakhjack (31-10-2021) |
#139
|
|||
|
|||
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) |
#140
|
||||
|
||||
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 08:26. |
The Following User Says Thank You to Cesar82 For This Useful Post: | ||
Gehrman (03-11-2021) |
#141
|
|||
|
|||
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. |
#142
|
||||
|
||||
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 09:25. |
The Following 2 Users Say Thank You to Cesar82 For This Useful Post: | ||
Gehrman (03-11-2021), giruthanders (05-11-2021) |
![]() |
Tags |
asis, ciu, inno, installer, ultraarc |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ultimate Conversion Compressor (UCC) | vollachr | Conversion Tutorials | 55 | 26-04-2021 09:27 |
INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 02:05 |
[Help] need Advanced Installer script with Razor1911's UltraArc module | rez3vil | Conversion Tutorials | 1 | 29-09-2016 04:10 |
How many forum members does it take to change a light bulb? | rms2001 | XBox Games | 6 | 12-01-2004 05:31 |