FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Shortcut problem (https://fileforums.com/showthread.php?t=98950)

texes06 01-03-2017 00:41

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.

rinaldo 01-03-2017 00:49

Code:

#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

Quote:

Originally Posted by rinaldo (Post 456527)
Code:

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

Quote:

Originally Posted by rinaldo (Post 456527)
Code:

#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

Quote:

Originally Posted by -XCX- (Post 456531)
[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

Quote:

Originally Posted by -XCX- (Post 456531)
[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

Quote:

Originally Posted by rinaldo (Post 456558)
screenshot

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

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

rinaldo 02-03-2017 02:45

Code:

#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

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon




Remove All
Code:

#define MyAppName "My Program"
;#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

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Code ]
procedure InitializeWizard();
begin
WizardForm.BorderStyle := bsDialog;
with WizardForm do begin Caption:='';
end;end;


texes06 02-03-2017 03:15

Quote:

Originally Posted by rinaldo (Post 456562)
Code:

#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

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon




Remove All
Code:

#define MyAppName "My Program"
;#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

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Code ]
procedure InitializeWizard();
begin
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


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

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