Problem with set_link (linkfolder)

Antworten
Tim
Beiträge: 2
Registriert: 26 Apr 2016, 16:07

Problem with set_link (linkfolder)

Beitrag von Tim »

Hi,

I have tried different approaches here, but none of them work.

The following i'm trying to establish: Installing the Google Chrome web browser and creating a shortcut on the desktop that opens the chrome browser with a webpage.

I've tried following code, but none of them work:

Code: Alles auswählen

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" 
        parameters: http://www.microsoft.com
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link

Code: Alles auswählen

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" 
        parameters: "http://www.microsoft.com"
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link

Code: Alles auswählen

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" 
        parameters: 'http://www.microsoft.com'
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link

Code: Alles auswählen

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" 
        parameters: --add-app http://www.microsoft.com
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link

Code: Alles auswählen

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" 
        parameters: "--add-app http://www.microsoft.com"
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link

Code: Alles auswählen

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe"  "http://www.microsoft.com"
        parameters: 
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link

Code: Alles auswählen

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe"  http://www.microsoft.com
        parameters: 
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link
What am i missing here?

OPSI-WINST version 4.11.5.19
OS trying on: Win 7 SP1 X64 and also Win 10 X64

Thank you very much for your help.

Bye,

Tim
Tim
Beiträge: 2
Registriert: 26 Apr 2016, 16:07

Re: Problem with set_link (linkfolder)

Beitrag von Tim »

OK, never mind, found it myself.
Needed to set the base folder to common_desktopdirectory

Code: Alles auswählen

set_basefolder common_desktopdirectory

set_link
        name: Google Chrome
        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" --add-app www.microsoft.com
        parameters: http://www.microsoft.com
        working_dir: "%CurrentDesktopDir%\"
        icon_file:
        icon_index:
end_link
Antworten