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
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.
Identify user for whom application is installed.
Started by
antyagi
, Sep 12 2006 05:42
2 replies to this topic
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]
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]
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]\"?
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