<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Software Distributor - preinstall in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945940#M760732</link>
    <description>See how to set   variables - &lt;A href="http://docs.hp.com/en/B2355-90154/ch11s03.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90154/ch11s03.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
    <pubDate>Fri, 16 Feb 2007 05:11:10 GMT</pubDate>
    <dc:creator>Ivan Krastev</dc:creator>
    <dc:date>2007-02-16T05:11:10Z</dc:date>
    <item>
      <title>Software Distributor - preinstall</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945939#M760731</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;we packaging a product (so we build the depot).However, we need to change the SW_LOCATION at install time. so i tried&lt;BR /&gt;&lt;BR /&gt;swinstall -s &lt;DEPOT&gt; -x allow_multiple_versions=true &lt;PRODUCT&gt;,l=&lt;NEW location=""&gt;&lt;BR /&gt;&lt;BR /&gt;this works well, however if there is no location specified we need to assign a default location. &lt;BR /&gt;&lt;BR /&gt;can someone tell me how to change the SW_LOCATION from within a preinstall script(or any other script).&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;bharat&lt;/NEW&gt;&lt;/PRODUCT&gt;&lt;/DEPOT&gt;</description>
      <pubDate>Fri, 16 Feb 2007 04:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945939#M760731</guid>
      <dc:creator>bharath kumar bhaskar k</dc:creator>
      <dc:date>2007-02-16T04:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Software Distributor - preinstall</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945940#M760732</link>
      <description>See how to set   variables - &lt;A href="http://docs.hp.com/en/B2355-90154/ch11s03.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90154/ch11s03.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 16 Feb 2007 05:11:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945940#M760732</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-02-16T05:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Software Distributor - preinstall</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945941#M760733</link>
      <description>Hi ivan,&lt;BR /&gt;&lt;BR /&gt;this document just lists the environmental variables, but it does not explain how to set these variables.&lt;BR /&gt;&lt;BR /&gt;i tried this in my preinstall:&lt;BR /&gt;=========================================&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;UTILS="/usr/lbin/sw/control_utils"&lt;BR /&gt;if [ ! -f $UTILS ]; then&lt;BR /&gt;   fatal_error "Cannot find $UTILS"&lt;BR /&gt;   fi&lt;BR /&gt;. $UTILS&lt;BR /&gt;&lt;BR /&gt;if [ "${SW_LOCATION}" = "/" ]&lt;BR /&gt;then&lt;BR /&gt;SW_LOCATION="/MY/LOC/"&lt;BR /&gt;_R=${SW_LOCATION} export _R&lt;BR /&gt;fi&lt;BR /&gt;exit 0&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;_R is not document anywhere, but I suspect _R refers to SW_ROOT_DIRECTORY.This does not work however.&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;bharat</description>
      <pubDate>Fri, 16 Feb 2007 06:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945941#M760733</guid>
      <dc:creator>bharath kumar bhaskar k</dc:creator>
      <dc:date>2007-02-16T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Software Distributor - preinstall</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945942#M760734</link>
      <description>You cannot set these variables usefully in a script.  The environment is not passed back to the parent (swagent). I am not sure what you mean by setting a default location.  This is easily done in the PSF using the directory attribute (see sd(4)).  &lt;BR /&gt;&lt;BR /&gt;If your concern is that you do not want multiple versions to be installed in the same location you need to stop the session using a checkinstall script and inform the user that a value must be passed.</description>
      <pubDate>Fri, 16 Feb 2007 15:47:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/software-distributor-preinstall/m-p/3945942#M760734</guid>
      <dc:creator>Bob E Campbell</dc:creator>
      <dc:date>2007-02-16T15:47:47Z</dc:date>
    </item>
  </channel>
</rss>

