/build/static/layout/Breadcrumb_cap_w.png

Active Setup / Stub path...

and yet another question...

I'd like to have an active setup script run when each user logs into the machine. The problem is that in order to do this, a product must be installed.
Example:

Software\Microsoft\Active Setup\Installed components\{37A3379...etc...}

If the product 37A3379 is not installed, having a stubpath will not run. Is there a way to get this to run regardless if a product is installed or not.

RunOnce is not an option as this will of course only run once. :)

HELP!

0 Comments   [ + ] Show comments

Answers (19)

Posted by: anonymous_9363 14 years ago
Red Belt
0
Er...why not set up something in the log-in script? Nice and easy to set up with Group Policy...
Posted by: Secondlaw 14 years ago
Third Degree Blue Belt
0
Wish I knew. That's why I'm trying to do it this way.. .Login script would be ideal. I'm guess from your reply that there are no options.
Posted by: mekaywe 14 years ago
Brown Belt
0
Why not have a key like "Software\Microsoft\Active Setup\Installed components\XYZ" and include your script under it so that it will run when each User logs in.
Posted by: Secondlaw 14 years ago
Third Degree Blue Belt
0
Uhhhh... Did you read my post? maybe I'm misunderstanding you but isn't that exactly what I stated I did?
Posted by: mekaywe 14 years ago
Brown Belt
0
Yeah..,you want to run a stubpath without installing any product. right ?
Posted by: Secondlaw 14 years ago
Third Degree Blue Belt
0
So you're saying use "XYZ" as a product rather than including the brackets?
Posted by: mekaywe 14 years ago
Brown Belt
0
its just a registy hive and not a product
Posted by: Secondlaw 14 years ago
Third Degree Blue Belt
0
{37A3379...etc...} is my productId.

I understand the registry very well. How various items use the registry is a different story! I'm not really quite sure if you answered my question with your last comment. Was that a Yes or a No to my question.
Posted by: mekaywe 14 years ago
Brown Belt
0
XYZ is not required to be a product code

I think we are moving in two different directions..... May be I dint get your question.
Posted by: Secondlaw 14 years ago
Third Degree Blue Belt
0
"XYZ is not required to be a product code"

Ok... I think I follow you here... what your'e saying is that anything placed within this hive should technically run active setup... I don't need to have a product code here... See, I thought that a product code was required here but I think you're saying that it can be anything because it's not really associated with anything. Now that I think about it, Active Setup is not part of Windows Installer so I think what you're saying makes sense.

So my problem is that the items placed in this hive are not executing for some reason. I thought they were not executing because my product is not installed. That doesn't matter though... Active setup doesn't care what you put in there... Must be a problem with the machine I'm trying this on. Hmmmmm... We making sense now? :)
Posted by: mekaywe 14 years ago
Brown Belt
0
Yes., Active Setup is not part of Windows Installer..and its part of OS.
Now you got me n what Im trying to say from loooong time.
Posted by: sshiva018 14 years ago
Yellow Belt
0
what is registry
Posted by: sshiva018 14 years ago
Yellow Belt
0
msiexec/i "path of mai" ADDLOCAL=1 ADDLOCAL............. WILL IT WORK
Posted by: kardock 14 years ago
Second Degree Green Belt
0
copy your script locally. let's say "c:\program files\da_folder\da_script"

create your reg keys

"Software\Microsoft\Active Setup\Installed components\XYZ"
stubpath="c:\program files\da_folder\da_script"

it should work!
Posted by: anonymous_9363 14 years ago
Red Belt
0
Just some background info, for clarification...

The reason that most people use a product's ProductCode is that, being a GUID, it is (hopefully) unique. You're quite welcome to use whatever name that you like for the key but there is a chance that another, identically-named key will overwrite it at some point.
Posted by: nheim 14 years ago
10th Degree Black Belt
0
Hi folks,
interesting discussion.
We use the MSI's productcode for active setup so far.
Had an exchange with one of our packaging guys today about this.
And there was another thought: Maybe it's better to use the UpgradeCode for this.
With this, one could substantially reduce the leftovers in the user profiles.
Typically, the productcode changes with each major release, but the upgrade code stays the same for a long time.
Thoughts?
Regards, Nick
Posted by: kardock 14 years ago
Second Degree Green Belt
0
the question was about running a script in active setup, not using it with a msi.
Posted by: anonymous_9363 14 years ago
Red Belt
0
...and, quite sensibly, Nick has opened it out into a more generalised discussion. That is allowed, you know! :)

My point - for which I thought most packagers wouldn't need an explanation - was that GUIDs (of which MSI Product Codes are a good example) are a handy way to provide unique keys to use for the purpose.
Posted by: pjgeutjens 14 years ago
Red Belt
0
Typically, the productcode changes with each major release, but the upgrade code stays the same for a long time.

I'd say it all depends on what you want to do in the Active Setup action. When doing an upgrade of a product, do you want the action to run again or not?
I do suppose that you could use the UpgradeCode and control the triggering by playing with the Version value, but I have the habit of putting the ProductVersion in there, so if I don't want the action to run, I'd have to change that habit...

SO, good point Nick [:D] I'll have to break this down in my head abit more

PJ
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ