07-16-2023, 06:23 PM
Hola Lucas! Muchas gracias por el tutorial. Lo estuve probando, pude compilarlo y crear el instalador pero a la hora de iniciar el juego me aparece el siguiente mensaje "The game is not properly installed". Te dejo el script para ver si podes encontrar el error porque probé de varias formas y aun no le encuentro la vuelta.
Mostrar Contenido
Spoiler
Código:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
; MODIFICAMOS ESTOS NOMBRES PARA EL PARCHE, VERSION, AUTOR, PAGINA, EXE Y SERIAL
#define MyAppName "PES 6 Olympic Games 08" ;Nombre del parche
#define MyAppVersion "1.0" ;Version del parche
#define MyAppPublisher "KONAMI" ;Nombre autor
#define MyAppURL "http:; foro.pesretro.net/" ;link de pagina
#define MyAppExeName "pes6.exe" ;Nombre del exe
; SERIAL Registro
#define MySerial "M7TUH9FPHH4XV2XWVAU3" ;Serial
#define MyPES6 "PES6" ;Clave, debe tener 4 caracteres
; LECTURA DEL OF
#define MyCarpeta "KONAMI" ;Carpeta en Mis Documentos
#define MySubcarpeta "PES 6 Olympic Games 08" ;Subcarpeta
#define MyFolder "folder1" ;Carpeta del OF
#define MyParche "Pro Evolution Soccer 6" ;Carpeta del parche a utilizar para el instalador
;Cosas para instalador, no es necesario que lo modifiquen!
[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{BCE0E9D6-41F3-490C-B0D3-4D66ACFDB307}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DisablewelcomePage=no
DisableProgramGroupPage= no
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
Uninstallable=yes
; The [Icons] "quicklaunchicon" entry uses {userappdata} but its [Tasks] entry has a proper IsAdminInstallMode Check.
UsedUserAreasWarning=no
LicenseFile=Pro Evolution Soccer 6\License.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
SetupIconFile=icono.ico
Compression=lzma
SolidCompression=yes
WizardSmallImageFile="Small.bmp"
WizardImageFile="Large.bmp"
;Usamos el punto y coma (;) al pricipio de cada linea para comentar y desactivar el código
;tenga en cuenta esto en adelante por si decea activar o desactivar algo.
;AGREGADO via CHATGPT
[Setup]
ArchitecturesInstallIn64BitMode=x64
;Desactivar la siguiente opción si el parche tiene menos de 2GB de tamaño(DiskSpanning = no)
DiskSpanning = yes
; Direccion donde vamos a instalar el Juego: "C:\Program Files\KONAMI\Pro Evolution Soccer 6"
DefaultDirName={pf}\KONAMI\PES 6 Olympic Games 08
DisableDirPage=false
; Carpeta del instalador
OutputDir=Instalador
; Nombre del instalador Setup mas el nombre del Parche
OutputBaseFilename=Setup {#MyAppName}
[Languages]
; Idiomas del instalador
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
[Files]
; Archivo de opciones(OF)
Source: "KONAMI-WIN32PES6OPT"; DestDir: "{userdocs}\KONAMI\PES 6 Olympic Games 08\save\folder1"
; Nombre del Ejecutable: "pes6.exe"
Source: "Pro Evolution Soccer 6\pes6.exe"; DestDir: "{app}"
; Nombre del settings: "settings.exe"
Source: "Pro Evolution Soccer 6\settings.exe"; DestDir: "{app}"
; Carpeta "Kitserver", Copia todo lo que contenga el kitserver
Source: "Pro Evolution Soccer 6\Kitserver\*"; DestDir: "{app}\Kitserver"; Flags: ignoreversion recursesubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: "Pro Evolution Soccer 6\dat\0_sound.afs"; DestDir: "{app}\dat"
Source: "Pro Evolution Soccer 6\dat\0_text.afs"; DestDir: "{app}\dat"
;Source: "PES 6 Olympic Games 08\dat\opmov"; DestDir: "{app}\dat"
Source: "Pro Evolution Soccer 6\dat\s_sound.afs"; DestDir: "{app}\dat"
Source: "Pro Evolution Soccer 6\dat\s_text.afs"; DestDir: "{app}\dat"
; Arhivos adicionales, como un selector, Por ejemplo el del "Secret Editor"
; Agregar carpeta del Secret editor (quitar el comentario (//)
//Source: "{#MyParche}\Secret Editor\*"; DestDir: "{app}\Secret Editor"; Flags: ignoreversion recursesubdirs
; Nombre del Ejecutable: "Secret Editor.exe" (quitar el comentario (//)
//Source: "{#MyParche}\Secret Editor.exe"; DestDir: "{app}"
; Archivos de registro
[Registry]
Root: HKLM; Subkey: "Software\KONAMIPES6"
; Idiomas
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: dword; ValueName: "lang_e"; ValueData: 0 ; Components:
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: dword; ValueName: "lang_f"; ValueData: 0 ; Components:
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: dword; ValueName: "lang_g"; ValueData: 0 ; Components:
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: dword; ValueName: "lang_i"; ValueData: 0 ; Components:
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: dword; ValueName: "lang_s"; ValueData: 1 ; Components:
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: dword; ValueName: "lang_p"; ValueData: 0 ; Components:
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: string; ValueName: "installfrom"; ValueData: "{drive:{app}}"
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: string; ValueName: "code"; ValueData: M7TUH9FPHH4XV2XWVAU3
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI"; ValueType: string; ValueName: "installdir"; ValueData: "{app}" ; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\KONAMIPES6\KONAMI\1.0"
; al Valor "PES6" de arriba lo pueden cambiar en el pes6.exe
; usando el programa de parche independiente, luego remplazan
; todos los valores del registro mas arriba
;Cosas para instalador, no es necesario que lo modifiquen!
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Icons]
;Name: "{autodesktop}\PES 6 Olympic Games 08"; Filename: "{app}\PES 6 Olympic Games 08\pes6.exe"; Tasks: desktopicon
//Estos tres se agregan al start menu de windows, si necesitas otro podes tomar de ejemplo los de abajo
Name: "{group}\PES 6 Olympic Games 08"; Filename: "{app}\pes6.exe"
Name: "{group}\settings"; Filename: "{app}\settings.exe"
Name: "{group}\uninstall"; Filename: "{uninstallexe}"
[Run]
Filename: "{app}\pes6.exe"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilentResponder

