#1
|
|||
|
|||
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.
|
Sponsored Links |
#2
|
|||
|
|||
Quote:
|
#3
|
||||
|
||||
__________________
Haters gonna hate
|
The Following User Says Thank You to KaktoR For This Useful Post: | ||
Ivanlakersss2016 (23-09-2024) |
#4
|
|||
|
|||
Could you tell me which lines you fixed or deleted exactly so I could solve it, thank you!
|
#5
|
||||
|
||||
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
|
The Following User Says Thank You to KaktoR For This Useful Post: | ||
Ivanlakersss2016 (23-09-2024) |
#6
|
||||
|
||||
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
|
#7
|
|||
|
|||
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 |
#8
|
||||
|
||||
What you mean you need to remove shortcuts?
__________________
Haters gonna hate
|
#9
|
|||
|
|||
I need to install the 3 shortcuts to my Windows desktop correctly so that the games run properly
|
#10
|
|||
|
|||
????
|
#11
|
||||
|
||||
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 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. |
The Following User Says Thank You to KaktoR For This Useful Post: | ||
Ivanlakersss2016 (24-09-2024) |
#12
|
|||
|
|||
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
|
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
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. |
The Following User Says Thank You to Dario06 For This Useful Post: | ||
Ivanlakersss2016 (26-09-2024) |
#15
|
|||
|
|||
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.
|
Thread Tools | |
Display Modes | |
|
|
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 |