Active
setup:
Active
setup is a process that runs automatically once when a user logs in.
Active
setup usage:
If
an application requires installation of components such as files or registry
keys on a per-user basis (HKCU or User Profile files
such as LocalAppData, My Documents folder etc.) and the application 
has
no advertised
entry points
or other triggers to initiate the installation process, then Active Setup is
the solution. 
Scenarios
| 
Registry | 
Files | 
Shortcut | 
Active
  Setup | 
| 
HKCU | 
User
  Profile Files | 
No
  Advertised Shortcut | 
Required | 
| 
HKCU | 
No
  User Profile Files | 
No
  Advertised Shortcut | 
Required | 
| 
No
  HKCU | 
User
  Profile Files | 
No
  Advertised Shortcut | 
Required | 
| 
No
  HKCU | 
No
  User Profile Files | 
No
  Advertised Shortcut | 
Not
  Required | 
| 
HKCU | 
User
  Profile Files | 
Advertised
  Shortcut | 
Not
  Required | 
Steps
to include Active setup in Application:
 1. Create a component
and add the below HKLM Registry keys.
HKLM
Registry Keys
 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active
Setup\Installed Components\[ProductCode]] @="[ProductName]"
"StubPath"="msiexec.exe
/fu [ProductCode] /qb!" 
"Version"="[ActiveSetupVersion]"
2. Create a
component and add the below HKCU Registry keys.
HKCU
Registry Keys
 [HKEY_CURRENT_USER\Software\Microsoft\Active
Setup\Installed Components\[ProductCode]]
"Version"="[ActiveSetupVersion]"
3. Create a Property
called “ActiveSetupVersion” with the value containing the Product
version separated by comma. 
Eg: If the Product
Version is 16.0.2 then use 16,0,2
good
ReplyDelete