This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do I run an exe that is included with my installed program?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 19, 2012
03:05 PM
How do I run an exe that is included with my installed program?
I have a main program, called Main.exe, that I am installing and along with it I have another "Abc.exe" file that I want to run once after all the files are loaded into the [INSTALLDIR] folder. The Abc.exe has one command line option also.
My install is a Basic MSI install. I have tried using the Custom Action Wizard selecting exe file as the type. After that I was not really sure of how to set all the options. I have tried Imediated execution, defered execution and committed execution. It seems every time I run my install on a target machine, my Abc.exe file and all my other files copy to the [INSTALLDIR], my Main.exe is installed and runs fine, but the Abc.exe has not done what it needed to do. Then if I manually run my Abc.exe on the Target PC at the Command line with the one parameter it works fine.
I am very new at custom actions and Install Shield in general. So any insight would be appreciated.
My install is a Basic MSI install. I have tried using the Custom Action Wizard selecting exe file as the type. After that I was not really sure of how to set all the options. I have tried Imediated execution, defered execution and committed execution. It seems every time I run my install on a target machine, my Abc.exe file and all my other files copy to the [INSTALLDIR], my Main.exe is installed and runs fine, but the Abc.exe has not done what it needed to do. Then if I manually run my Abc.exe on the Target PC at the Command line with the one parameter it works fine.
I am very new at custom actions and Install Shield in general. So any insight would be appreciated.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2012
02:06 AM
create an custom action which calls exe and if you are installing the abc .exe with your product then select that installed with product then leave ui level and at execution level select after install finalize and dont forget to set condition NOTINSTALLED other wise it will run during uninstall and and as it cant find the file to execute(because it is being marked as deleted) it fails and it is an serious problem..
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2012
11:25 AM
Thanks for your input. I will give it try. Much appreciation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2012
02:30 PM
The exe is suppose to put records into an Acess configuration database for another program. So that my program program will be a Menu option in this third party program. I also am registering a dll that calls my program when this Menu option is clicked.
If I manually run my Abc.exe at the command line afer my program is installed. The records will be inserted into the Acess cofiguration database for the third party program. But I still can not seem to get my install to run the Abc.exe to do it.
Also, I do not think the registering of the dll is quite working either. If I manually do it using regsvr32.exe it works fine, but in the install not so well.
If I manually run my Abc.exe at the command line afer my program is installed. The records will be inserted into the Acess cofiguration database for the third party program. But I still can not seem to get my install to run the Abc.exe to do it.
Also, I do not think the registering of the dll is quite working either. If I manually do it using regsvr32.exe it works fine, but in the install not so well.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 23, 2012
01:57 AM
Hi if you want to add an dll then registor it self then you have to check extract com information immediately and then how you have scheduled your custom action it should be like execute sequence after install finalise and is this exe is installed with product or is it only needed for run only once during install if exe is to be run only once then store them in support dir and call from there. and more over try to read the msi log file it provides you all the information regarding the files have got installed or not registries added or not and each single information that in which you are not sure it is working as of your intention.
