Re: Deployment project - conditional custom action
- From: "Matt F" <mfielderREMOVECAPS@xxxxxxxxxxxxx>
- Date: Tue, 22 May 2007 12:55:35 -0700
Linda,
Thanks for getting back to me on this. Using the PREVIOUSVERSIONINSTALLED
condition seems to handle what I need beautifully. I still have some
internal testing to do, but I'm not expecting any of those tests to fail.
Thank you!!!
As long as we're in this thread, are the available properties documented
someplace? I'd be curious to see what else is available.
"Linda Liu [MSFT]" <v-lliu@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:zoslZmEnHHA.1140@xxxxxxxxxxxxxxxxxxxxxxxxx
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: Linda Liu [MSFT]
- 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
- From: Linda Liu [MSFT]
- Re: Deployment project - conditional custom action
- Prev by Date: Re: .net 3.0 hosting
- Next by Date: .net and visual studio newbie question - how to detect if .net is installed and install it if its not
- Previous by thread: Re: Deployment project - conditional custom action
- Next by thread: Re: Deployment project - conditional custom action
- Index(es):
Relevant Pages
|