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

Reply
 
Thread Tools Display Modes
  #1  
Old 23-09-2024, 08:39
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
I need help with inno setup subfolder game.exe!!!

Hi guys, I need your help with the inno setup program. My problem is with the shortcut to the desktop of my game. I'm making a repack and my .exe file is in a subfolder and the inno setup program only works well if the .exe file is in the main root folder of the game. I need to edit my script correctly so that the address of my desktop shortcut works correctly. Could you share my script in case you can correct it for me? I hope for your help. Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 23-09-2024, 09:05
ivanlakersss666 ivanlakersss666 is offline
Registered User
 
Join Date: Mar 2015
Location: Miami beach
Posts: 105
Thanks: 10
Thanked 11 Times in 11 Posts
ivanlakersss666 is on a distinguished road
Quote:
Originally Posted by Ivanlakersss2016 View Post
Hi guys, I need your help with the inno setup program. My problem is with the shortcut to the desktop of my game. I'm making a repack and my .exe file is in a subfolder and the inno setup program only works well if the .exe file is in the main root folder of the game. I need to edit my script correctly so that the address of my desktop shortcut works correctly. Could you share my script in case you can correct it for me? I hope for your help. Thanks.
https://www.mediafire.com/file/p1iox...copia.iss/file
Reply With Quote
  #3  
Old 23-09-2024, 09:13
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,413
Thanks: 1,078
Thanked 7,018 Times in 2,659 Posts
KaktoR is on a distinguished road
Attached Files
File Type: 7z fix.7z (1.0 KB, 6 views)
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Ivanlakersss2016 (23-09-2024)
  #4  
Old 23-09-2024, 09:39
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Could you tell me which lines you fixed or deleted exactly so I could solve it, thank you!
Reply With Quote
  #5  
Old 23-09-2024, 09:49
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,413
Thanks: 1,078
Thanked 7,018 Times in 2,659 Posts
KaktoR is on a distinguished road
Code:
[Files]
Source: "C:\GAMES\Advent Rising\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\System\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\System\{#MyAppExeName}"; Tasks: desktopicon
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Ivanlakersss2016 (23-09-2024)
  #6  
Old 23-09-2024, 09:58
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,413
Thanks: 1,078
Thanked 7,018 Times in 2,659 Posts
KaktoR is on a distinguished road
You could add something like this if you want to change subfolder name in just one line of script instead of several lines

Code:
#define Subfolder "System\"

[Setup]
.........


[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#Subfolder}{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#Subfolder}{#MyAppExeName}"; Tasks: desktopicon
__________________
Haters gonna hate
Reply With Quote
  #7  
Old 24-09-2024, 09:21
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
I need to fix 3 shortcuts for 3 games, I can't fix it, I'm sharing the file with you in case you can fix it for me, thanks

https://www.mediafire.com/file/iydyw...ction.iss/file
Reply With Quote
  #8  
Old 24-09-2024, 09:23
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,413
Thanks: 1,078
Thanked 7,018 Times in 2,659 Posts
KaktoR is on a distinguished road
What you mean you need to remove shortcuts?
__________________
Haters gonna hate
Reply With Quote
  #9  
Old 24-09-2024, 09:29
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
What you mean you need to remove shortcuts?
I need to install the 3 shortcuts to my Windows desktop correctly so that the games run properly
Reply With Quote
  #10  
Old 24-09-2024, 11:17
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
????
Reply With Quote
  #11  
Old 24-09-2024, 13:15
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,413
Thanks: 1,078
Thanked 7,018 Times in 2,659 Posts
KaktoR is on a distinguished road
The problem here is that you use the same {#MyAppName} ISPP code for all 3 games. This just means that the installer actually creates all 3, but overwrites the previous because of the same shortcut name.

Change it like this
Code:
Name: "{commondesktop}\Resident Evil"; Filename: "{app}\Resident Evil\ResidentEvil.exe"; Tasks: desktopicon
Name: "{commondesktop}\Resident Evil 2 Leon"; Filename: "{app}\Resident Evil 2\LeonS.exe"; Tasks: desktopicon
Name: "{commondesktop}\Resident Evil 2 Clair"; Filename: "{app}\Resident Evil 2\ClaireS.exe"; Tasks: desktopicon
Do the same for {group} constant in [Icons] section.

PS: {group} are startmenu icons. If you don't want them you can delete them and just keep desktop shortcuts.
__________________
Haters gonna hate

Last edited by KaktoR; 24-09-2024 at 13:19.
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Ivanlakersss2016 (24-09-2024)
  #12  
Old 24-09-2024, 15:41
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
Thank you very much my friend, in the end it worked with your advice, I suppose that if I want to create more shortcuts to the desktop it is to add more lines respecting the parameters of never placing the same name so that it never gives me another error, I will make a video tutorial for YouTube so that my wisdom reaches more people who need to create repacks
Reply With Quote
  #13  
Old 25-09-2024, 04:27
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
The problem here is that you use the same {#MyAppName} ISPP code for all 3 games. This just means that the installer actually creates all 3, but overwrites the previous because of the same shortcut name.

Change it like this
Code:
Name: "{commondesktop}\Resident Evil"; Filename: "{app}\Resident Evil\ResidentEvil.exe"; Tasks: desktopicon
Name: "{commondesktop}\Resident Evil 2 Leon"; Filename: "{app}\Resident Evil 2\LeonS.exe"; Tasks: desktopicon
Name: "{commondesktop}\Resident Evil 2 Clair"; Filename: "{app}\Resident Evil 2\ClaireS.exe"; Tasks: desktopicon
Do the same for {group} constant in [Icons] section.

PS: {group} are startmenu icons. If you don't want them you can delete them and just keep desktop shortcuts.
Excuse me, I have 2 questions for you, I would like to know what I should edit in my script so that when I create my desktop shortcut inno setup I check the box directly activated. My second question is, how can I create my accesses from inno setup directs go directly to a folder when I install my game. I hope your help, thank you!
Reply With Quote
  #14  
Old 25-09-2024, 15:48
Dario06's Avatar
Dario06 Dario06 is offline
Registered User
 
Join Date: Sep 2024
Location: Betelgeuse
Posts: 37
Thanks: 10
Thanked 20 Times in 13 Posts
Dario06 is on a distinguished road
internal (no isdone)
Code:
#define MyAppName "Games"
#define GameExe1  "RS3.exe"
#define GameExe2  "RS4.exe"
#define GameExe3  "RS7.exe"

[Setup]
AppName={#MyAppName}
AppVersion=3.4.7
DefaultDirName={sd}\{#MyAppName}
DisableProgramGroupPage=yes
OutputBaseFilename=setup
Compression=lzma2/Ultra64
SolidCompression=no
DiskSpanning=yes
Uninstallable=no

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
;Flags: unchecked

[Files]
Source: "Resident Evil 3\*"; DestDir: "{app}\Resident Evil 3"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "Resident Evil 4\*"; DestDir: "{app}\Resident Evil 4"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "Resident Evil 7\*"; DestDir: "{app}\Resident Evil 7"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{commondesktop}\{cm:rs3}"; Filename: "{app}\Resident Evil 3\{#GameExe1}"; Tasks: desktopicon
Name: "{commondesktop}\{cm:rs4}"; Filename: "{app}\Resident Evil 4\{#GameExe2}"; Tasks: desktopicon
Name: "{commondesktop}\{cm:rs7}"; Filename: "{app}\Resident Evil 7\{#GameExe3}"; Tasks: desktopicon

[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"

[CustomMessages]
en.rs3=Run Resident Evil 3
en.rs4=Run Resident Evil 4
en.rs7=Run Resident Evil 7

Last edited by Dario06; 26-09-2024 at 02:14.
Reply With Quote
The Following User Says Thank You to Dario06 For This Useful Post:
Ivanlakersss2016 (26-09-2024)
  #15  
Old 26-09-2024, 07:28
Ivanlakersss2016 Ivanlakersss2016 is offline
Registered User
 
Join Date: Sep 2024
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Ivanlakersss2016 is on a distinguished road
If I wanted to edit the .ico files of the desktop shortcuts with others that I like, what should I edit from my script? They would be 4 icons.
Reply With Quote
Reply

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
BlackBox v2 y_thelastknight Conversion Tutorials 566 13-10-2023 18:04
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 06:51
Useful Dll for Inno Setup users peterf1999 Conversion Tutorials 88 01-12-2017 17:00
Create Dll C++ in VS 2015 compatible with Inno Setup MCI Conversion Tutorials 14 08-09-2017 10:07
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 07:57



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


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