Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Windows Updated Installer Does not Use Same GUID #5631

Closed
elibroftw opened this issue Nov 15, 2022 · 2 comments
Closed

[bug] Windows Updated Installer Does not Use Same GUID #5631

elibroftw opened this issue Nov 15, 2022 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@elibroftw
Copy link

elibroftw commented Nov 15, 2022

Describe the bug

After updating an app, either manually or by using the Tauri Updater, the icon for the app on the Windows taskbar shows up as blank. The icon will always display correctly for the Start Menu shortcut but takes a couple of days to show correctly in the install location (irrelevant as this is based on my memory not hard proof). FYI, the icon in the taskbar was pinned from the start menu and not the app install location.

image
image

After a couple days, the icon in the install location shows properly (irrelevant):

image

But the icon of the app pinned to the taskbar remains blank:
image

If I downgrade my app, the icon shows up fine in the taskbar:
image

After unpinning the app, and pinning it from the app source, the issue is not present

I did some digging; I looked at the icon path for the Start Menu shortcut and the GUID changed after the update!

Reproduction

No response

Expected behavior

Shortcut icon path should not change between installs which necessitates that the GUID should not change between installs which necessitates that the GUID should not be changed for each installer or version of the app built.

Platform and versions

Environment
› OS: Windows 10.0.19044 X64
› Webview2: 107.0.1418.42
› MSVC:
- Visual Studio Community 2022
› Node.js: 18.12.1
› npm: 8.19.2
› pnpm: Not installed!
› yarn: 1.22.11
› rustup: 1.24.3
› rustc: 1.61.0
› cargo: 1.61.0
› Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
› @tauri-apps/cli [NPM]: 1.2.0
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.0,
› tauri-build [RUST]: 1.2.0,
› tao [RUST]: 0.15.3,
› wry [RUST]: 0.22.0,

App
› framework: React
› bundler: Rollup

App directory structure
├─ .git
├─ .github
├─ .idea
├─ assets
├─ build
├─ node_modules
├─ public
├─ src
├─ src-tauri
└─ utils

Stack trace

No response

Additional context

This is a double issue. The top level issue is that the shortcut icon pinned to the taskbar is different after installing an update. The root problem is the GUID is changing for each installer built. This is not mentioned under https://tauri.app/v1/guides/building/cross-platform nor is it mentioned at the top of https://tauri.app/v1/guides/building/windows nor does it show up under search
image

Under https://stackoverflow.com/questions/1405100/change-my-component-guid-in-wix/1422121,

Your updated MSI delivers a new version of MyFile.exe. The location is the same as before, this means the component GUID should not change. It is the same file (identity), just in a different version.

https://stackoverflow.com/a/5834288/7732434

More info if you need it.

@elibroftw elibroftw added status: needs triage This issue needs to triage, applied to new issues type: bug labels Nov 15, 2022
@elibroftw elibroftw changed the title [bug] Windows Installer Does not Use FIXED GUID [bug] Windows Installer Does not Use Same GUID Nov 15, 2022
@elibroftw elibroftw changed the title [bug] Windows Installer Does not Use Same GUID [bug] Windows Updated Installer Does not Use Same GUID Nov 15, 2022
@lucasfernog
Copy link
Member

I'm not sure if a consistent GUID has other implications, but it did not fix the issue to me. A good resource on this was this issue comment. I'll open a PR changing the RemoveExistingProducts scheduling, which did fix the problem. I also tested to see if resources are kept across updates, which is the case (that can be problematic if we schedule it too late).

@ChinkyPrinceCarey
Copy link

When using the Tauri inbuilt updater to perform the update, the problem still persists. Specifically, after the update via Tauri, the pinned taskbar icon appears blank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants