So I am sequencially calling an array of MSI ID's to uninstall all versions of a program. As you can see from the array below, adding a new MSI ID to the array is starting to get long and tedious...
How might I re-write the array below using a regex or two so that I can specify the range of numbers between the start and end points? In other words, a regex that covers all the MSI numbers below...no more, no less.
If there is a forum page you can point me too that does something similar, I'd be more than happy to take a stab at it myself.
Thanks for any suggestions,
-Mike
How might I re-write the array below using a regex or two so that I can specify the range of numbers between the start and end points? In other words, a regex that covers all the MSI numbers below...no more, no less.
If there is a forum page you can point me too that does something similar, I'd be more than happy to take a stab at it myself.
[ autoit ]
$MSIArray = StringSplit("{26A24AE4-039D-4CA4-87B4-2F86416019FB},{26A24AE4-039D-4CA4-87B4-2F86416020FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86416021FB},{26A24AE4-039D-4CA4-87B4-2F86416022FB},{26A24AE4-039D-4CA4-87B4-2F86416023FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86416024FB},{26A24AE4-039D-4CA4-87B4-2F86416025FB},{26A24AE4-039D-4CA4-87B4-2F86416026FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86416027FB},{26A24AE4-039D-4CA4-87B4-2F86416028FB},{26A24AE4-039D-4CA4-87B4-2F86416029FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86416030FB},{26A24AE4-039D-4CA4-87B4-2F86416031FB},{26A24AE4-039D-4CA4-87B4-2F86416032FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86416033FB},{26A24AE4-039D-4CA4-87B4-2F86416034FB},{26A24AE4-039D-4CA4-87B4-2F86416035FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86416036FB},{26A24AE4-039D-4CA4-87B4-2F86416037FB},{26A24AE4-039D-4CA4-87B4-2F86416038FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86416039FB},{26A24AE4-039D-4CA4-87B4-2F86416040FB},{26A24AE4-039D-4CA4-87B4-2F86416041FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86417000FB},{26A24AE4-039D-4CA4-87B4-2F86417001FB},{26A24AE4-039D-4CA4-87B4-2F86417002FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86417003FB},{26A24AE4-039D-4CA4-87B4-2F86417004FB},{26A24AE4-039D-4CA4-87B4-2F86417005FB}," & _ "{26A24AE4-039D-4CA4-87B4-2F86417006FB},{26A24AE4-039D-4CA4-87B4-2F86417007FB},{26A24AE4-039D-4CA4-87B4-2F86417008FB}", ",")
Thanks for any suggestions,
-Mike