English 中文(简体)
方案执行的结果如何?
原标题:wix result from program execution?

借助Wix,我要起诉(正在安装)并抓住收益价值。 我没有问题通过:

<CustomAction Id="UpgradeDBFromExe" FileKey="UpgradeDB.exe" ExeCommand="/update" Execute="deferred" Impersonate="no" Return="ignore"/>

但i m不能确定如何抓住回报价值。 如果我改变回来检查安装机的故障(不是我想要做的事),那么我想在晚些时候检查这一结果(通过财产推定),并发出警告。 我的想法是使用一种习俗行动文字,把结果称作一种财产,但似乎令人迷惑。 是否有更好的办法这样做?

最佳回答

我将假设,这一习俗行动改变了该制度,因此,需要花钱,并且定会发生推迟/无冒犯。 由于这一原因,以及它采取了一种脱离过程的EXE习俗行动,因此MSI没有为确定财产提供一种途径。 如果你使用WiX Quiet Execute Customs Action的规律,你就可以抓住 st子,将其记录下来,但这样做。 如果你使用DL习俗行动类型,你可以检查不动产和选择性地播种MSI的电文Box,请用户继续使用,并基于你可以恢复成功或失败,但你是 st的。

Another approach would be to have another custom action run in the UI Sequence after the execute action that validates what the EXE did and set a property for success/failure and then drive some UI off of that. My only concern there is it s too late to roll the install back and users tend to not read what you put in front of them anyways.

问题回答

暂无回答




相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...

热门标签