4 Replies Latest reply on Sep 15, 2010 7:58 AM by R V

    BLPackage question

      Can I specify ??Source?? variable in a BLPackage. I want to copy files to a temporary directory, complete the installation and then remove the directory. I'm want to be able to copy files to a parametrized location, like, %WINDIR%\Temp or ??SOURCE??\etc. Is it possible?

        • 1. Re: BLPackage question

          Yes. Your BLPackage instructions are carried out from a directory whose relative path to the source is represented by ??SOURCE?? within the installable and (I believe) by "Software//*

           

          where "Software/0" is the location that the ??SOURCE?? expands out to once you add it to the BLPackage.

          • 2. Re: BLPackage question

            You can absolutely parameterize BLPackages, but I'm not so sure you want to use the ??SOURCE?? param. That param is a reserved parameter that resolves to the final destination where the BLPackage is copied prior to it being applied. That location is deleted automatically for you after the commit has happened.

            • 3. Re: BLPackage question

              Now I'm using "Custom Software" to deploy Oracle 8.1.7 and 9.2 Clients. I observe the filesystem activity on the target servers and notice the folder getting created in the "Staging Directory", now, the files are removed automatically after the copy operation is done.

               

              This is my Install Command for the "Custom Software":

              -


              cd ??SOURCE??

              IF /I %SYSTEMDRIVE%==M: SET RESPONSEFILE=clientcustom_ADP_M.rsp

              IF /I %SYSTEMDRIVE%==D: SET RESPONSEFILE=clientcustom_ADP_D.rsp

              IF /I %SYSTEMDRIVE%==C: SET RESPONSEFILE=clientcustom_ADP_C.rsp

              setup.exe -responsefile %CD%\Response\%RESPONSEFILE% -silent

              Echo Launching Watch.VBS

              %WINDIR%\System32\CScript.EXE Watch.vbs //NoLogo

              Echo Exiting with Exitcode %errorlevel%

              -


               

              Here is the log from Transactions directory:

              -


              06/22/05 10:31:55.484 DEBUG bldeploy - Tokens

              0. "FQHOST" = "ehcsvm012.ehc.adp.com"

              1. "HOST" = "ehcsvm012"

              2. "HOSTIP" = "150.175.30.147"

              3. "NAMESPACE" = "ehcsvm012.ehc.adp.com"

              4. "RSCDIR" = "/M/Program Files/BladeLogic/RSC"

              5. "WINDIR" = "M:\WINNT"

              6. "DEPLOYNAME" = "WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1"

              7. "DEPLOYPATH" = "/N/tmp/stage/WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1"

              8. "ROLLBACKPATH" = "M:/Program Files/BladeLogic/RSC\Transactions\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1"

               

              06/22/05 10:31:57.796 INFO bldeploy - Metabase initialization failed: 0x80040154

              06/22/05 10:31:57.796 INFO bldeploy - Bldeploy WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1 started using file /N/tmp/stage/WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1/bldeploy.xml rollback directory /M/Program Files/BladeLogic/RSC\Transactions\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1

              06/22/05 10:31:57.828 INFO bldeploy - Starting apply

              06/22/05 10:31:57.828 DEBUG bldeploy - [] Applying id = 0

              06/22/05 10:31:57.828 DEBUG bldeploy - [] Applying id = 1

              06/22/05 10:31:57.828 INFO bldeploy - [] Executing command: "cd 2000226.1\SetUp

              IF /I %SYSTEMDRIVE%==M: SET RESPONSEFILE=clientcustom_ADP_M.rsp

              IF /I %SYSTEMDRIVE%==D: SET RESPONSEFILE=clientcustom_ADP_D.rsp

              IF /I %SYSTEMDRIVE%==C: SET RESPONSEFILE=clientcustom_ADP_C.rsp

              setup.exe -responsefile %CD%\Response\%RESPONSEFILE% -silent

              Echo Launching Watch.VBS

              %WINDIR%\System32\CScript.EXE Watch.vbs //NoLogo

              Echo Exiting with Exitcode %errorlevel%"

              06/22/05 10:31:57.828 DEBUG bldeploy - [] chdir to PkgDir: 'N:/tmp/stage/WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1/'

              06/22/05 10:31:57.859 INFO bldeploy - []

               

              N:\tmp\stage\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1>cd 2000226.1\SetUp

               

               

               

              N:\tmp\stage\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1>IF /I M: == M: SET RESPONSEFILE=clientcustom_ADP_M.rsp

               

               

              06/22/05 10:31:57.859 WARN bldeploy - [] ReadPipe: The system cannot find the path specified.

               

              06/22/05 10:31:57.875 INFO bldeploy - []

               

              N:\tmp\stage\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1>IF /I M: == D: SET RESPONSEFILE=clientcustom_ADP_D.rsp

               

              06/22/05 10:31:57.875 INFO bldeploy - []

               

              N:\tmp\stage\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1>IF /I M: == C: SET RESPONSEFILE=clientcustom_ADP_C.rsp

               

              N:\tmp\stage\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1>setup.exe -responsefile N:\tmp\stage\WE.Oracle9i.Deploy.A1@06.22.2005-10.22.56.426-2000229.1\Response\clientcustom_ADP_M.rsp -silent

              -


               

              The first command in the sequence fails, I don't know why. Any ideas?

              • 4. Re: BLPackage question
                R V

                Yes - this is a really old one - but I just stumbled over and the question was never answered ;-)

                 

                The reason is: ??SOURCE?? contains a file-name and you can't cd to a file. That's all.