[GH-ISSUE #549] Silent Install doesn't install Start Menu Shortcuts #451

Closed
opened 2026-02-26 09:31:28 +03:00 by kerem · 10 comments
Owner

Originally created by @pyoungberg on GitHub (Nov 9, 2019).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/549

Issuehunt badges

We pushed the ScreenToGif.2.19.3.Setup.msi installer via Intune to our machines with the /silent switch and it installs, but no shortcut is placed in any of the users' Start Menus. Note, it's installing in the Per-User context so it should be running the installer as the currently signed in user. "C:\Program Files (x86)\ScreenToGif" exists on every machine we push it to, so we know it's installing. Can you have the msi installer drop a shortcut or a folder with a shortcut to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs", even when the installer is run silently? Thank you!


IssueHunt Summary

Backers (Total: $0.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

Originally created by @pyoungberg on GitHub (Nov 9, 2019). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/549 <!-- Issuehunt Badges --> [<img alt="Issuehunt badges" src="https://img.shields.io/badge/IssueHunt-%240%20Funded-%2300A156.svg" />](https://issuehunt.io/r/NickeManarin/ScreenToGif/issues/549) <!-- /Issuehunt Badges --> We pushed the ScreenToGif.2.19.3.Setup.msi installer via Intune to our machines with the /silent switch and it installs, but no shortcut is placed in any of the users' Start Menus. Note, it's installing in the Per-User context so it should be running the installer as the currently signed in user. "C:\Program Files (x86)\ScreenToGif" exists on every machine we push it to, so we know it's installing. Can you have the msi installer drop a shortcut or a folder with a shortcut to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs", even when the installer is run silently? Thank you! <!-- Issuehunt content --> --- <details> <summary> <b>IssueHunt Summary</b> </summary> ### Backers (Total: $0.00) #### [Become a backer now!](https://issuehunt.io/r/NickeManarin/ScreenToGif/issues/549) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/NickeManarin/ScreenToGif/issues/549) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/NickeManarin/ScreenToGif/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. --- IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members) </details> <!-- /Issuehunt content-->
kerem 2026-02-26 09:31:28 +03:00
Author
Owner

@issuehunt-oss[bot] commented on GitHub (Nov 9, 2019):

@pyoungberg has funded $50.00 to this issue.


<!-- gh-comment-id:552050971 --> @issuehunt-oss[bot] commented on GitHub (Nov 9, 2019): [@pyoungberg](https://issuehunt.io/u/pyoungberg) has funded $50.00 to this issue. --- - Submit pull request via [IssueHunt](https://issuehunt.io/repos/64713769/issues/549) to receive this reward. - Want to contribute? Chip in to this issue via [IssueHunt](https://issuehunt.io/repos/64713769/issues/549). - Checkout the [IssueHunt Issue Explorer](https://issuehunt.io/issues) to see more funded issues. - Need help from developers? [Add your repository](https://issuehunt.io/r/new) on IssueHunt to raise funds.
Author
Owner

@NickeManarin commented on GitHub (Nov 9, 2019):

Hi, the switches to add shortcuts are these:

msiexec /i "ScreenToGif 2.19.3 Setup.msi" /quiet /norestart INSTALLDESKTOPSHORTCUT=yes INSTALLSHORTCUT=yes

https://github.com/NickeManarin/ScreenToGif/wiki/Installation-parameters

I'm not sure if it works with Intune.

<!-- gh-comment-id:552053000 --> @NickeManarin commented on GitHub (Nov 9, 2019): Hi, the switches to add shortcuts are these: > msiexec /i "ScreenToGif 2.19.3 Setup.msi" /quiet /norestart INSTALLDESKTOPSHORTCUT=yes INSTALLSHORTCUT=yes https://github.com/NickeManarin/ScreenToGif/wiki/Installation-parameters I'm not sure if it works with Intune.
Author
Owner

@pyoungberg commented on GitHub (Nov 9, 2019):

Thanks, but this only works when manually executing ".\ScreenToGif.2.19.3.Setup.msi /quiet INSTALLSHORTCUT=yes". The properties (INSTALLSHORTCUT) are being ignored though when it's pushed through Intune. Can you confirm that they're marked as SecureCustomProperties, like shown in the example below?

https://stackoverflow.com/questions/39225934/customaction-and-msi-properties-ignored-when-deploying-through-intune

<!-- gh-comment-id:552056294 --> @pyoungberg commented on GitHub (Nov 9, 2019): Thanks, but this only works when manually executing ".\ScreenToGif.2.19.3.Setup.msi /quiet INSTALLSHORTCUT=yes". The properties (INSTALLSHORTCUT) are being ignored though when it's pushed through Intune. Can you confirm that they're marked as SecureCustomProperties, like shown in the example below? https://stackoverflow.com/questions/39225934/customaction-and-msi-properties-ignored-when-deploying-through-intune
Author
Owner

@NickeManarin commented on GitHub (Nov 9, 2019):

Ah, it was false by default.
I can't test it, since I don't work with Intune. Could you test it?

Properties = new[]
{
    new Property("INSTALLDESKTOPSHORTCUT", "no") { Secure = true },
    new Property("INSTALLSHORTCUT", "no") { Secure = true }
},

ScreenToGif 2.19.3 Setup.zip

<!-- gh-comment-id:552061518 --> @NickeManarin commented on GitHub (Nov 9, 2019): Ah, it was false by default. I can't test it, since I don't work with Intune. Could you test it? ``` Properties = new[] { new Property("INSTALLDESKTOPSHORTCUT", "no") { Secure = true }, new Property("INSTALLSHORTCUT", "no") { Secure = true } }, ``` [ScreenToGif 2.19.3 Setup.zip](https://github.com/NickeManarin/ScreenToGif/files/3826880/ScreenToGif.2.19.3.Setup.zip)
Author
Owner

@pyoungberg commented on GitHub (Nov 11, 2019):

Worked like a charm, thanks @NickeManarin. Successfully deployed to several machines through Intune.

<!-- gh-comment-id:552591465 --> @pyoungberg commented on GitHub (Nov 11, 2019): Worked like a charm, thanks @NickeManarin. Successfully deployed to several machines through Intune.
Author
Owner

@NickeManarin commented on GitHub (Nov 11, 2019):

@pyoungberg Great! This change will be available with the next version of the app.

I see that this issue was funded on IssueHunt.
Since the installer is not open sourced in here, there's no way to get the bounty. :/

<!-- gh-comment-id:552593778 --> @NickeManarin commented on GitHub (Nov 11, 2019): @pyoungberg Great! This change will be available with the next version of the app. I see that this issue was funded on IssueHunt. Since the installer is not open sourced in here, there's no way to get the bounty. :/
Author
Owner

@issuehunt-oss[bot] commented on GitHub (Nov 11, 2019):

@pyoungberg has cancelled funding for this issue.(Cancelled amount: $50.00) See it on IssueHunt

<!-- gh-comment-id:552609225 --> @issuehunt-oss[bot] commented on GitHub (Nov 11, 2019): [@pyoungberg](https://issuehunt.io/u/pyoungberg) has cancelled funding for this issue.(Cancelled amount: $50.00) [See it on IssueHunt](https://issuehunt.io/repos/64713769/issues/549)
Author
Owner

@pyoungberg commented on GitHub (Nov 11, 2019):

I canceled it on IssueHunt - You should see the payment come through PayPal in the next few days.

<!-- gh-comment-id:552611731 --> @pyoungberg commented on GitHub (Nov 11, 2019): I canceled it on IssueHunt - You should see the payment come through PayPal in the next few days.
Author
Owner

@NickeManarin commented on GitHub (Nov 12, 2019):

@pyoungberg Oh, thank you! :D

<!-- gh-comment-id:552870799 --> @NickeManarin commented on GitHub (Nov 12, 2019): @pyoungberg Oh, thank you! :D
Author
Owner

@DW-42 commented on GitHub (Apr 25, 2024):

I am able to reproduce this issue even with the latest version of ScreenToGif (version 2.41.0) when installed as the built-in Windows user 'NT AUTHORITY\SYSTEM'. The logs suggest that the installer is using the wrong values for the ProgramMenuFolder and DesktopFolder properties:

  • ProgramMenuFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\
  • DesktopFolder = C:\WINDOWS\system32\config\systemprofile\Desktop\

These values should be:

  • DesktopFolder = C:\Users\Public\Desktop\
  • ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\

In summary, the MSI installer is likely hardcoding or incorrectly retrieving the 'NT AUTHORITY\SYSTEM' user profile paths instead of the expected public folders, resulting in the shortcuts not being created in the correct locations.

<!-- gh-comment-id:2076290880 --> @DW-42 commented on GitHub (Apr 25, 2024): I am able to reproduce this issue even with the latest version of ScreenToGif (version 2.41.0) when installed as the built-in Windows user 'NT AUTHORITY\SYSTEM'. The logs suggest that the installer is using the wrong values for the `ProgramMenuFolder` and `DesktopFolder` properties: - `ProgramMenuFolder = C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\` - `DesktopFolder = C:\WINDOWS\system32\config\systemprofile\Desktop\` These values should be: - `DesktopFolder = C:\Users\Public\Desktop\` - `ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\` In summary, the MSI installer is likely hardcoding or incorrectly retrieving the 'NT AUTHORITY\SYSTEM' user profile paths instead of the expected public folders, resulting in the shortcuts not being created in the correct locations.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#451
No description provided.