Good day. The situation is the following, I need to create an installer that, in addition to the installation itself, launches another installer. And it still starts it, but in the process the error "Another installation already running" climbs out. Tell me how to solve the problem?
- oneAnd where does C # to your question? - VladD
|
1 answer
Several solutions:
- If it is required msi, then it is possible to start a child installation before the main phase of the parent using Custom Actions. Minus rollback will not remove another installation.
- If you can use exe, then you no longer need the Windows Installer, you just need to register the components here , copy the data from the resources into the necessary folders yourself, draw the UI yourself. By the time it will be much faster than to deal with msi (as does JetBrains, Microsoft, Oracle and many others).
- Dirty hack: two msi inside exe, which is inside msi. The scheme is simple: msi starts Custom Action at the very beginning, which kills the parent process, installs the first product, and then installs the second. This is only necessary in cases where the Windows Installer is required (for example, if the customer wants it).
|