Re: Deployment project - conditional custom action



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



.



Relevant Pages

  • MSDE 2000 SP4 install gets to very end then rolls it all back
    ... On most machines my msde install goes fine. ... exuisting SQL server. ... Starting custom action SaveSqlServerServiceStates() ... Action start 14:23:53: RegisterClassInfo. ...
    (microsoft.public.sqlserver.setup)
  • RE: VS Setup project: detect install folder automatically?
    ... There was a key in the registry that pointed to the install ... 2)Create a custom action assembly, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.vsnet.general)
  • Re: system drive change?
    ... and do a new install having sorted out the hardware. ... Enquire, plan and execute ... and I may have to uninstall and reinstall the thing tomorrow. ... What McAfee product was or is installed? ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Trojan Horse
    ... NewCrapNet is not classified as a virus, ... > Download and install Ad-aware SE ... > signature files and install them before performing the scan. ... > Execute; CLEAN.EXE ...
    (microsoft.public.windowsupdate)
  • Re: Extension Application Management ProcessGroupPolicy failed, status 0x1f.
    ... Software Installation extension can only be executed in foreground. ... attempt to execute it in background it would fail. ... I don't think that you can install MSI packages in background using Group ... >> I am trying to install a service (MSI package) through GPO. ...
    (microsoft.public.win2000.group_policy)