From 2ffc382ac253e7f32179427695390523b8a5f110 Mon Sep 17 00:00:00 2001 From: Caelan Date: Sun, 28 Jul 2024 20:48:31 +0100 Subject: [PATCH] Don't run shortcut logic in installer if no shortcut locations provided (#191) --- src/Rust/src/commands/install.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Rust/src/commands/install.rs b/src/Rust/src/commands/install.rs index db3b4bbc..dda40952 100644 --- a/src/Rust/src/commands/install.rs +++ b/src/Rust/src/commands/install.rs @@ -191,7 +191,9 @@ fn install_impl(pkg: &bundle::BundleInfo, root_path: &PathBuf, tx: &std::sync::m } info!("Creating shortcuts..."); - windows::create_or_update_manifest_lnks(&root_path, &app, None); + if !app.shortcut_locations.is_empty() { + windows::create_or_update_manifest_lnks(&root_path, &app, None); + } info!("Starting process install hook"); if !windows::run_hook(&app, &root_path, "--veloapp-install", 30) {