From 6b06e6307102ff2eecce21ccb3d5754c707c3f19 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Thu, 20 Jun 2024 15:41:56 +0200 Subject: [PATCH] Fix2 --- setupApps.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupApps.ps1 b/setupApps.ps1 index 11968c2..0e74b16 100644 --- a/setupApps.ps1 +++ b/setupApps.ps1 @@ -153,8 +153,8 @@ function InstallApps { InstallZip -zip "rastop.zip" -exe "RasTop.exe" -app "RasTop" InstallExeSetup -app "SalsaJ_2_3.exe" -skipIf "C:\Program Files (x86)\SalsaJ" # edit C:\Users\Public\Desktop\SalsaJ.lnk target to "C:\Program Files (x86)\Java\jre1.8\bin\javaw.exe" -jar -Dfile.encoding=UTF-8 "C:\Program Files (x86)\SalsaJ\SalsaJ.jar" - $shell = New-Object -ComObject Shell.Application - $shortcut = $shell.NameSpace((Join-Path $env:PUBLIC "Desktop")).ParseName("SalsaJ.lnk") + $shell = New-Object -ComObject WScript.Shell + $shortcut = $shell.CreateShortcut(Join-Path $env:PUBLIC "Desktop\SalsaJ.lnk") $shortcut.TargetPath = "C:\Program Files (x86)\Java\jre1.8\bin\javaw.exe" $shortcut.Arguments = "-jar -Dfile.encoding=UTF-8 `"$env:ProgramFiles (x86)\SalsaJ\SalsaJ.jar`"" $shortcut.Save()