MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: SCHTASKS.EXE[Next]: Security Related Tools
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Tips and Tricks->Tools->ScriptoMatic

ScriptoMatic

Not without its share of "features" but a very handy tool for testing WMI queries and getting the basic framework right. Apart from improvements mentioned below there is a major feature where it fails to list values and that is on values which may or may not contain an array. All such values should be generated via a function which takes care of the details (you would need to manually add this)...

Get more details and download it from "http://www.microsoft.com/technet/scriptcenter/tools/wmimatic.mspx".

Some similar tools:

Suggested Fix 1

Replace the "WMIDateStringToDate()" function with the following routine which handles malformed dates rather than causing a trap:

Function WMIDateStringToDate(dtmDate)
   on error resume next
   WMIDateStringToDate = dtmDate
   if dtmDate <> "" then
       dim FmtDate
       err.clear()
       FmtDate = CDate(Mid(dtmDate, 5, 2) & "/" _
                 & Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _
                 & " " & Mid (dtmDate, 9, 2) & ":" & Mid(dtmDate, 11, 2) _
                 & ":" & Mid(dtmDate,13, 2))
       if  err.number <> 0 then
           FmtDate = "<<Unexpected WMI date format>>"
       else
           FmtDate = "(" & FmtDate & " local time)"
       end if
       WMIDateStringToDate = WMIDateStringToDate & "    " & FmtDate
     end if
End Function


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: SCHTASKS.EXE[Next]: Security Related Tools


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday August 13 2017 at 2:39pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.