Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VB script that will verify the install of MSI package

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,33818
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VB script that will verify the install of MSI package
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
 VB script that will verify the install of MSI package - 4/24/2006 5:38:12 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
Hello everyone :)
 
I am looking for a vb script which will verify the that msi package was installed successfully.  Please note script needs to work on the machines where user is not an administrator, therefore there is a limitation to accessing the registry values.  Does anyone know of any other way?
 
Thanks
 
Xavior

 
 
Post #: 1
 
 RE: VB script that will verify the install of MSI package - 4/24/2006 6:23:39 PM   
  ginolard


Posts: 1043
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

(in reply to xaviorinc)
 
 
Post #: 2
 
 RE: VB script that will verify the install of MSI package - 4/24/2006 11:49:17 PM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
I want that script to be part of the installation process.  It will run after the install of MSI package and return either success or failure depending if software was installed.  It would be part of the process of pushing the msi to a desktop, majority of times the one that does not have admin rights.

Thanks,

XaviorInc

(in reply to ginolard)
 
 
Post #: 3
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 12:36:49 AM   
  ginolard


Posts: 1043
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

(in reply to xaviorinc)
 
 
Post #: 4
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:12:44 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
I am trying to understand better the second solution:
 
ReturnCode = objShell.Run (<path to your MSI>,1,True)
Wscript.echo ReturnCode
 
 
How can the msi be pushed to the desktop PC with your script?  I am not sure if you understand my question.  How would it know that the install was successful?
 
Thanks

(in reply to ginolard)
 
 
Post #: 5
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:17:20 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
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

(in reply to xaviorinc)
 
 
Post #: 6
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:22:08 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
I am sorry, i got confused myself. 
What exactly i am looking for is to check if the package was successfully installed after the push.  Meaning different team will push the MSI application, and I want a script which will remotely check if MSI push was successful, if the package is fully installed.  
 
Please note, I won’t be the one installing it but checking to make sure it is successful.
 
Thanks

(in reply to ebgreen)
 
 
Post #: 7
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:25:13 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Check out this script. It will list the installed MSIs:


      

_____________________________

"... 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

(in reply to xaviorinc)
 
 
Post #: 8
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:29:06 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
you think that would work if i'll use it on a network machine to which user does not have admin rights?

(in reply to ebgreen)
 
 
Post #: 9
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:30:44 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
If you run it as yourself on your machine and you have admin rights on their computer it should work.

_____________________________

"... 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

(in reply to xaviorinc)
 
 
Post #: 10
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:40:31 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
I will have to run it from my PC where i have admin right but i won't have admin rights to the machine it will check for sucessful msi install.

I will run the script which will access another pc on the network (i don't have adming rights to that pc) and find out if MSI package was installed. 

Do you think that would work?

Thanks


(in reply to ebgreen)
 
 
Post #: 11
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:50:01 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
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

(in reply to xaviorinc)
 
 
Post #: 12
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 2:57:19 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
where do i specify in that .vbs script which package i am looking for?  Looks like that script will check them all right?

(in reply to ebgreen)
 
 
Post #: 13
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 3:02:05 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
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

(in reply to xaviorinc)
 
 
Post #: 14
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 3:05:53 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
Ok i'll try that.  Second question:
do you know the syntax for the WHERE clause?

Thanks

(in reply to ebgreen)
 
 
Post #: 15
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 3:18:10 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
string computer should be as follow:
strComputer = "\\hostname\"
or i am missing something?

Thanks

(in reply to xaviorinc)
 
 
Post #: 16
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 3:28:55 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Just:

strComputer = "hostname"

_____________________________

"... 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

(in reply to xaviorinc)
 
 
Post #: 17
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 3:53:13 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
I am getting Permission Denied: 'GetObject'
Code 800A0046.

Any suggestions?

(in reply to ebgreen)
 
 
Post #: 18
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 4:08:15 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
That sounds like straight permissions problems to me. How is it being deployed in nthe first place?

_____________________________

"... 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

(in reply to xaviorinc)
 
 
Post #: 19
 
 RE: VB script that will verify the install of MSI package - 4/25/2006 4:10:39 AM   
  xaviorinc

 

Posts: 25
Score: 0
Joined: 4/24/2006
Status: offline
They push the package throught Rumba channels.

(in reply to ebgreen)
 
 
Post #: 20
 
 
Page:   [1] 2   next >   >>
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VB script that will verify the install of MSI package Page: [1] 2   next >   >>
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts