Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #136  
Old 01-11-2021, 05:10
giruthanders giruthanders is offline
Registered User
 
Join Date: Oct 2021
Location: Japan
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
giruthanders is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
See if the line given below does not contain ";" before the line, or if you correctly set the path to the game's executable relative to the {app} installation folder.
Code:
#define GameExec "bin\game.exe"
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.
Reply With Quote
The Following User Says Thank You to giruthanders For This Useful Post:
Cesar82 (01-11-2021)
Sponsored Links
  #137  
Old 01-11-2021, 08:52
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
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.
PS: SkinSharp skins only work if compiling with Inno Setup 6.0 or higher.
Attached Images
File Type: png snap2972.png (154.3 KB, 410 views)

Last edited by Cesar82; 01-11-2021 at 09:26.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Gehrman (03-11-2021)
  #138  
Old 01-11-2021, 10:31
giruthanders giruthanders is offline
Registered User
 
Join Date: Oct 2021
Location: Japan
Posts: 3
Thanks: 1
Thanked 1 Time in 1 Post
giruthanders is on a distinguished road
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.
Reply With Quote
  #139  
Old 02-11-2021, 10:12
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by giruthanders View Post
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.
FitGirl installers look for the next drive other than the drive the system is installed on and always install the game in a "Games" subfolder.
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}
Then paste this code below into the [ Code] section of the script.
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;
I hope that's what you need.

Last edited by Cesar82; 02-11-2021 at 10:25.
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
Gehrman (03-11-2021), giruthanders (05-11-2021)
  #140  
Old 23-05-2022, 15:47
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by sakhjack View Post
is it possible to create master switch to disable all functions relevant to Uninstaller? (similar to #ifdef AppURL)
I could comment it out manually, but I might not get everything
I don't understand what exactly you need?
You mean a preprocessor parameter that disabling it disables the creation of uninstall files and uninstall registry entries?

Quote:
Originally Posted by sakhjack View Post
also people report installer trying to access Internet at the end even with AppURL not defined
It makes no sense that the installer is trying to access the internet.
The AppPublisherURL= AppSupportURL= AppUpdatesURL= keys are descriptive used only in shortcut of the control panel.
READ: AppPublisherURL, AppSupportURL, AppUpdatesURL.
Reply With Quote
  #141  
Old 23-05-2022, 22:42
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
Lignt Installer Script 1.0.1.0 (u2)

Quote:
Originally Posted by sakhjack View Post
yes, I'd like script to not execute anything related to Uninstalling if a variable is not defined
---------
my own system never caught installer trying to access network, so I have no idea either
Attached script 1.0.1.0 (U2):
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.
Attached Files
File Type: 7z Light Installer Script 1.0.1.0 SRC [2022.05.24] (U2).7z (20.2 KB, 23 views)
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
Gehrman (02-07-2022), sakhjack (29-05-2022), sebs5 (06-06-2022)
  #142  
Old 29-05-2022, 14:41
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by sakhjack View Post
.bin and .style (unnamed) files created in folder System32 after installation
I assume it's from CurStepChanged (ssPostInstall section)
----
Other minor issues:
  • LogoOnClick is missing #ifdef AppURL condition
  • ShowWindow has a typo in argument
Code:
function ShowWindow(hWnd: v; ...)
---
I guess it's supposed to be 
---
function ShowWindow(hWnd: HWND; ...)
Thanks for reporting the bugs.
If you find other bugs let me know.
I have attached the script with the reported bugs fixed.
Attached Files
File Type: 7z Light Installer Script 1.0.1.0 SRC [2022.05.29] (U3).7z (20.3 KB, 28 views)
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
Gehrman (29-05-2022), mausschieber (29-05-2022), sakhjack (29-05-2022)
  #143  
Old 12-06-2022, 23:54
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
LIU Preview (Starting project)
If you have any suggestions, they are welcome.
Attached Files
File Type: 7z LIU - Preview.7z (1.97 MB, 61 views)
Reply With Quote
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  
Old 15-06-2022, 18:33
macut18's Avatar
macut18 macut18 is offline
Registered User
 
Join Date: Jun 2017
Location: Thailand
Posts: 21
Thanks: 82
Thanked 6 Times in 4 Posts
macut18 is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
LIU Preview (Starting project)
If you have any suggestions, they are welcome.
It's awesome. I'm waiting.
Reply With Quote
The Following 2 Users Say Thank You to macut18 For This Useful Post:
Cesar82 (15-06-2022), Gehrman (02-07-2022)
  #145  
Old 15-06-2022, 23:46
fabrieunko fabrieunko is offline
Registered User
 
Join Date: Sep 2021
Location: france
Posts: 168
Thanks: 269
Thanked 52 Times in 45 Posts
fabrieunko is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
LIU Preview (Starting project)
If you have any suggestions, they are welcome.
gorgeous.
Reply With Quote
The Following User Says Thank You to fabrieunko For This Useful Post:
Cesar82 (16-06-2022)
  #146  
Old 19-06-2022, 10:36
-tara -tara is offline
Registered User
 
Join Date: May 2022
Location: Asda
Posts: 10
Thanks: 6
Thanked 8 Times in 3 Posts
-tara is on a distinguished road
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
i merge the records.ini into the setup.dll and include the setup.dll in innosetup, although im not sure how to "tag" the optional file as such, therefore when i try installing without the optional file the setup asks for it.
How do i make the installer skip the optional file if its not there?
Thanks in advance.
Reply With Quote
  #147  
Old 20-06-2022, 03:54
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by -tara View Post
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
i merge the records.ini into the setup.dll and include the setup.dll in innosetup, although im not sure how to "tag" the optional file as such, therefore when i try installing without the optional file the setup asks for it.
How do i make the installer skip the optional file if its not there?
Thanks in advance.
you can include the additional file as a task and leave it unchecked. but if the task is checked the installer will always ask for the file.
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
-tara (20-06-2022), Gehrman (02-07-2022)
  #148  
Old 13-07-2022, 10:08
Gehrman's Avatar
Gehrman Gehrman is offline
Registered User
 
Join Date: Jan 2020
Location: Save Palestine
Posts: 78
Thanks: 1,267
Thanked 87 Times in 47 Posts
Gehrman is on a distinguished road
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
Reply With Quote
  #149  
Old 13-07-2022, 12:34
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Gehrman View Post
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
Using the records section I think it would be difficult as the DiskSpan GUI creates the file using the [record#] sections in consecutive order, used in many other installers.

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.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Gehrman (13-07-2022)
  #150  
Old 17-08-2022, 02:34
Lord.Freddy's Avatar
Lord.Freddy Lord.Freddy is offline
Registered User
 
Join Date: Apr 2022
Location: In Forest
Posts: 48
Thanks: 199
Thanked 32 Times in 22 Posts
Lord.Freddy is on a distinguished road
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
if you like, add these changes to your Script

Last edited by Lord.Freddy; 17-08-2022 at 02:40.
Reply With Quote
The Following User Says Thank You to Lord.Freddy For This Useful Post:
Cesar82 (06-09-2022)
Reply

Tags
asis, ciu, inno, installer, ultraarc

Thread Tools
Display Modes

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 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



All times are GMT -7. The time now is 04:49.


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