Video Screencast Help

Activesetup

Created: 21 Aug 2012 | 14 comments

Hi ALL, 

In active setup we always use the value of registry "Version" as 1,0 , why dont we use this as 1.0

that means in Active Setup "Version value is delimited with commas, not periods" WHY ???

 

Discussion Filed Under:

Comments 14 CommentsJump to latest comment

Mistral's picture

Because it was built like this.

EdT's picture

Why don't you just put 1 ?

It will work just as well as putting 1.0 or the correct version 1,0

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

piyushnasa's picture

1.0 also works. Active setup just checks the version and then works.

If users logs in second time when active setup is already run, then it matches the HKCU entry of Active setup with the HKLM one. If the version is the same then it does not do anything. If it is a higher version in HKLM, then it run again.

Piyush Nasa Altiris Certified Professional (ACP)

http://msiworld.blogspot.com/

EdT's picture

@piyushnasa

Just to clarify - 2 or 2.0 or 1,1 will run active setup again. 1.1 will not

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

piyushnasa's picture

Best way is to test it..

I have used 1.0 and updated to 1.1 and it had worked.. Have used 1,0 and changed to 1,1 and it had worked..

In theory it says that it  checks for the version and if it is updated it runs active setup.

Cheers,

Piyush

Piyush Nasa Altiris Certified Professional (ACP)

http://msiworld.blogspot.com/

Mistral's picture

I testet too (2003x86, 2008R2x64, 7x86, 7x64 - all had the same behavior)

1.0 -> 1.1 does NOT work (version not even stored in HKCU)

1,0 -> 1,1 does work (version stored in HKCU)

no clue how you tested and why it was working for you.

EdT's picture

>Best way is to test it..

That is EXACTLY what I did.

1.0 -> 1.1 does NOT work for me either - my results concur with Mistral's.

Finally, if you take a few moments to see how MICROSOFT set versions in their active setup keys, you will find that they use "," exclusively. There has to be a reason for that......

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

piyushnasa's picture

Well... If you have tested it then you would be right then.. smiley

I don't know why I remember periods worked... indecision

Piyush Nasa Altiris Certified Professional (ACP)

http://msiworld.blogspot.com/

VBScab's picture

I've never actually looked into this at all but an examination of the relevant value shows that it is of the 'REG_SZ' type. In other words, it's a string. So, to my mind, you could start off with '1' and, for the next release, I suspect you could use 'antidisestablishmentarianism'. Since the strings don't match, the new StubPath command would execute.

I am more than happy to be proved wrong, if somebody has the time to experiment... :-)

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

Mistral's picture

We already did prove you wrong ;)

wancsho's picture

As confirmed in above posts, its build like this and the active setup understands the values separated by comma's and if you want to clarify more then the TEST results is the only option you are left with.

It seems as if the Active Setup is not capable of reading values after period(.) and can easily read values after commas(,). The test results from my end talks the following:

Test result(1): 1.0 will work and to run again add +1.0 which means 2.0..3.0..4.0..n soon will work.

Test result(2): 1,0 will work and to run again 1,1...1,2..1,3...1,4n soon will work

So which means a number separated by comma will always work and as much long it may be e.g 8,0,2,3 works and to run again 8,0,2,4 will work.

Follow the article for more info, as it also shares the test results:

http://social.msdn.microsoft.com/Forums/en-US/winf...

-wancsho

piyushnasa's picture

Thanks for sharing your test results Wancsho.. It will help all.

Piyush Nasa Altiris Certified Professional (ACP)

http://msiworld.blogspot.com/

piyushnasa's picture

1.0 works, but does 1.1 work on top of that.. ?

Piyush Nasa Altiris Certified Professional (ACP)

http://msiworld.blogspot.com/