Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Reading a property from previous version


2 replies to this topic

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 22 August 2003 - 16:45

Hi all,

When my installation is performing a major upgrade, it needs to find a property set by the older version install. I want to do this in a CA, which is run pretty early in the sequence. How can I find the property value?

I tried:

MsiOpenProduct/MsiGetProductProperty:
Win2000: retrieves the initial value, not the value set during install.
Win98: MsiOpenProduct fails - "an installation is already in progress" (1618)

MsiGetProductInfo(LocalPackage)-MsiOpenDatabase-query to the property table:
Only initial values can be retrieved.


In the future, the Setup will write the value to the registry. But how to deal with existing older versions?

Thanks!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 August 2003 - 14:17

Property values you set during the runtime of your setup are not preserved. If you didn't store them somewhere (e.g. registry) they're lost as soon as the setup program has finished. If you created a log file for your setup you may find the property values there.

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 27 August 2003 - 08:33

That's too bad...

BTW: This was about finding INSTALLDIR from previous install. That install didn't set ARPINSTALLLOCATION.
I did find a workaround, by calling MsiGetComponentPath for a well known component, in a required feature.

Thanks