Re: Deployment project - conditional custom action



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

  • 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: Light Speed
    ... Light is electromagnetic waves with photons that ... Light is not concentrated at the "peaks" or ... "troughs" of the electromagnetic wave, nor are photons only present at ...
    (sci.physics)
  • 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)
  • Re: Can you help me on and error message
    ... Execute the downloaded file and install it. ... >> you have to reinstall your app or download the next app and install it: ... >>> to know what the error message means, and is it my opertation system ...
    (microsoft.public.vb.general.discussion)

Loading