Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Install Just for Me or Everyone
 

Install Just for Me or Everyone

Hi

Is there a way to determine if an application was installed for everyone or just for me after a user has set it up?

thanks in advance
mjcast  Monday, August 10, 2009 2:33 PM
Hello,

Since there are many difference between a Per-User installation and a Per-Machine installation. Please check the following documentation

Installation Context
http://msdn.microsoft.com/en-us/library/dd765197(VS.85).aspx

The easiest way to determine if an application was installed for everyone or just for me might be check the where the shortcut is stored and the registry.

However, if you want get it programmatically, you can try to call the MsiEnumProducts or MsiEnumProductsEx functions(as Phil suggested) to enumerate all the products installed on the system, and then retrieve information about the installation context of these products by calling the MsiGetProductInfoEx or MsiGetProductInfo functions.

Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Marked As Answer bymjcast Wednesday, August 12, 2009 12:13 PM
  •  
Rong-Chun Zhang  Tuesday, August 11, 2009 7:11 AM
There are Windows APIs like MsiEnumProductsEx that will list all installed products and tell you whether they are installed per-user or per-machine. Is that the kind of thing you're looking for?
Phil Wilson
PhilWilson  Monday, August 10, 2009 9:52 PM
Hello,

Since there are many difference between a Per-User installation and a Per-Machine installation. Please check the following documentation

Installation Context
http://msdn.microsoft.com/en-us/library/dd765197(VS.85).aspx

The easiest way to determine if an application was installed for everyone or just for me might be check the where the shortcut is stored and the registry.

However, if you want get it programmatically, you can try to call the MsiEnumProducts or MsiEnumProductsEx functions(as Phil suggested) to enumerate all the products installed on the system, and then retrieve information about the installation context of these products by calling the MsiGetProductInfoEx or MsiGetProductInfo functions.

Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Marked As Answer bymjcast Wednesday, August 12, 2009 12:13 PM
  •  
Rong-Chun Zhang  Tuesday, August 11, 2009 7:11 AM

You can use google to search for other answers

Custom Search

More Threads

• ClickOnce vs Application Updater Block vs ????
• setup wizard fxMdac error
• Adding files to setup project fails
• S&D Launch Conditions (Syntax maybe?)
• HELP Outlook AddIn gives permission error for a PDF library itextsharp.dll
• Creating ClickOnce with Mage.exe removes 4 characters in .application
• Setup and Deployment
• Urgent Clickonce Vista Problem
• Setup Wizard banner text
• Project deployment use case feasibility