English 中文(简体)
如何在移除程序期间确定额外财产
原标题:How to set additional properties during RemoveExistingProducts

我正在使用recommable的升级方式(Use Up levelsUp levelsVersion,以检测产品的旧版本和使用。 RemoveExistingProducts after InstallInitialize

事实是,在不停现有产品的过程中,我需要通过额外财产安装装置,以维护现有数据库。 是否有办法这样做?

最佳回答

通过<>消除出口产品获得的所有产品都是另外一项财产:UPGRADINGPRODUCTCODE。 该财产将与安装厂的ProductCode相匹配,后者正在拆除这一其他产品。 如果您在安装装置上有一个条件,可以这样做。 如果不是的话,你将需要做更新OnlyDetect和封锁,直至其离开,以人工方式援引其去除或进行类似的工作。

问题回答

如果你脱离指挥线,你可以使用

msiexec /x c:Example.msi PROPERTY=VALUE

to initialise your properties.

Alternatively, you can store the properties in the registry and use something like :

<Property Id="PROPNAME">
  <RegistrySearch Id="PropNameRegistry" Type="raw" Root="HKLM" Key="SoftwareMyProductMyKeyPropValue" Name="MyPropName" />
</Property>

取回。





相关问题
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 ...

热门标签