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

Reply
 
Thread Tools Display Modes
  #136  
Old 01-11-2021, 04: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, 07:52
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 799
Thanks: 1,309
Thanked 1,702 Times in 580 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, 266 views)

Last edited by Cesar82; 01-11-2021 at 08: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, 09: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, 09:12
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 799
Thanks: 1,309
Thanked 1,702 Times in 580 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 09: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, 14:47
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 799
Thanks: 1,309
Thanked 1,702 Times in 580 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, 21:42
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 799
Thanks: 1,309
Thanked 1,702 Times in 580 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, 12 views)
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
sakhjack (29-05-2022), sebs5 (06-06-2022)
  #142  
Old 29-05-2022, 13:41
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 799
Thanks: 1,309
Thanked 1,702 Times in 580 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, 17 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, 22:54
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 799
Thanks: 1,309
Thanked 1,702 Times in 580 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, 32 views)
Reply With Quote
The Following 7 Users Say Thank You to Cesar82 For This Useful Post:
andreiutzu21 (12-06-2022), fabrieunko (15-06-2022), ffmla (21-06-2022), KaktoR (16-06-2022), macut18 (13-06-2022), mausschieber (13-06-2022), oo7 (19-06-2022)
  #144  
Old 15-06-2022, 17:33
macut18's Avatar
macut18 macut18 is offline
Registered User
 
Join Date: Jun 2017
Location: Thailand
Posts: 19
Thanks: 76
Thanked 4 Times in 3 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 User Says Thank You to macut18 For This Useful Post:
Cesar82 (15-06-2022)
  #145  
Old 15-06-2022, 22:46
fabrieunko fabrieunko is offline
Registered User
 
Join Date: Sep 2021
Location: france
Posts: 87
Thanks: 47
Thanked 15 Times in 12 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, 09:36
-tara -tara is offline
Registered User
 
Join Date: May 2022
Location: Asda
Posts: 1
Thanks: 1
Thanked 0 Times in 0 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, 02:54
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 799
Thanks: 1,309
Thanked 1,702 Times in 580 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 User Says Thank You to Cesar82 For This Useful Post:
-tara (20-06-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
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



All times are GMT -7. The time now is 03:56.


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