部署项目 - 条件自定义操作 [英] Deployment project - conditional custom action

查看:59
本文介绍了部署项目 - 条件自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我正在设置的部署项目。我需要根据这是第一次安装还是

更新来执行不同的自定义操作。有没有人知道是否可以设置自定义操作的Condition

属性来确定当前运行的安装是否是

升级以前的安装以及是否又怎样?我也对其他

实现此功能的方法持开放态度。

I have a deployment project that I''m setting up. I need to perform a
different custom action based on whether this is a first time install or an
update. Does anyone have any idea if it''s possible to set the Condition
property of a custom action to determine if the currently running install is
upgrading a previous installation and if so how? I''m also open to other
methods of acheiving this functionality.

推荐答案

你是如何部署它的? ClickOnce的?或WindowsInstaller?


您需要执行的自定义操作是什么?


Robin S.

- ---------------

" Matt F" < mf **************** @ nospam.nospamwrote in message

news:%2 ************* **** @ TK2MSFTNGP03.phx.gbl ...
How are you deploying it? ClickOnce? Or WindowsInstaller?

What is the custom action that you need to perform?

Robin S.
----------------
"Matt F" <mf****************@nospam.nospamwrote in message
news:%2*****************@TK2MSFTNGP03.phx.gbl...

>我有一个我正在设置的部署项目。我需要根据这是第一次安装还是更新来执行不同的自定义操作。有没有人知道是否可以设置自定义操作的
Condition属性来确定当前正在运行的安装是否正在升级以前的安装,如果是,如何?我也对其他实现此功能的方法持开放态度。
>I have a deployment project that I''m setting up. I need to perform a
different custom action based on whether this is a first time install or
an update. Does anyone have any idea if it''s possible to set the
Condition property of a custom action to determine if the currently
running install is upgrading a previous installation and if so how? I''m
also open to other methods of acheiving this functionality.



Hi Matt,


根据我的理解,您希望根据自定义操作首次安装MSI包是否为
来添加条件。 />
如果我不在基地,请随时告诉我。


如果已安装产品,则已初始化已安装的属性

在系统上。如果您只想在首次安装产品​​时运行自定义操作,则可以使用Not Installed作为条件。


希望这会有所帮助。

如果您有任何疑问,请随时告诉我。


此致,

Linda Liu

Microsoft在线社区支持


=============================== ===================

通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx

======================================== ==========


此帖子按原样提供。没有保证,也没有授予任何权利。

Hi Matt,

Based on my understanding, you''d like to add a condition based on whether
the MSI package is installed for the first time or not, on a custom action.
If I''m off base, please feel free to let me know.

The Installed property is initialized if the product is already installed
on the system. If you want to run a custom action only when the product is
first installed, you can use Not Installed as a condition.

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


我已经发布了一种不同的方法来确定我需要知道的内容但是

我需要为将来的版本解决这个问题。


这是一个Windows安装程序项目。


在提交中自定义操作,我需要使用

不同的命令行参数调用我的应用程序,具体取决于它是新安装还是

升级到以前的安装。命令行参数

的功能将决定是从先前的安装升级数据还是将应用程序的基本样本数据设置为b $ b b。是的,我有可能只需检查并查看数据是否存在,但是存在防火墙问题

使其成为不太理想的解决方案。


" RobinS" < Ro **** @ NoSpam.yah.nonewrote in message

news:r8 ************************ ******@comcast.com。 ..
I''ve released using a different method of determing what I need to know but
I will need to get this resolved for future releases.

This s a windows installer project.

In the "commit" custom action, I need to call my application with a
different command line parameter based on whether it''s a new install or an
upgrade to a previous install. The function of the command line parameter
will determine whether to upgrade data from a previous installation or set
up the base sample data for the application. Yes, it''s possible for me to
just check and see if the data is there, but there are firewall issues that
make that a less than optimal solution.

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:r8******************************@comcast.com. ..

你如何部署它? ClickOnce的?或WindowsInstaller?


您需要执行的自定义操作是什么?


Robin S.

- ---------------

" Matt F" < mf **************** @ nospam.nospamwrote in message

news:%2 ************* **** @ TK2MSFTNGP03.phx.gbl ...
How are you deploying it? ClickOnce? Or WindowsInstaller?

What is the custom action that you need to perform?

Robin S.
----------------
"Matt F" <mf****************@nospam.nospamwrote in message
news:%2*****************@TK2MSFTNGP03.phx.gbl...

>>我有一个我正在设置的部署项目。我需要根据这是第一次安装还是更新来执行不同的自定义操作。有没有人知道是否可以设置自定义操作的
Condition属性来确定当前正在运行的安装是否正在升级以前的安装,如果是,如何?我也对其他实现此功能的方法持开放态度。
>>I have a deployment project that I''m setting up. I need to perform a
different custom action based on whether this is a first time install or
an update. Does anyone have any idea if it''s possible to set the
Condition property of a custom action to determine if the currently
running install is upgrading a previous installation and if so how? I''m
also open to other methods of acheiving this functionality.




这篇关于部署项目 - 条件自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆