Re: Deployment project - conditional custom action
- From: v-lliu@xxxxxxxxxxxxxxxxxxxx (Linda Liu [MSFT])
- Date: Tue, 22 May 2007 08:16:59 GMT
Hi Matt,
Thank you for your prompt response.
I performed a test based on your steps and did see that the Installed
property returns false when the upgrade MSI package is installed.
In my previous test, I used the same MSI package, so the Installed property
returned true when the same MSI package was installed for the second time.
In your scenario, you should use the PREVIOUSVERSIONSINSTALLED property,
which is a public property generated by VS.
For the custom action you want to execute when you install the MSI package
for the first time, use PREVIOUSVERSIONSINSTALLED as the condition. For
the custom action you'd like to execute when upgrading, use Not
PREVIOUSVERSIONSINSTALLED as the condition.
Please try my suggestion and let me know the result.
Sincerely,
Linda Liu
Microsoft Online Community Support
.
- Follow-Ups:
- Re: Deployment project - conditional custom action
- From: Matt F
- Re: Deployment project - conditional custom action
- References:
- Re: Deployment project - conditional custom action
- From: Linda Liu [MSFT]
- Re: Deployment project - conditional custom action
- From: Linda Liu [MSFT]
- Re: Deployment project - conditional custom action
- From: Matt F
- Re: Deployment project - conditional custom action
- From: Linda Liu [MSFT]
- Re: Deployment project - conditional custom action
- From: Matt F
- Re: Deployment project - conditional custom action
- Prev by Date: .Net 2.0 SqlDataSource and DataSet question
- Next by Date: Re: How to use CopyFileEx() function in VB .NET
- Previous by thread: Re: Deployment project - conditional custom action
- Next by thread: Re: Deployment project - conditional custom action
- Index(es):
Relevant Pages
|
Loading