HowTo run a script after MSI installation was completed? MSI created with VS2010 + Setup Wizard

穿精又带淫゛_ 提交于 2019-12-13 05:24:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!