Hi,

Using Wise Installer editor,

A custom action that calls an installation file (inside binary table), set at Synchronous and NOT ignoring exit code. Can I set anything that let me decide myself if I want the MSI to exit with an error or not? Like managing the return code and tell MSI to exit on that code and not to exit if another code?

Thks
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
What type of file are you calling....vbscript, jscript, exe, dll?
Answered 02/16/2010 by: happyphunn
Senior Yellow Belt

Please log in to comment
0
Irrespective of which file type you're running, the simplest route is to set a property and test that property's content as a condition for an 'Abort Installation' CA immediately following the CA's execution.
Answered 02/16/2010 by: VBScab
Red Belt

Please log in to comment
0
Hi VBSCab,

This sound exactly what I need. I am calling an exe file from installation, not a vbs. What would the be the simpliest way to set a property on the exit code of that exe file?

Thanks very much, looking forward to your help.
Answered 02/17/2010 by: unreal2me
Orange Senior Belt

Please log in to comment
0
I suppose what you could try is to write your own (vbs) function that starts the installer and catches the return code. Have this function return the desired exit code.
If you then make a CA that runs your vbs you can control the exit codes completely. If I remember correctly they're as follows:

0 - did nothing - succes
1 - did something - succes
3 - failed - rollback

PJ
Answered 02/17/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
Hi and thanks. I guess I would also need something to extract the file from the binary if I use a VBScript. Using the execute program from installation is doing it by itslef. Anybody has a working code for this? I am bad at VBS.

Thks
Answered 02/17/2010 by: unreal2me
Orange Senior Belt

Please log in to comment
0
...and most people here are pretty bad at working for free. Eons ago, I downloaded (and edited for my own purposes) a script that extracted a file from the Binary table. A little Googling would probably turn up the exact same code.
Answered 02/17/2010 by: VBScab
Red Belt

Please log in to comment
0
I expected that kind of reply. Me will try to learn VBS today so my app is ready by end of day.

Thanks for sharing.
Answered 02/18/2010 by: unreal2me
Orange Senior Belt

Please log in to comment
0
What I usually do when I need something from the binary table of an MSI is to open it in Orca (which i don't care what you usually use, EVERY packager should have installed for the quick jobs), go to the binary table, click where it says [binary data] and choose "write binary to filename"
Answered 02/18/2010 by: pjgeutjens
Red Belt

Please log in to comment
0
I agree with you on ORCA. I use it often.

With this binary setting, will this setting make the binary file available when it is called in a VBS custom action?

Thks
Answered 02/18/2010 by: unreal2me
Orange Senior Belt

Please log in to comment
0
it's your VBS, and your binary file. I'd imagine once you've extracted it you can replace the original action with whatever VBS code you wish, putting the file anywhere and triggering it
Answered 02/18/2010 by: pjgeutjens
Red Belt

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