Hi...
created my package in wise WPS. During the installation of the package a batch file runs (using CA - execute program from destination, Normal execute immediate/Deferred, Location just "before" InstallFinalize) and outputs the result into a file. how can I create message box(popup) with that output so if the batch file result in error installation does not continue and fails and informs the user.

any suggestions would be highly appreciated.

Thank You! [:)]
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
thought to use APPsearch as a condition, any thoughts?

Thanks
Answered 12/22/2010 by: Netrock
Orange Senior Belt

Please log in to comment
0
Forget batch and use script. You can embed script into the package, there's much better error handling, plus access to the package's properties, etc., etc., etc. Please avoid the "I don't know script" argument: you won't last long as a packager (or even as a general support Johnnie) without scripting skills.

Having said that, what is the batch file doing? Can its activity not be incorporated into the package itself?
Answered 12/23/2010 by: VBScab
Red Belt

Please log in to comment
0
My preferred way of working is to have the script return an exit code 3 upon failure. Then have the CA check the script's exit code before continuing. If it fails the exit code 3 will trigger a rollback of the installer.

As far as the popup goes, it might be a better idea to just log the failure in the MSI's installation log, rather than show an actual popup. You should be able to find plenty of examples on how to write to the installation log from a CA.

Rgds,

PJ
Answered 12/23/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
Happy New Year ALL...

Thanks for your good comments, I will follow your advise and make good use of your experience.
embed script and exit code are good point to start the package.
First, I need to read to get the info. of " HOW TO...", then i will be ready to take action....

Thank you again
Answered 01/03/2011 by: Netrock
Orange Senior Belt

Please log in to comment
0
Hi,

Still working on this issue and need a light to find the way. [8|]
i made my package it is working fine. but i need to add a condition before the installation continues. to do this, i have a batch file it checks the DNS entry of the workstation.
If the Forward or Reverse lookup fails the user should be notified and the installation must be terminated. So how can i do this in wise package. the user should be advised if the reverse or forward lookup failed.
I really need to find the right direction to do this.
your help highly appreciated.

Thanks.
Answered 01/04/2011 by: Netrock
Orange Senior Belt

Please log in to comment
0
Issue a vbscript custom action to perform the check and set a property if not compliant.
Then use the property as a launch condition.
Answered 01/05/2011 by: AngelD
Red Belt

Please log in to comment
0
Thanks AngelID for your reply.[;)]
have more questions if you can answer i appreciate.

Let's say i create a VBscript to call the batch file as follows:

Function AngelID()
dim shell
set shell=createobject("wscript.shell")
shell.run "batchfile.cmd.bat"
set shell=nothing

End Function


Next in wise I select the Action: Call "VBscript from Installtion" Next i have the details, location and the properities tabs
could you please advise:
1) in Details tab what i should put for "Script Function Call"
2) where to set the selection and whato enter for the "Condition:" Box
3)in properities tab i will select for PROCESSING option: Synchronous. Is this ok?

Thank you in adavnce for your help.[:D]
Answered 01/05/2011 by: Netrock
Orange Senior Belt

Please log in to comment
0
what is the batch file doing? Can its activity not be incorporated into the package itself?
Answered 01/05/2011 by: VBScab
Red Belt

Please log in to comment
0
Hi,

The batch file checks the DNS entry validation of the workstation. it has to be inside the package.
User should get a error message if the validation fails. So far, i am not able to find a working way.
Any help will be highly appreciated.
Answered 01/05/2011 by: Netrock
Orange Senior Belt

Please log in to comment
0
I don't know what you mean by "DNS validation" but, if it can be done in batch, there must be a way to do it in script. That script can then set a property using the Session.Property method which the MSI can then process.
Answered 01/06/2011 by: VBScab
Red Belt

Please log in to comment
0
Thank you for your comments. But so far not able to get it work...
the Batch file checks the DNS entry for the PC with the AD server to see if it can resolve the computer name. So if the resolve fails it generate a error message. So, i need to know how i can coporate the batch file into the package.

i am trying different ways but so far nothing. i appreciate if someone can show me what can be done -a clear working way.
Thanks.
Answered 01/06/2011 by: Netrock
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity