/build/static/layout/Breadcrumb_cap_w.png

Custom Action to run a exe file

Hi all,

I'm a beginner in this world and I would like to know if someone could advise me.

I have to create a package for an application that for install it, it is necessary to execute a setup file, my idea is to cover the installation inside of a msi (I need to create some registryu keys and provide additional information) and start the installation out of this with the commands.

I Tried to create a CA to call the exe without success.
I'm not sure if I have to add the exe file to the project or not or...

Maybe it is an easy question but as I said before I'm just a beginner.
Thanks in advance for your help !!!

0 Comments   [ + ] Show comments

Answers (6)

Posted by: mayur_mak 13 years ago
Senior Purple Belt
0
Hi sergio,

u need to create a wrapper MSI as per your query, if the exe is having switches u can use the same as per yr requirement.Different types of Custom Actions are available to run an exe call within the MSI.


type 66-> (2)msidbCustomAction TypeExe(EXE file stored in a Binary table stream.) + (64) msidbCustomAction TypeContinue(Synchronous execution. Ignores exit code and continues)[CA return processing options]

other types are 18(EXE file installed with a product.),
50(EXE file with a path specified by a property value.), and
34(EXE file with a path referencing a directory.)]

As per yr query u need to use type 18 CA or type 66.

rergards,
Mayur
Posted by: anonymous_9363 13 years ago
Red Belt
0
Sergio, this is a VERY steep learning curve so, before you do ANYTHING, read and digest Phil Wilson's The Definitive Guide to Windows Installer. Unless you know the fundamentals of WI, you will struggle.
Posted by: jmaclaurin 13 years ago
Third Degree Blue Belt
0
Phil give you kickbacks vbscab?
[;)]
Posted by: jmaclaurin 13 years ago
Third Degree Blue Belt
0
Without knowing what tools you are using, its actually not that hard to create a custom action to run an exe. Its where you put it in sequence that might be causing your problem. I believe the default is always absent, but what you may want to set it to is probably somewhere just before "InstallFinalize".
Posted by: anonymous_9363 13 years ago
Red Belt
0
Phil give you kickbacks vbscab?PMSL...if only! They are only two books of any worth on WI - Phil's plus the one from RealTime Publishers. I recommend the former over the latter any day of the week.
Posted by: jmcfadyen 13 years ago
5th Degree Black Belt
0
also mayur_maks advice although quite detailed was incorrect. As it is a setup installed you will need to run it in deferred mode so you will need to add either 1024 or 2048 to the advice of mayur_mak.
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