开发者

How to read return status of exe installed using MSI packaging?

I have created a msi using VS2010 Setup and Deployment template. In this I have referred a exe(Application) in Custom action->Install to be installed when MSI is executed . If the exe execution fails How do i read the failure status returned by MSI.

Note: the msi is pushed using Group policy so there will be NO user interaction开发者_如何学C.The MSI should fail and not appear in the control panel.


Custom action return values cannot be handled.

A DLL custom action can use different return codes to trigger a specific behavior in the installer: http://msdn.microsoft.com/en-us/library/aa369778(VS.85).aspx

An EXE custom action can only return 0 for success or any other value for failure.

So if your EXE returns a non-zero value when failing, the package will not be installed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜