Anmol Verma
12/06/2022, 5:29 PMAlex Styl
12/06/2022, 5:51 PMAnmol Verma
12/07/2022, 5:24 AMdesktop:run
and not desktop:runDistributable
Alex Styl
12/07/2022, 3:09 PMAnmol Verma
12/07/2022, 3:10 PMAnmol Verma
12/07/2022, 3:10 PMAnmol Verma
12/07/2022, 3:12 PMAlex Styl
12/07/2022, 3:45 PMAlex Styl
12/07/2022, 3:45 PMAnmol Verma
12/07/2022, 3:59 PMAnmol Verma
12/07/2022, 4:00 PMAnmol Verma
12/07/2022, 4:01 PMAnmol Verma
12/07/2022, 4:03 PMAnmol Verma
12/07/2022, 4:04 PMAnmol Verma
12/07/2022, 4:36 PMval reg: WindowsRegistry = WindowsRegistry.getInstance()
val appExecutablePath = ProcessHandle.current()
.info()
.command()
.orElseThrow();
val protocolRegKey = "Software\\Classes\\slackclone"
val protocolCmdRegKey = "shell\\open\\command"
val regKeyUri = reg.createKey(HKey.HKCU, protocolRegKey);
val regKeyShellCommand = reg.createKey(HKey.HKCU, protocolCmdRegKey)
reg.writeStringValue(HKey.HKCU,protocolRegKey,"URL Protocol","")
reg.writeStringValue(HKey.HKCU,protocolCmdRegKey,"","$appExecutablePath %1")
Anmol Verma
12/07/2022, 4:38 PMmikehearn
12/09/2022, 6:22 PMmikehearn
12/09/2022, 6:22 PMapp.url-schemes = [ my-protocol ]
and in other frameworks you'd manually edit the NSIS configuration, perhaps.Anmol Verma
12/10/2022, 5:05 AM