Skip to content

Local, full Windows search replacement, clipboard manager, and launcher: files, apps, settings and semantic media search with Google's EmbeddingGemma 2.

Release VectorDash 0.3.9 with saved searches and native window fixes

ampersandrue13257ae5a15
diff --git a/Build-Rust.ps1 b/Build-Rust.ps1
index 74a1140..e261c4f 100644
--- a/Build-Rust.ps1
+++ b/Build-Rust.ps1
@@ -75,8 +75,8 @@ if (Test-Path $taskPortable) { throw 'Portable staging directory already exists.
New-Item -ItemType Directory -Force $taskPortable | Out-Null
Get-ChildItem -LiteralPath $taskBundle | Copy-Item -Destination $taskPortable -Recurse -Force
Set-Content -LiteralPath (Join-Path $taskPortable 'portable.flag') -Value '' -Encoding ascii
-Compress-Archive -Path (Join-Path $taskPortable '*') -DestinationPath 'dist/installer/VectorDash-Rust-0.3.8-x64.zip' -Force
-$taskInstaller='dist/installer/VectorDash-Rust-Setup-0.3.8-x64.exe'
-$taskZip='dist/installer/VectorDash-Rust-0.3.8-x64.zip'
+Compress-Archive -Path (Join-Path $taskPortable '*') -DestinationPath 'dist/installer/VectorDash-Rust-0.3.9-x64.zip' -Force
+$taskInstaller='dist/installer/VectorDash-Rust-Setup-0.3.9-x64.exe'
+$taskZip='dist/installer/VectorDash-Rust-0.3.9-x64.zip'
@($taskInstaller,$taskZip) | ForEach-Object {((Get-FileHash -LiteralPath $_ -Algorithm SHA256).Hash.ToLowerInvariant()+' '+(Split-Path $_ -Leaf))} | Set-Content 'dist/installer/RUST-SHA256SUMS.txt' -Encoding ascii
Write-Output "Native installer and portable ZIP ready."
diff --git a/README.md b/README.md
index 48e32ff..0509b93 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,8 @@ Search by name or exact words, or describe what you remember. Google's **Embeddi
3. **Optional semantic search:** open **Models & hardware → Status**, select features, hardware and model, then click **Download, install and start**. **Q8_0** is the default. For names-only search, skip model setup and select Quick mode in Sources. The calculator and Windows settings shortcuts are ready immediately.
4. Add folders or drives in **Sources**, then click **Update index**. Start with a small folder to check results.
+**Upgrading:** setup installs as **VectorDash** and replaces the older Python installation in its existing folder. A separately registered Rust preview is removed after a successful upgrade. Settings, models and indexes are retained; older Python indexes can be imported as a copy through Sources.
+
Enable **Include Start menu programs** in Sources to search installed program shortcuts. The catalog loads at startup. Select a result and press **Enter** to launch its original shortcut, preserving arguments and working folders.
**File/Folder Names** search needs no model. In **Sources**, choose **Quick file / folder names** or **Full index** before adding drives, folders or files. To change existing sources, select entries (or **Select/Deselect all**) and apply a mode, then update the index. In either search window, choose **Both**, **File/Folder Names** or **Semantic**, and use the source dropdown to search some or all sources. More specific folders take priority when sources overlap. Index status shows Full/Quick file counts and how many files have vectors. Enable **Skip Windows system and frequently changing cache folders** in Sources to omit temp files, crash dumps, update staging and selected caches while keeping personal folders and Program Files.
diff --git a/native/Cargo.lock b/native/Cargo.lock
index aa97370..eaed9c4 100644
--- a/native/Cargo.lock
+++ b/native/Cargo.lock
@@ -4478,7 +4478,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vectordash"
-version = "0.3.8"
+version = "0.3.9"
dependencies = [
"anyhow",
"base64 0.22.1",
diff --git a/native/Cargo.toml b/native/Cargo.toml
index 3aa8c16..87abbd6 100644
--- a/native/Cargo.toml
+++ b/native/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "vectordash"
-version = "0.3.8"
+version = "0.3.9"
edition = "2024"
license = "MIT"
[dependencies]
diff --git a/native/assets/app.rc b/native/assets/app.rc
index 2c77a9e..ec71f40 100644
--- a/native/assets/app.rc
+++ b/native/assets/app.rc
@@ -1 +1,28 @@
-1 ICON "assets/vectordash.ico"
+1 ICON "@ICON@"
+1 VERSIONINFO
+ FILEVERSION @VERSION_COMMAS@
+ PRODUCTVERSION @VERSION_COMMAS@
+ FILEFLAGSMASK 0x3fL
+ FILEFLAGS 0x0L
+ FILEOS 0x40004L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904B0"
+ BEGIN
+ VALUE "CompanyName", "VectorDash contributors\0"
+ VALUE "FileDescription", "VectorDash\0"
+ VALUE "FileVersion", "@VERSION@\0"
+ VALUE "InternalName", "VectorDash\0"
+ VALUE "OriginalFilename", "VectorDash.exe\0"
+ VALUE "ProductName", "VectorDash\0"
+ VALUE "ProductVersion", "@VERSION@\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0409, 1200
+ END
+END
diff --git a/native/build.rs b/native/build.rs
index 2faad61..20158e4 100644
--- a/native/build.rs
+++ b/native/build.rs
@@ -2,7 +2,20 @@ fn main() {
println!("cargo:rerun-if-changed=assets/vectordash.ico");
println!("cargo:rerun-if-changed=assets/app.rc");
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
- embed_resource::compile("assets/app.rc", embed_resource::NONE)
+ let version = std::env::var("CARGO_PKG_VERSION").unwrap();
+ let commas = format!("{},0", version.replace('.', ","));
+ let icon = std::path::Path::new(&std::env::var("CARGO_MANIFEST_DIR").unwrap())
+ .join("assets/vectordash.ico")
+ .to_string_lossy()
+ .replace('\\', "/");
+ let source = std::fs::read_to_string("assets/app.rc")
+ .unwrap()
+ .replace("@ICON@", &icon)
+ .replace("@VERSION_COMMAS@", &commas)
+ .replace("@VERSION@", &version);
+ let rc = std::path::Path::new(&std::env::var("OUT_DIR").unwrap()).join("vectordash.rc");
+ std::fs::write(&rc, source).unwrap();
+ embed_resource::compile(rc, embed_resource::NONE)
.manifest_required()
.unwrap();
}
diff --git a/native/docs/0.3.9.md b/native/docs/0.3.9.md
new file mode 100644
index 0000000..94c82fd
--- /dev/null
+++ b/native/docs/0.3.9.md
@@ -0,0 +1,11 @@
+# VectorDash 0.3.9
+- Uses the original VectorDash installer identity and installation folder, so setup upgrades the Python installation instead of creating a parallel app.
+- Windows Installed apps, shortcuts and executable product/file descriptions use VectorDash.
+- A successful installation removes a separately registered Rust preview, preserves its data, and carries forward its startup entry.
+- Startup uses the VectorDash registry entry and removes the obsolete preview entry when changed.
+- Removes the old bundled Python runtime during upgrade; settings, downloaded models and indexes are retained outside the installation.
+- Older Python indexes remain available for copy import through Sources. Existing native data stays in its current location.
+
+The installer remains unsigned. Close VectorDash before installing.
+
+Validation: an isolated real Inno Setup upgrade reused the mock Python installation directory, produced one VectorDash registration, removed the separate preview and old Python runtime, and preserved both in-directory and external data fixtures. Executable ProductName/FileDescription are VectorDash and ProductVersion is 0.3.9.
diff --git a/native/src/platform.rs b/native/src/platform.rs
index dc5aad5..5d7513d 100644
--- a/native/src/platform.rs
+++ b/native/src/platform.rs
@@ -569,7 +569,8 @@ pub fn startup(enabled: bool) -> Result<()> {
None,
)
.ok()?;
- let name = wide("VectorDashRust");
+ let _ = RegDeleteValueW(key, PCWSTR(wide("VectorDashRust").as_ptr()));
+ let name = wide("VectorDash");
let result = if enabled {
let command = format!("\"{}\" --startup", std::env::current_exe()?.display());
let value = wide(&command);
diff --git a/packaging/VectorDash-Rust.iss b/packaging/VectorDash-Rust.iss
index 2b1b84f..83dc6db 100644
--- a/packaging/VectorDash-Rust.iss
+++ b/packaging/VectorDash-Rust.iss
@@ -1,17 +1,19 @@
[Setup]
-AppId={{5ACFE4A2-EC45-4B54-95C7-25B862C57DC9}
+AppId={{C6AC1B4D-A119-4D73-B2C8-6C507DEFE923}
AppName=VectorDash
-AppVersion=0.3.8
+AppVerName=VectorDash
+UninstallDisplayName=VectorDash
+AppVersion=0.3.9
AppPublisher=VectorDash contributors
AppPublisherURL=https://github.com/ampersandru/VectorDash
-DefaultDirName={localappdata}\Programs\VectorDashRust
+DefaultDirName={localappdata}\Programs\VectorDash
DefaultGroupName=VectorDash
PrivilegesRequired=lowest
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
MinVersion=10.0.22000
OutputDir=..\dist\installer
-OutputBaseFilename=VectorDash-Rust-Setup-0.3.8-x64
+OutputBaseFilename=VectorDash-Rust-Setup-0.3.9-x64
SetupIconFile=VectorDash.ico
UninstallDisplayIcon={app}\VectorDash.exe
LicenseFile=..\LICENSE
@@ -23,12 +25,41 @@ CloseApplications=yes
Name: desktopicon; Description: "Create a desktop shortcut"; Flags: unchecked
[Files]
Source: "..\dist\VectorDashRust\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
+[InstallDelete]
+; Only the old bundled Python runtime; user data lives outside this directory.
+Type: filesandordirs; Name: "{app}\_internal"
[Icons]
Name: "{group}\VectorDash"; Filename: "{app}\VectorDash.exe"
Name: "{autodesktop}\VectorDash"; Filename: "{app}\VectorDash.exe"; Tasks: desktopicon
[Run]
-Filename: "{app}\VectorDash.exe"; Description: "Open VectorDash"; Flags: nowait postinstall
+Filename: "{app}\VectorDash.exe"; Description: "Open VectorDash"; Flags: nowait postinstall skipifsilent
[Code]
+procedure CurStepChanged(CurStep: TSetupStep);
+var OldUninstaller, OldFolder, StartupCommand: String; ResultCode: Integer; HadPreviewStartup: Boolean;
+begin
+ if CurStep = ssPostInstall then
+ if RegQueryStringValue(HKCU,
+ 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{5ACFE4A2-EC45-4B54-95C7-25B862C57DC9}_is1',
+ 'UninstallString', OldUninstaller) then
+ begin
+ OldUninstaller := RemoveQuotes(OldUninstaller);
+ OldFolder := ExtractFileDir(OldUninstaller);
+ HadPreviewStartup := RegQueryStringValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Run',
+ 'VectorDashRust', StartupCommand);
+ if HadPreviewStartup then
+ HadPreviewStartup := Pos(Lowercase(OldFolder + '\VectorDash.exe'), Lowercase(StartupCommand)) > 0;
+ { Never uninstall the newly upgraded application or touch its data folders. }
+ if (CompareText(OldFolder, RemoveBackslashUnlessRoot(ExpandConstant('{app}'))) <> 0)
+ and FileExists(OldUninstaller) then
+ if not Exec(OldUninstaller, '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART',
+ '', SW_HIDE, ewWaitUntilTerminated, ResultCode) or (ResultCode <> 0) then
+ Log('Old preview removal did not complete; uninstall it from Installed apps.');
+ if HadPreviewStartup then
+ RegWriteStringValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Run',
+ 'VectorDash', '"' + ExpandConstant('{app}\VectorDash.exe') + '" --startup');
+ end;
+end;
+
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var Command: String;
begin
@@ -36,4 +67,8 @@ begin
if RegQueryStringValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Run', 'VectorDashRust', Command) then
if Pos(Lowercase(ExpandConstant('{app}\VectorDash.exe')), Lowercase(Command)) > 0 then
RegDeleteValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Run', 'VectorDashRust');
+ if CurUninstallStep = usUninstall then
+ if RegQueryStringValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Run', 'VectorDash', Command) then
+ if Pos(Lowercase(ExpandConstant('{app}\VectorDash.exe')), Lowercase(Command)) > 0 then
+ RegDeleteValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Run', 'VectorDash');
end;