Script to verify entries of the property table of an MSI

Author Message
sam_nass

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 3/25/2011
  • Status: offline
Script to verify entries of the property table of an MSI Friday, March 25, 2011 12:36 AM (permalink)
0
Hi,
I would like to put a script together so it can go through the "property table" of a Windows Installer application (MSI) then validates all the entries of the "property table" and saves the results in a text file without making any changes...
I have something to start with ( see below) but the changes I would like to make to the script below is to add an option so it can save the results in a txt file and also not make any changes which is the case with the script below: 
 
 
Sub Property
strTable="Property"
strCol1="Property"
strValue1="INFO_Check"
Set TableRows= WTables(strTable).WRows
KeyFound=False
For Each Row In TableRows
RawString=Row.data(StrCol1)
If LCase(RawString)=LCase(StrValue1) Then
KeyFound=True
Exit For
End If
Next
If Not KeyFound Then
Prop34 = SetProperty("MsiHiddenProperties","WISE_SQL_CONN_STR")
Prop33 = SetProperty("Accept","Yes")
Prop32 = SetProperty("USERNAME","Blank")
Prop31 = SetProperty("COMPANYNAME","Blank")
Prop30 = SetProperty("ARPNOMODIFY","1")
Prop29 = SetProperty("ROOTDRIVE","C:\")
Prop28 = SetProperty("ALLUSERS","1")
Prop27 = SetProperty("REBOOT","ReallySuppress")
Prop2 = SetProperty("_WiseStatusMifSMSVer","2.0")
End If
End Sub
 
 
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9