Linkfolder with arguments

Antworten
nicolaslebrun
Beiträge: 112
Registriert: 18 Apr 2011, 11:43

Linkfolder with arguments

Beitrag von nicolaslebrun »

Hi all !

In a localboot package, i have to create a linkfolder with arguments...

Here is what i do :

Code: Alles auswählen

set_basefolder common_programs
set_subfolder "Vie Scolaire" 

set_link
        name: "Pronote"
        target: "%ProgramFiles32Dir%\Index Education\Pronote 2014\Reseau\Client PRONOTE.exe" -Adresse "10.128.53.170" -PortTcp "49300"
        working_dir: "%ProgramFiles32Dir%\Index Education\Pronote 2014\Reseau\"
end_link
The problem is that the target in the link produced is only "%ProgramFiles32Dir%\Index Education\Pronote 2014\Reseau\Client PRONOTE.exe"

I tried with single quotes

Code: Alles auswählen

        target: '"%ProgramFiles32Dir%\Index Education\Pronote 2014\Reseau\Client PRONOTE.exe" -Adresse "10.128.53.170" -PortTcp "49300"'
But it doesn't work either...

Any idea to get this working ?

Greetings,

Nico
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Linkfolder with arguments

Beitrag von SisterOfMercy »

Code: Alles auswählen

[LinkFolder_install]
; Example of deleting a folder from AllUsers startmenu:
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
;
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
;
; set_basefolder common_programs
; set_subfolder $ProductId$
;
; set_link
; 	name: $ProductId$
; 	target: <path to the program>
; 	parameters:
; 	working_dir: $InstallDir$
; 	icon_file:
; 	icon_index:
; end_link
;
; Example of creating an shortcut to the installed exe on AllUsers desktop:
;
; set_basefolder common_desktopdirectory
; set_subfolder ""
;
; set_link
; 	name: $ProductId$
; 	target: <path to the program>
; 	parameters: <some_param>
; 	working_dir: $InstallDir$
; 	icon_file: <path to icon file>
; 	icon_index: 2
; end_link
Use the parameters part like this example.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
nicolaslebrun
Beiträge: 112
Registriert: 18 Apr 2011, 11:43

Re: Linkfolder with arguments

Beitrag von nicolaslebrun »

Thanks a lot !

Didn't knew "parameters" ...

Nico
Antworten