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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Er...why not set up something in the log-in script? Nice and easy to set up with Group Policy...
Answered 01/21/2010 by: VBScab
Red Belt

Please log in to comment
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.
Answered 01/21/2010 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
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.
Answered 01/21/2010 by: mekaywe
Brown Belt

Please log in to comment
0
Uhhhh... Did you read my post? maybe I'm misunderstanding you but isn't that exactly what I stated I did?
Answered 01/21/2010 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
0
Yeah..,you want to run a stubpath without installing any product. right ?
Answered 01/21/2010 by: mekaywe
Brown Belt

Please log in to comment
0
So you're saying use "XYZ" as a product rather than including the brackets?
Answered 01/21/2010 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
0
its just a registy hive and not a product
Answered 01/21/2010 by: mekaywe
Brown Belt

Please log in to comment
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.
Answered 01/21/2010 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
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.
Answered 01/21/2010 by: mekaywe
Brown Belt

Please log in to comment
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? :)
Answered 01/21/2010 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
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.
Answered 01/21/2010 by: mekaywe
Brown Belt

Please log in to comment
0
what is registry
Answered 06/27/2010 by: sshiva018
Yellow Belt

Please log in to comment
0
msiexec/i "path of mai" ADDLOCAL=1 ADDLOCAL............. WILL IT WORK
Answered 06/27/2010 by: sshiva018
Yellow Belt

Please log in to comment
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!
Answered 06/28/2010 by: kardock
Second Degree Green Belt

Please log in to comment
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.
Answered 06/28/2010 by: VBScab
Red Belt

Please log in to comment
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
Answered 07/01/2010 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
the question was about running a script in active setup, not using it with a msi.
Answered 07/01/2010 by: kardock
Second Degree Green Belt

Please log in to comment
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.
Answered 07/01/2010 by: VBScab
Red Belt

Please log in to comment
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
Answered 07/01/2010 by: pjgeutjens
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity