‎10-28-2015 05:02 PM
Solved! Go to Solution.
‎10-28-2015 08:12 PM
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command {PackageShare}\Installers\PATH TO YOUR PACKAGE\MakeLnk.ps1
# Create Shortcut with modified Target Directory
#$DesktopPath = [Environment]::GetFolderPath("Desktop")
$DesktopPath = 'C:\Users\Public\Desktop'
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$DesktopPath\NAME OF SHORTCUT HERE.lnk")
$Shortcut.TargetPath = "C:\Program Files (x86)\PATH TO\YOUR APPLICATION\YOUR FILE.exe"
$Shortcut.Arguments = 'YOUR TARGET COMMAND LINE ARGUMENTS (SWITCHES) GO HERE'
$Shortcut.Save()
‎10-28-2015 08:12 PM
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command {PackageShare}\Installers\PATH TO YOUR PACKAGE\MakeLnk.ps1
# Create Shortcut with modified Target Directory
#$DesktopPath = [Environment]::GetFolderPath("Desktop")
$DesktopPath = 'C:\Users\Public\Desktop'
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$DesktopPath\NAME OF SHORTCUT HERE.lnk")
$Shortcut.TargetPath = "C:\Program Files (x86)\PATH TO\YOUR APPLICATION\YOUR FILE.exe"
$Shortcut.Arguments = 'YOUR TARGET COMMAND LINE ARGUMENTS (SWITCHES) GO HERE'
$Shortcut.Save()
‎10-28-2015 07:53 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now