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

How to get the installation path while repair


5 replies to this topic

kittu_s

kittu_s
  • Members
  • 14 posts

Posted 20 October 2005 - 14:35

Hi,

If user installing the setup into different location than default location. The setup is unable fetch the installed folder while repairing.

The INSTALLDIR property is holding the default installation path. If the user is installing different location than default path, this INSTALLDIR property is reseting back to default path. Because of this setup is not able to find the installed path properly and failing to repair.

Any body knows why the property value is resetting, is there any method to hold this value, which can be used while repair.

thanks a lot for help
krishna.s

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 20 October 2005 - 20:09

Do you have any component that installs directly to INSTALLDIR, not a subdirectory thereof?

kittu_s

kittu_s
  • Members
  • 14 posts

Posted 21 October 2005 - 09:06

Thanks for your response.
We are not installing any component directly ubder INSTALLDIR.
Is it the only option for getting the INSTALLDIR property while repairing.
If any other option please let me know without using registry.

Thanks
Krishna.S




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 October 2005 - 15:04

If you install a component to INSTALLDIR I believe it will be preserved automatically. If not, yu can:
- read INSTALLDIR from registry (if you properly set ARPINSTALLLOCATION during installation)
- store it elsewhere (an INI file for instance)
- read the install location of a component, in the form [$componentkey] for instance, and extract INSTALLDIR from it.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 23 October 2005 - 16:57

I guess you could also use the AppSearch feature of windows installer to search for a file signature (combination of file name, file version, file size etc...). Windows installer could then set a property based on the search.
Regards
-Stein Åsmul

kittu_s

kittu_s
  • Members
  • 14 posts

Posted 24 October 2005 - 06:39

Thansk a lot for reply