Mythwyn
01-01-2004, 05:27 PM
First off I am quickly coming to terms with v5 but still have some ways to go before accessing the full power of new features. I appoligize if earlier posts painted me as a malcontent, just a bit of frustraition. (would still like a "switch" to turn off default settings).
I'm trying to leverage some of the new features of v5 for a reworking of a v4 tool I made to install XP critical updates. I'm looking for a bit of guidance concerning the best route.
What I want to do is a [Registry.DoesKeyExist] to see if particular Hotfixes have been installed.
example:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Upda tes\Windows XP\SP2\KB817778
I then want to use the result variable as a switch for a [File.Run] to install the update is the variable is false.
My question is one of accessing the variable and getting it to the [File.Run] my feeling is a "if" command. But since I want to check on the existance of several hotfixes and generate switch to install any false result variables, should I be dealing with tables?
Mainly once I can understand how to convert a result variable to a [File.Run] I can see there may by several ways to accomplish the action. Would appreciate help on the convertion and thoughts on the best means to do this for several results.
On a side note, once I get this, I'll also be looking to create a display of the [DoesKeyExist] that would say "4 of 10 Hotfixes Needed" in a text label. Thats what has me thinking a table may be needed, am I right.
Thanks Much,
I'm trying to leverage some of the new features of v5 for a reworking of a v4 tool I made to install XP critical updates. I'm looking for a bit of guidance concerning the best route.
What I want to do is a [Registry.DoesKeyExist] to see if particular Hotfixes have been installed.
example:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Upda tes\Windows XP\SP2\KB817778
I then want to use the result variable as a switch for a [File.Run] to install the update is the variable is false.
My question is one of accessing the variable and getting it to the [File.Run] my feeling is a "if" command. But since I want to check on the existance of several hotfixes and generate switch to install any false result variables, should I be dealing with tables?
Mainly once I can understand how to convert a result variable to a [File.Run] I can see there may by several ways to accomplish the action. Would appreciate help on the convertion and thoughts on the best means to do this for several results.
On a side note, once I get this, I'll also be looking to create a display of the [DoesKeyExist] that would say "4 of 10 Hotfixes Needed" in a text label. Thats what has me thinking a table may be needed, am I right.
Thanks Much,