View Full Version : Shortcut problem
First I wish to work well.
I am a beginner and I am preparing a setup file with Inno Setup Compiler and Innoide. I usually play games. But in some games I have a shortcut problem. Example: If you set up the GTA V game as a setup, the shortcut to the game is C: \ Program Files (x86) \ Grand Theft Auto V \ GTAVLauncher.exe. But if the shortcut is in another folder in the directory C: \ Program Files (x86) \ Grand Theft Auto V \ Bin \ GTAVLauncher.exe
Such as the shortcut automatically installs into the directory is installed. Actually the game does not work because the shortcut needs to be in the bin file and it is in direct directory.
I need help in this regard. I'm very happy if you can help. I hope I have succeeded in telling you.
#define MyAppName "My Program"
#define MyAppExeName "MyProg.exe"
[Setup]
AppName={#MyAppName}
AppVerName={#MyAppName}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "MyProg.exe"; DestDir: "{app}\Bin"; Flags: ignoreversion
[Icons]
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\Bin\{#MyAppExeName}";
Name: "{userdesktop}\Install {#AppName}"; Filename: "{app}\Bin\{#AppExe}";
Thank you very much for the answer.
I am very happy to be able to help you with where to add this line.
Thank you.
#define MyAppName "My Program"
#define MyAppExeName "MyProg.exe"
[Setup]
AppName={#MyAppName}
AppVerName={#MyAppName}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "MyProg.exe"; DestDir: "{app}\Bin"; Flags: ignoreversion
[Icons]
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\Bin\{#MyAppExeName}";
Thanks for your help.
[Icons]
Name: "{userdesktop}\Install {#AppName}"; Filename: "{app}\Bin\{#AppExe}";
[Icons]
Name: "{userdesktop}\Install {#AppName}"; Filename: "{app}\Bin\{#AppExe}";
Thanks for your help.
[Icons]
Name: "{userdesktop}\Install {#AppName}"; Filename: "{app}\Bin\{#AppExe}";
where is the difference
I would like to thank all the helpful friends ...
Add Remove Program next to the name of the game "version 1.0" I want to not leave the text. How can I do it.
Thank you.
screenshot
http://i.hizliresim.com/QaRX3V.jpg (http://hizliresim.com/QaRX3V)
http://i.hizliresim.com/GBvnA7.jpg (http://hizliresim.com/GBvnA7)
#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppExeName "MyProg.exe"
[Setup]
AppId={{19A35D00-4028-45F0-813A-199F6D7FBEF1}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName}
AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Remove All
#define MyAppName "My Program"
[I];#define MyAppVersion "1.5"
;#define MyAppPublisher "My Company, Inc."
#define MyAppExeName "MyProg.exe"
[Setup]
AppName={#MyAppName}
;AppVersion={#MyAppVersion}
AppVerName={#MyAppName}
;AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Code ]
procedure InitializeWizard();
begin
[I]WizardForm.BorderStyle := bsDialog;
with WizardForm do begin Caption:='';
end;end;
#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppExeName "MyProg.exe"
[Setup]
AppId={{19A35D00-4028-45F0-813A-199F6D7FBEF1}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName}
AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Remove All
#define MyAppName "My Program"
[I];#define MyAppVersion "1.5"
;#define MyAppPublisher "My Company, Inc."
#define MyAppExeName "MyProg.exe"
[Setup]
AppName={#MyAppName}
;AppVersion={#MyAppVersion}
AppVerName={#MyAppName}
;AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Code ]
procedure InitializeWizard();
begin
[I]WizardForm.BorderStyle := bsDialog;
with WizardForm do begin Caption:='';
end;end;
Thanks for your help.
Rinaldo, I thanked you for making it but I did not. I do not get the mistakes like the picture, what I do wrong ...
http://i.hizliresim.com/ALA3bQ.jpg (http://hizliresim.com/ALA3bQ)
AppVerName is necessary
Please do not blame me for being late. Thank you so much for your help, like everything I want ...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.