<?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 How to deploy a custom component using a setup project in Visual Studio 2013 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-deploy-a-custom-component-using-a-setup/m-p/25937#M695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For deploying a custom component using a setup project in Visual Studio 2010, I used the following guideline:&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000016r000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000016r000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Visual Studio 2013, however, this kind of setup project is not supported any more. Instead, InstallShield has to be installed, which works like a plugin in Visual Studio. I did the following steps to create a setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First of all, InstallShield Express, Premier, or Professional is needed. InstallShield Free Edition is not sufficient. Reason: When unistalling, a custom action can only be invoked after system changes. However, we need this action before the installed dlls are removed (more to custom actions see below).&lt;/LI&gt;&lt;LI&gt;Create a new project that will be an executable. This executable is used to invoke ESRIRegAsm.exe (see also link above). I didn't figure out how InvokeESRIRegAsm.dll could do that so I created an executable. I altered the code from project InvokeESRIRegAsm (see link above). Important: the following lines of code must be used before the process is started:&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ProcessStartInfo.UseShellExecute = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ProcessStartInfo.Verb = "runas";&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Create a new Setup Project and go through the Project Assistant to add files (and so on)&lt;/LI&gt;&lt;LI&gt;Define a custom action for during Installation (after file transfer) and add the executable created above. Please note: if a path in the Command Line contains blanks, it has to be enclosed in quotation marks.&lt;/LI&gt;&lt;LI&gt;Define a custom action for during Unistallation (before system changes) and add the executable created above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a better solution? If yes, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 12:59:11 GMT</pubDate>
    <dc:creator>BarbaraSchneider1</dc:creator>
    <dc:date>2016-01-25T12:59:11Z</dc:date>
    <item>
      <title>How to deploy a custom component using a setup project in Visual Studio 2013</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-deploy-a-custom-component-using-a-setup/m-p/25937#M695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For deploying a custom component using a setup project in Visual Studio 2010, I used the following guideline:&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000016r000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000016r000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Visual Studio 2013, however, this kind of setup project is not supported any more. Instead, InstallShield has to be installed, which works like a plugin in Visual Studio. I did the following steps to create a setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First of all, InstallShield Express, Premier, or Professional is needed. InstallShield Free Edition is not sufficient. Reason: When unistalling, a custom action can only be invoked after system changes. However, we need this action before the installed dlls are removed (more to custom actions see below).&lt;/LI&gt;&lt;LI&gt;Create a new project that will be an executable. This executable is used to invoke ESRIRegAsm.exe (see also link above). I didn't figure out how InvokeESRIRegAsm.dll could do that so I created an executable. I altered the code from project InvokeESRIRegAsm (see link above). Important: the following lines of code must be used before the process is started:&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ProcessStartInfo.UseShellExecute = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ProcessStartInfo.Verb = "runas";&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Create a new Setup Project and go through the Project Assistant to add files (and so on)&lt;/LI&gt;&lt;LI&gt;Define a custom action for during Installation (after file transfer) and add the executable created above. Please note: if a path in the Command Line contains blanks, it has to be enclosed in quotation marks.&lt;/LI&gt;&lt;LI&gt;Define a custom action for during Unistallation (before system changes) and add the executable created above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a better solution? If yes, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 12:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-deploy-a-custom-component-using-a-setup/m-p/25937#M695</guid>
      <dc:creator>BarbaraSchneider1</dc:creator>
      <dc:date>2016-01-25T12:59:11Z</dc:date>
    </item>
  </channel>
</rss>

