Click here to Skip to main content
15,867,764 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I believe every deployed product (application) from VS has a unique id or smth like that, that doesn't change over distribution. What I mean is that I publish an app and give it to a company with 100 employees and the product remains with the same unique ID on every single PC it is installed.

I have come across GUID from Assembly Information of the program's project, but I am not sure it is that one. So is there anything like such unique id of the product, and if yes - where can I find it AND how can I access it in the code itself. I.e.: string uniqueID = Something.getProductID() or whatever...
Posted

1 solution

Open the solution file with a text editor (ie. not Visual Studio) and look at the guids used to identify the projects in the solution. There is a guid for each project (generally every .exe and .dll), not just for the entire app.

There is also a guid used to identify a particular version of an installed product in an installer file (ie. .msi file). When you install a newer version of your product with an installer, it checks the currently installed version's guid before installing... so this is for each version (okay, each build) of the app.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900