From: helmuth varkoly Date: Thu, 26 Sep 2019 07:25:34 +0000 (+0200) Subject: added DesktopIcon X-Git-Url: https://repo.cephalix.eu/gitweb/?a=commitdiff_plain;h=2d84858b62cb71d6a4cc81f43444e9afcaf4de0b;p=OpenBoard.git added DesktopIcon --- diff --git a/OpenBoard.sls b/OpenBoard.sls index f452394..e4a39dd 100644 --- a/OpenBoard.sls +++ b/OpenBoard.sls @@ -7,8 +7,23 @@ # # Description: SLS to use with OSS's softwaremanagement ############################################################################### +{% if grains['cpuarch'] == 'AMD64' %} +{% set DIR = "C:\Program Files (x86)\OpenBoard" %} +{% else %} +{% set DIR = "C:\Program Files\OpenBoard" %} +{% endif %} + PACKAGE: pkg: - installed +OpenBoard_present: + file.exists: + - name : {{DIR}}\OpenBoard.exe + +create_link: + cmd.run: + - name: powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('C:\Users\Public\Desktop\OpenBoard.lnk');$s.TargetPath='{{ DIR }}\OpenBoard.exe';$s.Save()" + - require: + - file: OpenBoard_present