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 !!!
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)
Please log in to answer
Posted by:
mayur_mak
13 years ago
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
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
Posted by:
jmaclaurin
13 years ago
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
Posted by:
jmcfadyen
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.