-->

HowTo run a script after MSI installation was comp

2019-08-26 21:06发布

问题:

Targets: I have MyAPP.exe (build in VS2010) & MyDriver.sys (build with VS2010 + WinDDK)

What I'm trying to do: is to create a Setup Wizard project, which can run post-install action, for example, I need to install the driver after installation succesfully completed like this:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\MyDriver.inf

Another words, I need to run CMD script file (pre or port install, the order not is the real problem), with my MSI package simultaneously.

Is there any solution for me?

Thank you!


PS. Yes, I had already read some topics, like link 1, link 2 and others, but they seems to me too "heavy". Maybe some more easy solution exists?

回答1:

Then you should consider to write your own installer class.

Maybe this tutorial helps you.