问题
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.
来源:https://stackoverflow.com/questions/5950081/howto-run-a-script-after-msi-installation-was-completed-msi-created-with-vs2010