How to get app's GUID to fill the Uninstall command for Win32 apps

Celeste 90 Reputation points
2023-04-21T09:22:42.7066667+00:00

Hello experts, I want to deploy a Win32 app, but when it comes to the Uninstall command, I cannot find a GUID to fill in. Can you please tell me how to get this GUID? Thanks.

Microsoft Security | Intune | Other
0 comments No comments
{count} votes

Accepted answer
  1. Simon Ren-MSFT 40,341 Reputation points Microsoft External Staff
    2023-04-24T07:08:46.52+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    1,Agree with @Pavel yannara Mirochnitchenko . Yes, we need to manually install the win32 app target software on the test computer, then open the registry and go to one of the following paths:
    X64 apps: HKEY_ LOCAL_ MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

    X86 apps: HKEY_ LOCAL_ MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

    Search for the application we installed in these two registry paths, and the value corresponding to 'UninstallString' is the app's GUID.

    2,We can also use the following PowerShell command to obtain the GUID of the app:

    get-wmiobject Win32_ Product | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize

    get-wmiobject Win32_ Product | Sort-Object -Property Name |Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize

    Thanks for your time. Have a nice day!

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Pavel yannara Mirochnitchenko 13,336 Reputation points MVP
    2023-04-21T10:51:28.9133333+00:00

    You can get it from registery after installation of the program, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall or 32bit from here; HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.