Login | |
|
 |
RE: VB script that will verify the install of MSI package - 4/24/2006 6:23:39 PM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
Do you want to check software that is already installed or is this part of another installation process? What I mean is, do you install the MSI file somehow already and you just want to add a "did it work?" feature to that method or do you want a single script that can check any installation on any machine no matter when that installation was performed?
_____________________________
Author of ManagePC - http://managepc.net AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
|
|
| |
|
|
|
 |
RE: VB script that will verify the install of MSI package - 4/25/2006 12:36:49 AM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
Use the logging feature of MSIEXEC to create a logfile and then read the logfile in and check the last but one line "MainEngine thread is returning 0" indicates success. However, a simpler way is to run the MSI via the Shell.Run method and then check the return code. For example ReturnCode = objShell.Run (<path to your MSI>,1,True) Wscript.echo ReturnCode
_____________________________
Author of ManagePC - http://managepc.net AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
|
|
| |
|
|
|
 |
RE: VB script that will verify the install of MSI package - 4/25/2006 2:17:20 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
The solution presented will run the MSI and tell you the return code from it's execution. You did not say that the script had to deploy the MSI as well. As a matter of fact you state "It would be part of the process of pushing the msi to a desktop" implying that deployment is already taken care of. Is that not the case?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: VB script that will verify the install of MSI package - 4/25/2006 2:50:01 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
Give it a try. Just change the computer name to the name of someones computer that you don't have rights on and see if it tells you what they have installed.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: VB script that will verify the install of MSI package - 4/25/2006 3:02:05 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
It will check them all. Try it first against someone else's machine to see if it will work for you at all. To check a specific install, use a WHERE clause in the query.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|