I’ve been very busy lately, and I’m sorry about the blog being so quiet. I haven’t gotten around to completing the Custom Action DLL tutorial, but I’m pretty close. I need to find a server that would let me store some zip files. Any ideas?
Back in September, Aaron Stebner blogged about detecting what .NET 1.0 Service Pack is installed. One of the keys he mentions checking has the word "Active Setup" in it. Just what is that key for?
The Active Setup key in Local Machine is read when a user logs in to the system. Keys in the Local Machine registry hive are compared against keys in the Current User hive. If a key that exists in Local Machine does not exist in the Current User hive, the program the key points to is run. Effectively, this is one way to customize (or completely remove) an installation on a per-user basis, assuring that a program is executed exactly once per user.
There are several installations that use this key. Microsoft Net Meeting and Internet Explorer are a few examples. Lets say you update Internet Explorer to a new version – like IE 5 to IE 6 – and you have two active user profiles. When the computer is restarted and the user logs in, you see a dialog that shows IE is being configured. When the other user logs in, they see the same dialog. This is Active Setup at work! Net Meeting uses this mechanism to cleanup user profiles after Net Meeting is uninstalled. Sadly, virus and spyware packages also use this mechanism (changing the Local Machine key after each reboot), forcing the vigilant advanced user to check yet another key for items that run at startup. This is yet another reason to run as a restricted user!
The limitations of this mechanism are simple: The program that is run from Active Setup runs in the current user space. Therefore, to be completely safe, any Active Setup program should require read/write access of the most restricted user type – only modifying files and registry keys owned by an individual user. Additionally, this is run BEFORE the shell and other run keys.
There is no "official" documentation on these keys or this behavior, so the normal caveats apply to using this mechanism – it may not be present in newer versions of the OS or Service Packs.
Here is some detailed descriptions of the keys and their contents. A registry key called "HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components" has a bunch of subkeys under it that are GUIDs. Values contained under the GUID key that we are talking about are "Version" (string), and "StubPath" (Expand String).
Every time a user logs in, the contents of this key is compared against the SAME key in HKCU. If the HKCU key does not exist and/or the "version" value is less than that in HLKM, the appropriate "StubPath" command is run and the key copied to HKCU so it is not run again.
To see how this works for yourself, you can create a key in HKLM…Installed Components and call it "test". Then, add to it a String Value "StubPath" and set it to "notepad". Reboot. See that when you log in, notepad starts. Log in as a different user. See that notepad starts. Log in again with the first ID – notice notepad does not start – as now the "test" key has been copied into the HKCU branch after it ran the first time. Note that version is not necessary.
Since I am not sure what the other values of these keys mean and/or do, I’m going to end the discussion here. If anyone has more information on these keys, please add it to the comments for this post!
30 comments:
...the version string must be comma delimited:
1,0,0,0
looeee
Does active setup run before the RUN key is executed?
That's the best explanation about "Active Setup" I found... So thanks for that and if someone knows even more please post the source.
Thanks for the blog. Your explanation is very good. I have a two queries.
1) How are uninstalls handled with active setup?
2) When I install the same component again after an uninstall, how is it handled in active setup?
Here is the explanation for few keys of "Active Setup"
1. Version Key: Version key value plays a vital role. It is used to Install a new version of component to the user on first login. For example if u have "app1.0.exe" in active setup and want to upgrade it to "app2.0.exe" and want that every user have it, you have to modify the HKLM "Active setup's version" key to value 2. On first login of a user, OS check the HKCU with HKLM and as HKCU has lower version than HKLM it execute the "app2.0.exe" and modify the HKCU "Active Setup" keys.
2. Isinstalled key : Application specified by "StubPath" is run every time on login if the "Isinstalled" key value is set to 0, else it is not run.
3. Locale key: It is used to specify the language locale of the application.
4. ComponentId key : It is used to specify the Id(name) of the application.
For Version, I figured that if you used point "." (ex: "3.5.8"), it does not work.
You should use comma instead ",".
Thank you for the "IsInstalled" explanation.
Hi Steven,
Thank you for the post.
I need help regarding a dialog that pops up after uninstalling NetMeeting. As I read and understand, the dialog is due to the following value in "StubPath" value -- "rundll32.exe advpack.dll,LaunchINFSection %17%\msnetmtg.inf,NetMtg.Remove.PerUser.NT"
I tried to change the command to the below to silently answer the dialog but it hasn't worked.
"rundll32.exe advpack.dll,LaunchINFSection %17%\msnetmtg.inf,NetMtg.Remove.PerUser.NT,,1" -- 1 for "Quiet and No UI" mode.
I am able to avoid the dialog by deleting "StubPath" but I would rather like to answer the dialog with "Yes" silently.
Could you please suggest a way to answer the dialog silently.
Thanks in advance
Rohini Chandra
There are also comparable registry keys for 32-bit apps running on a 64-bit OS:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components
and
HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Active Setup\Installed Components
All the post a tech blogger which pursue experience of about 10 years in the tech field and also norton com setup . To know more about him you can track him at post.
Your blog provided us with valuable information to work with McAfee.com activate download Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.
Thank you so much for spending time to write this blog article, i must say you are a excellent and talented blogger, I Found This Article To Be Very Informative and Helpful, please keep sharing such amazing blogs I am a Accountant from United States of America, Washington Dc, and I Love to read and Write Blog.
Some Of My Web Blogs Awesome Blog Post Please Feel Free to Check Out My Blog you will find the process of Norton software installation with step by step instructions and much more.
Keep Sharing will come back to read more,
Click to Process
norton.com/setup download and install
norton.com/setup enter product key
www.norton.com/setup
login.norton.com
my.norton.com
norton.com/setup
norton.com/setup activate
norton.com/setup install
norton.com/setup help
norton.com/setup renewals
norton.com/enroll product key
Its A amazing Post Thanks For Sharing
www.prime.com/mytv
www.primevideos.com/mytv
www.hulu.com/activate
www.prime.com/mytv
My Amazon prime video TV Help
=============================
www.amazon.com/mytv - Enter Mytv Code - PrimeVideo.com
visit Amazon MYTV Enter code or www.primevideo.com/mytv and enter Amazon activation code to activate amazon prime videos on your smart tv and pc
Sling TV Pack Activation Help
======================
www.Sling.com/Activate | Activate Sling Tv | Sling.com/Activate
www.Sling.com/Activate Roku Steps, Sling TV Packages and Sling TV offers you an amazing alternative for cable at a cheap price. You can avail of many live channels including local channels with the Sling TV package subscription. Sling TV is supported on many devices including Roku.
Sling TV Pack Activation Help
======================
www.Sling.com/Activate | Activate Sling Tv | Sling.com/Activate
www.Sling.com/Activate Roku Steps, Sling TV Packages and Sling TV offers you an amazing alternative for cable at a cheap price. You can avail of many live channels including local channels with the Sling TV package subscription. Sling TV is supported on many devices including Roku.
Office.com/setup | Activate Your Office Setup with Product Key
We publish blogs about Microsoft Office software, such as how to use them, how to install them on various devices, and how to unlock them. As we all know, Microsoft Office is a huge piece of software, and users sometimes run into issues when attempting to install it. We've already published several articles on how to resolve these issues and quickly install Office on your PC.
Visit the below links to get it resolved:
setup.office.com
www.office.com/setup
office.com/setup
office.com/setup login
office setup
Hey There……
There are products for students, professionals, home users as well as business and these can be easily installed/deployed with the help of the Office product key. Once you decide to purchase the Office product suite of your choice, it becomes easier for you to set up the product on your device/s. So, let’s walk you through the complete step-by-step procedure to set up Office.
Visit below links to start:
office.com/setup
office com/setup
setup.office.com
Hey Everyone,Are you getting errors when you try to activate your Microsoft office activation subscription?
Then read on to get step by step guide to solve Microsoft office activation errors. Protect your windows, Mac, and Android devices. Get and easily run Anti Viruses and Learn how to download, install, and activate your Office setup on your computer and other devices by the easiest steps. Just visit our website and Troubleshoot the most commonly occuring errors for Microsoft office365 by the easiest steps. Install, and activate your Office setup on your computer and other devices.
office.com/setup
office com setup
office .com /setup
www.office.com/setup
setup.office.com
How do I fix Charter Email not working?
There can be various reasons responsible for Charter Email not Working. First of all, to fix the issue, check your internet connection if it’s good or not as poor internet could be one of the reasons for the problem. Next, ensure that you are accessing your Charter email account on a supported and updated browser or email program. Also, check if the device you are trying to access your Charter email account is running with the latest updates to get the issue fixed.
Aslo Read:-
Facebook Search not Working
You need to physically connect your router first. Remove any cables connecting to the PC. Then plug in the modem power adapter and check the power light to make sure the modem is on. Use Netgear Nighthawk X6S AC4000 manual and connect the router. Plug one end of the ethernet cable to the modem and the other end into the internet port on the router. Plug in the router and check the power light.
Thank you for this brief explanation and very nice information. This post gives truly quality information. Hope to see you again. I find that this post is really amazing.
I am an I.T Consultant living in the U.S. I am very much involved in software issues in computers and Mac and providing a suitable solution to customers.
office.com/setup
office.com/setup
office.com/setup
office.com/setup
office.com/setup
A stop error or a blue screen error code can occur if any issue causes your device to shut down. It usually happens during upgrade process. Windows 10 blue screen error codes can be resolved through some simple steps.
Buy and download your H&R Block program by clicking the banner ad here and selecting the appropriate version for your tax filing status.HR Block offers free e-File with all its tax software versions, making it good to complete all the filing processes in one go.
H&R Block Tax Refund Software
Activate.hrblock.com/crj
H&R Block Tax Refund Software
Activate.hrblock.com/crj
Free in-person audit support is offered with all H&R Block tax plans, and enhanced "Worry-Free Audit Support," including IRS communication and in-person audit representation, can be added to any plan for $20. H&R Block's
Activate.hrblock.com/crj
Register H R Block Activation Code
Your best knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
Activate.hrblock.com/crj
Register H R Block Activation Code
With Fubotv/connect services, you can stream live sports, news, and entertainment on your computer as well. You don’t have to spend either time or money on the installations of hardware or cables. You just only need a good internet connection, and that’s all. fubo.tv/connect enter code
All the channels provided in Fubotv/connect can be stream in 720p, 1080p, and some channels in 4K. In that case, browsing speed should be more than 25Mbps to play videos without a hitch. For playing 4K content from Fubotv activate screen of your computer should support 4K/HDR videos. fubo.tv/connect
Hey, I am John Smith. I am A Writer. I write about common Yahoo email problems and their solutions in the niche of email services
Yahoo Server Settings
PDF attachment from Yahoo
Why My Gmail Won’t Update?
There are times when users encounter with the issue of why my Gmail won’t update. For this, check out the steps as mentioned. To do that, open settings and proceed to mail and then accounts. Click to fetch new data and choose new fetching period from the fetch list. With this, users can resolve the issue by switching to better email clients such as Edison, Outlook, or Spark. These can push emails and show users notifications when they reach Gmail inbox.
Post a Comment