Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Identify user for whom application is installed.


2 replies to this topic

antyagi

antyagi
  • Full Members
  • 121 posts

Posted 12 September 2006 - 05:42

Hello everybody,

After I install an application, how can i identify for which user this application is installed.

If application ProductCode exist under registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\, I can say that application is installed for AllUsers.

But if application is NOT installed for AllUsers, how can I identify for which user application is installed?

regards,
ankur
  ankur tyagi

Dominik Oberlin

Dominik Oberlin
  • Full Members
  • 12 posts

Posted 12 September 2006 - 16:37

If ALLUSERS="" (per user installation) OR ALLUSERS=2 AND the Installation was in UserContext (per user installation too) then you can check following keys:

HKCU\Software\Microsoft\Installer\Products\[PACKED_GUID]
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\[User-SID]\Products\PACKED_GUID]


Example:
HKCU\Software\Microsoft\Installer\Products\2A22EECF8AB95FF408A05A586442B25B
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-1117333035-483950394-1849977318-32073\Products\2A22EECF8AB95FF408A05A586442B25B]

antyagi

antyagi
  • Full Members
  • 121 posts

Posted 20 September 2006 - 13:32

HKCU\Software\Microsoft\Installer\... this key is not found I tried with WinXP & Win2k3.

You are right, I can still find the GUID of user from HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\[User-SID]\Products\PACKED_GUID] key. But How will I get the name of user from this [User-SID]? How can I get the profiles folder "Documents & Settings\[UserName]\"?

  ankur tyagi