<?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: Can I extend the purpose of the Deployment Server for general software distribution, such as making a Splunk app perform a scripted install? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255168#M9677</link>
    <description>&lt;P&gt;Thanks lukejadamec.&lt;/P&gt;

&lt;P&gt;So I split the problem into two parts:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Deliver the source binary (in my case my_prog.msi) to the target as part of the app, and copy the binary to a non-app location (c:\temp) using a script (in my case a BAT file) that runs only once (interval = -1):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;###### Scripted Input
[script://.\bin\Copy_VSC.bat]
interval = -1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;That works fine.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Install the software binary and ensure the install script (in my case a BAT file) runs only once:&lt;/P&gt;

&lt;H6&gt;Scripted Input&lt;/H6&gt;

&lt;P&gt;[script://.\bin\Install_VSC.bat]&lt;BR /&gt;
interval = -1&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The problem is with the command in the Install_VSC.bat file. I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;c:\windows\system32\msiexec.exe /i "c:\temp\my_prog.msi" /q CONN_INTG_SVC=TRUE INTG_SERVERS=VM301:29522
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This &lt;EM&gt;appears&lt;/EM&gt; to work, but the result is imperfect, compared to if I install manually as a local admin using the exact same command. Using the deployment server method, files are installed, a service is installed and it launches, and all the options (switches) appear to be used during the install, but the installed program fails in a critical way when installed using the deployment server method.&lt;/P&gt;

&lt;P&gt;I am wondering whether I should use a .path file in inputs.conf in order to reference the out-of-app locations and executables such as msiexec.exe.&lt;BR /&gt;
Or maybe I need "start_by_shell = true" in the inputs.conf.&lt;/P&gt;

&lt;P&gt;Any suggestions/experience with this? Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:27:57 GMT</pubDate>
    <dc:creator>untieshoe</dc:creator>
    <dc:date>2020-09-29T11:27:57Z</dc:date>
    <item>
      <title>Can I extend the purpose of the Deployment Server for general software distribution, such as making a Splunk app perform a scripted install?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255165#M9674</link>
      <description>&lt;P&gt;Can I piggy-back (insert) a Win32 setup.exe (windows program) onto a Splunk App, and use Splunk Deployment Server to deploy the Splunk app, and have the deployed Splunk app run a script that performs an unattended installation of the setup.exe on the target system, using SYSTEM privileges?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 19:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255165#M9674</guid>
      <dc:creator>untieshoe</dc:creator>
      <dc:date>2016-10-14T19:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I extend the purpose of the Deployment Server for general software distribution, such as making a Splunk app perform a scripted install?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255166#M9675</link>
      <description>&lt;P&gt;I'm not just being 'cheap'. I have my reasons for wanting to do this...&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 19:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255166#M9675</guid>
      <dc:creator>untieshoe</dc:creator>
      <dc:date>2016-10-14T19:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can I extend the purpose of the Deployment Server for general software distribution, such as making a Splunk app perform a scripted install?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255167#M9676</link>
      <description>&lt;P&gt;Yes you can, but you should be very familiar with how the deployment server works first.&lt;BR /&gt;&lt;BR /&gt;
I once used the deployment server to reconfigure some Splunk apps and other system changes outside of Splunk, but the content pushed to the servers was designed to self-destruct so that it would not get re-deployed and not continually trigger once deployed.&lt;BR /&gt;
So, Yea you can do it, just make sure you know what you're doing.&lt;/P&gt;

&lt;P&gt;One suggestion, you might want to have the script copy the installer to a temp directory before the script executes the installer because your system may prohibit installers from running in the program files directory.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 19:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255167#M9676</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2016-10-14T19:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I extend the purpose of the Deployment Server for general software distribution, such as making a Splunk app perform a scripted install?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255168#M9677</link>
      <description>&lt;P&gt;Thanks lukejadamec.&lt;/P&gt;

&lt;P&gt;So I split the problem into two parts:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Deliver the source binary (in my case my_prog.msi) to the target as part of the app, and copy the binary to a non-app location (c:\temp) using a script (in my case a BAT file) that runs only once (interval = -1):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;###### Scripted Input
[script://.\bin\Copy_VSC.bat]
interval = -1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;That works fine.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Install the software binary and ensure the install script (in my case a BAT file) runs only once:&lt;/P&gt;

&lt;H6&gt;Scripted Input&lt;/H6&gt;

&lt;P&gt;[script://.\bin\Install_VSC.bat]&lt;BR /&gt;
interval = -1&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The problem is with the command in the Install_VSC.bat file. I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;c:\windows\system32\msiexec.exe /i "c:\temp\my_prog.msi" /q CONN_INTG_SVC=TRUE INTG_SERVERS=VM301:29522
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This &lt;EM&gt;appears&lt;/EM&gt; to work, but the result is imperfect, compared to if I install manually as a local admin using the exact same command. Using the deployment server method, files are installed, a service is installed and it launches, and all the options (switches) appear to be used during the install, but the installed program fails in a critical way when installed using the deployment server method.&lt;/P&gt;

&lt;P&gt;I am wondering whether I should use a .path file in inputs.conf in order to reference the out-of-app locations and executables such as msiexec.exe.&lt;BR /&gt;
Or maybe I need "start_by_shell = true" in the inputs.conf.&lt;/P&gt;

&lt;P&gt;Any suggestions/experience with this? Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255168#M9677</guid>
      <dc:creator>untieshoe</dc:creator>
      <dc:date>2020-09-29T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can I extend the purpose of the Deployment Server for general software distribution, such as making a Splunk app perform a scripted install?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255169#M9678</link>
      <description>&lt;P&gt;Without knowing the error it is hard to say. &lt;BR /&gt;
If you compare the service properties between the local and remote install, is the Log On user the same?&lt;BR /&gt;
Does it work after the remote system is rebooted?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-extend-the-purpose-of-the-Deployment-Server-for-general/m-p/255169#M9678</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2016-10-19T17:39:08Z</dc:date>
    </item>
  </channel>
</rss>

