PDA

View Full Version : Shortcut problem


texes06
01-03-2017, 00:41
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.

rinaldo
01-03-2017, 00:49
#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}";

texes06
01-03-2017, 00:54
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.

texes06
01-03-2017, 00:59
#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.

-XCX-
01-03-2017, 01:19
[Icons]
Name: "{userdesktop}\Install {#AppName}"; Filename: "{app}\Bin\{#AppExe}";

texes06
01-03-2017, 01:29
[Icons]
Name: "{userdesktop}\Install {#AppName}"; Filename: "{app}\Bin\{#AppExe}";

Thanks for your help.

-XCX-
01-03-2017, 01:44
anytime bro

rinaldo
01-03-2017, 02:10
[Icons]
Name: "{userdesktop}\Install {#AppName}"; Filename: "{app}\Bin\{#AppExe}";

where is the difference

texes06
01-03-2017, 03:35
I would like to thank all the helpful friends ...

texes06
02-03-2017, 00:55
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.

rinaldo
02-03-2017, 01:06
screenshot

texes06
02-03-2017, 01:20
screenshot

http://i.hizliresim.com/QaRX3V.jpg (http://hizliresim.com/QaRX3V)

http://i.hizliresim.com/GBvnA7.jpg (http://hizliresim.com/GBvnA7)

rinaldo
02-03-2017, 02:45
#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;

texes06
02-03-2017, 03:15
#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.

texes06
02-03-2017, 12:43
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)

rinaldo
02-03-2017, 15:21
AppVerName is necessary

texes06
06-03-2017, 00:53
AppVerName is necessary

Please do not blame me for being late. Thank you so much for your help, like everything I want ...