Click here to Skip to main content
15,446,232 members
Home / Discussions / Windows Development
   

Windows Development

 
QuestionSet password for win7 and printer in LAN but printer sharing password no one knows ? Pin
Member 245846729-Aug-19 15:34
MemberMember 245846729-Aug-19 15:34 
AnswerRe: Set password for win7 and printer in LAN but printer sharing password no one knows ? Pin
Dave Kreskowiak30-Aug-19 2:45
mveDave Kreskowiak30-Aug-19 2:45 
AnswerRe: Set password for win7 and printer in LAN but printer sharing password no one knows ? Pin
Richard Deeming30-Aug-19 3:13
mveRichard Deeming30-Aug-19 3:13 
GeneralRe: Set password for win7 and printer in LAN but printer sharing password no one knows ? Pin
Member 24584678-Sep-19 16:28
MemberMember 24584678-Sep-19 16:28 
QuestionDiscovering footprints of loaded and then unloaded kernel mode drivers Pin
Rakanoth7-Aug-19 10:48
MemberRakanoth7-Aug-19 10:48 
QuestionMSI file traversal searching for a given property Pin
kalberts25-Jul-19 4:44
Memberkalberts25-Jul-19 4:44 
AnswerRe: MSI file traversal searching for a given property Pin
Dave Kreskowiak25-Jul-19 7:00
mveDave Kreskowiak25-Jul-19 7:00 
GeneralRe: MSI file traversal searching for a given property Pin
kalberts25-Jul-19 22:03
Memberkalberts25-Jul-19 22:03 
Traversing the directory tree is trivial - I once made a general mechanism for that, and use it all the time (for listing files not accessed for x days, for listing dependencies of Python pakcages, for counting lines of code, for creating warnings about paths that are getting close to the old 260 char limit,...). To this directory travesal function, I supply one or more search roots, filters (such as Extension = "msi"), and a callback function that receives each file that passes the filter. An optional callback handles directory hits, or directories with file hits.

So that part of it is in place. My problem is how do I make that callback function with "a small VBScript to return the ProductCode"? Which mechanism did you use to obtain that value? Is that script available?

The only way I am aware of to read out the ProductCode (or any other .msi value) is to use the GUI application "Orca". At least as a GUI application, it is poorly suited for callback function. It seems to be callable from a script, but the help information gives no help on how to extract a given attribute from a given table. How did your VB script read out the values from the .msi file?

I am programming in C#, but I guess that I could adopt the same mechanism. If I cannot rewrite it to C#, I can run it as a separate process and analyze the console output (I do that all the time, for my other tree traversal functions).
GeneralRe: MSI file traversal searching for a given property Pin
Dave Kreskowiak26-Jul-19 5:20
mveDave Kreskowiak26-Jul-19 5:20 
GeneralRe: MSI file traversal searching for a given property Pin
kalberts25-Jul-19 22:35
Memberkalberts25-Jul-19 22:35 
QuestionWiFi Driver Automatically Uninstalls, Stops Working at Random Intervals Pin
Albert T James3-Jul-19 19:49
MemberAlbert T James3-Jul-19 19:49 
AnswerRe: WiFi Driver Automatically Uninstalls, Stops Working at Random Intervals Pin
OriginalGriff3-Jul-19 19:54
mveOriginalGriff3-Jul-19 19:54 
QuestionPulling System Info and Automation Pin
Taziamoma24-May-19 7:34
MemberTaziamoma24-May-19 7:34 
AnswerRe: Pulling System Info and Automation Pin
Gerry Schmitz24-May-19 9:53
mveGerry Schmitz24-May-19 9:53 
GeneralRe: Pulling System Info and Automation Pin
Taziamoma24-May-19 11:19
MemberTaziamoma24-May-19 11:19 
AnswerRe: Pulling System Info and Automation Pin
Richard MacCutchan24-May-19 21:43
mveRichard MacCutchan24-May-19 21:43 
QuestionFind which process/executable is communicating with driver using IOCTL Pin
Rakanoth15-May-19 17:19
MemberRakanoth15-May-19 17:19 
AnswerRe: Find which process/executable is communicating with driver using IOCTL Pin
Richard MacCutchan15-May-19 21:36
mveRichard MacCutchan15-May-19 21:36 
QuestionThurrott: It’s “Game Over”, “UWP will disappear” Pin
Bruce Greene3-May-19 8:45
MemberBruce Greene3-May-19 8:45 
AnswerRe: Thurrott: It’s “Game Over”, “UWP will disappear” Pin
Gerry Schmitz3-May-19 8:56
mveGerry Schmitz3-May-19 8:56 
AnswerRe: Thurrott: It’s “Game Over”, “UWP will disappear” Pin
Pete O'Hanlon15-May-19 21:17
mvaPete O'Hanlon15-May-19 21:17 
Questionwhich window should i installing on my laptop Dell N5110 Pin
MA.Norouzifar13-Jul-18 1:03
MemberMA.Norouzifar13-Jul-18 1:03 
AnswerRe: which window should i installing on my laptop Dell N5110 Pin
Gerry Schmitz18-Jul-18 10:01
mveGerry Schmitz18-Jul-18 10:01 
AnswerRe: which window should i installing on my laptop Dell N5110 Pin
Dave Kreskowiak19-Jul-18 10:45
mveDave Kreskowiak19-Jul-18 10:45 
GeneralRe: which window should i installing on my laptop Dell N5110 Pin
Gerry Schmitz20-Jul-18 9:01
mveGerry Schmitz20-Jul-18 9:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.