/build/static/layout/Breadcrumb_cap_w.png

Exit code for file in binary table

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

Answers (10)

Posted by: happyphunn 14 years ago
Senior Yellow Belt
0
What type of file are you calling....vbscript, jscript, exe, dll?
Posted by: anonymous_9363 14 years ago
Red Belt
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.
Posted by: unreal2me 14 years ago
Orange Senior Belt
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.
Posted by: pjgeutjens 14 years ago
Red Belt
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
Posted by: unreal2me 14 years ago
Orange Senior Belt
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
Posted by: anonymous_9363 14 years ago
Red Belt
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.
Posted by: unreal2me 14 years ago
Orange Senior Belt
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.
Posted by: pjgeutjens 14 years ago
Red Belt
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"
Posted by: unreal2me 14 years ago
Orange Senior Belt
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
Posted by: pjgeutjens 14 years ago
Red Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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