<?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 ESRISignAddIn.exe be run silently? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371086#M2401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deidre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't recall there being any special tricks other than /s, but here are a few things that I might be doing differently than you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've got ESRISignAddIn.exe checked in to source control, so it winds up being executed from a location within my job's workspace.&lt;/LI&gt;&lt;LI&gt;ESRISignAddIn.exe is invoked from a batch file.&amp;nbsp; The batch file is executed by a Jenkins batch command step, rather than the .exe being called directly.&lt;/LI&gt;&lt;LI&gt;I'm specifying the /r parameter in addition to /c, /p, and /s.&amp;nbsp; I see you don't have /r in your example above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's helpful, here's the batch file that I use:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@echo off

REM Print some help if the user is clueless.
if "%~1"=="" (
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo Usage: esriSignAddIn.bat ^&amp;lt;input.esriaddin^&amp;gt; ^&amp;lt;output.esriaddin^&amp;gt; [password] [certificate]
&amp;nbsp;&amp;nbsp;&amp;nbsp; goto :eof
)

REM Prompt for password
cls
echo Signing %1
echo.
if "%~3"=="" (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set /p password="Password: "
) else (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set password=%3
)

REM Clear the displayed password
cls
echo Signing %1
echo.
echo Password:
echo.

REM Set up the certificate path
set thisDirectory=%~dp0%
if "%~4"=="" (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set certificatePath=%thisDirectory%certificate.pfx
) else (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set certificatePath=%4
)

REM Sign the binary
set ESRISignAddInExe=%thisDirectory%ESRISignAddIn.exe
%ESRISignAddInExe% %1 /r:%2 /c:"%certificatePath%" /p:%password% /s&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&amp;nbsp; Let me know if you get it working!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:11:54 GMT</pubDate>
    <dc:creator>MarkRubelmann</dc:creator>
    <dc:date>2021-12-11T17:11:54Z</dc:date>
    <item>
      <title>Can ESRISignAddIn.exe be run silently?</title>
      <link>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371083#M2398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build and sign an add-in on a build server, which means everything has to run without a GUI.&amp;nbsp; Unfortunately, I can't seem to get the ESRISignAddIn.exe tool to run without popping up a window.&amp;nbsp; Even when I use the /r, /c, and /p options and the signing is successful, it still feels the need to pop up a message box to let me know everything is okay, which then causes it to throw an InvalidOperationException.&amp;nbsp; (The message is "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a workaround for this?&amp;nbsp; Perhaps an undocumented argument?&amp;nbsp; Some fancy Windows trick to beat this dialog into submission?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 19:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371083#M2398</guid>
      <dc:creator>MarkRubelmann</dc:creator>
      <dc:date>2015-05-11T19:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can ESRISignAddIn.exe be run silently?</title>
      <link>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371084#M2399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems I answered my own question!&amp;nbsp; Using the top secret argument "/s" makes it do what I want.&amp;nbsp; If only that had been included in the /? output...&amp;nbsp; *sigh*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 19:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371084#M2399</guid>
      <dc:creator>MarkRubelmann</dc:creator>
      <dc:date>2015-05-11T19:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can ESRISignAddIn.exe be run silently?</title>
      <link>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371085#M2400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping that someone is still watching this thread... &lt;A href="https://community.esri.com/migrated-users/106568"&gt;Mark Rubelmann&lt;/A&gt;​ was there any trick to getting the silent flag to work on your build machine?&amp;nbsp; I'm finding if I call ESRISignAddIn in a command prompt with /s (IE... ESRISignAddIn &amp;lt;ADDIN_PATH&amp;gt; /s /c:&amp;lt;CERT&amp;gt; /p:&amp;lt;PASS&amp;gt;) no UI is shown.&amp;nbsp; However when the exact same command is given on our jenkins build server, I'm still getting the &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;InvalidOperationException.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371085#M2400</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-18T17:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can ESRISignAddIn.exe be run silently?</title>
      <link>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371086#M2401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deidre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't recall there being any special tricks other than /s, but here are a few things that I might be doing differently than you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've got ESRISignAddIn.exe checked in to source control, so it winds up being executed from a location within my job's workspace.&lt;/LI&gt;&lt;LI&gt;ESRISignAddIn.exe is invoked from a batch file.&amp;nbsp; The batch file is executed by a Jenkins batch command step, rather than the .exe being called directly.&lt;/LI&gt;&lt;LI&gt;I'm specifying the /r parameter in addition to /c, /p, and /s.&amp;nbsp; I see you don't have /r in your example above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's helpful, here's the batch file that I use:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@echo off

REM Print some help if the user is clueless.
if "%~1"=="" (
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo Usage: esriSignAddIn.bat ^&amp;lt;input.esriaddin^&amp;gt; ^&amp;lt;output.esriaddin^&amp;gt; [password] [certificate]
&amp;nbsp;&amp;nbsp;&amp;nbsp; goto :eof
)

REM Prompt for password
cls
echo Signing %1
echo.
if "%~3"=="" (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set /p password="Password: "
) else (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set password=%3
)

REM Clear the displayed password
cls
echo Signing %1
echo.
echo Password:
echo.

REM Set up the certificate path
set thisDirectory=%~dp0%
if "%~4"=="" (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set certificatePath=%thisDirectory%certificate.pfx
) else (
&amp;nbsp;&amp;nbsp;&amp;nbsp; set certificatePath=%4
)

REM Sign the binary
set ESRISignAddInExe=%thisDirectory%ESRISignAddIn.exe
%ESRISignAddInExe% %1 /r:%2 /c:"%certificatePath%" /p:%password% /s&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&amp;nbsp; Let me know if you get it working!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371086#M2401</guid>
      <dc:creator>MarkRubelmann</dc:creator>
      <dc:date>2021-12-11T17:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can ESRISignAddIn.exe be run silently?</title>
      <link>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371087#M2402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out the trick was the batch script... for whatever reason calling it directly was ignoring the /s flag.&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371087#M2402</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-19T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can ESRISignAddIn.exe be run silently?</title>
      <link>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371088#M2403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, I'm glad it worked for you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 14:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/can-esrisignaddin-exe-be-run-silently/m-p/371088#M2403</guid>
      <dc:creator>MarkRubelmann</dc:creator>
      <dc:date>2016-04-19T14:36:14Z</dc:date>
    </item>
  </channel>
</rss>

