c# - Show EULA in ClickOnce -


i want show eula (end-user license agreement) window before installing application clickonce.

i googled lot , chose follow link.

i combined solutions of first reply of discussion , 1 eula.bat. looks great want customize window more.

screenshot of eula window

  1. i prefer not show button view eula printing.
  2. i want make eula textbox can't copyed.
  3. i want alternative solution other eula.bat popup window.

product.xml

<?xml version="1.0" encoding="utf-8" ?>   <product   xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" productcode="eula.bootstrap.component">   <!-- defines list of files copied on build -->   <packagefiles>     <packagefile name="en/eula.bat"/>         <packagefile name="en/eula.rtf"/>   </packagefiles>    <commands>     <command packagefile="en/eula.bat"        arguments='' >         <exitcodes>           <exitcode value="0" result="success"/>           <defaultexitcode result="fail" formatmessagefromsystem="true" string="generalfailure" />         </exitcodes>      </command>   </commands> </product> 

package.xml

<?xml version="1.0" encoding="utf-8" ?>   <package   xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" name="displayname" culture="culture" licenseagreement="eula.rtf">     <packagefiles>         <packagefile name="eula.rtf"/>     <packagefile name="eula.bat"/>     </packagefiles>    <!-- defines localizable string table error messages , url's  -->   <strings>     <string name="displayname">end user license agreement</string>     <string name="culture">en</string>   </strings> </package> 

you can follow link , copy them right place such c:\program files (x86)\microsoft sdks\windows\v8.1a\bootstrapper\packages if using vs 2013.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -