/build/static/layout/Breadcrumb_cap_w.png

Windows Installer validation

All,
I am attempting to write an orca tool using VB .Net as an education in Windows Installer. I have got the first part of my project done which is to open an MSI and display in the various tables and I am able to browse through each table and see all its entries however I then wanted to be able to validate that MSI and output the results into a seperate Window, like Orca does.

I have been able to open the DEICE.CUB file and merge this into my opened MSI, which I believe is what you have to do to begin validation however from what i can tell I have to then run each custom action in the .CUB file agaisnt the merge MSI file. It is at this point that I am stuck and I am unable to find any information about what to do, as with anything I have spent hours searching through google but you need to know the write term to search for and im guessing im either dont have the correct words OR there isnt an article out there.

Any help appreciated :)

P

0 Comments   [ + ] Show comments

Answers (3)

Posted by: AngelD 15 years ago
Red Belt
0
I guess you could convert the VB6 code from the below link
http://msmvps.com/blogs/Michael/archive/2004/10/20/16219.aspx

However if you used C# instead you could just download the WiX source as they have already created C# "wrappers" for what you're after.
Posted by: Inabus 15 years ago
Second Degree Green Belt
0
Thanks for that, got me on a right track with what to search for. I am able to now merge 2 databases, validate it and show the ice messages internal to the scanned msi I now need to change the event handler to be able to take those internally generated ice messages and convert them to a readable display.

P
Posted by: AngelD 15 years ago
Red Belt
0
I don't know VB6 but I guess you would need to handle the MSICallBack delegation (callback) to listen when it raises one of the events: OnError, OnWarning or OnInfo. The events arguments should have the ICE# (iICE) and ICE message (sDesc).
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ