Customizing and building the ClickOnce deployment package

Article:HOWTO58559  |  Created: 2011-08-01  |  Updated: 2013-07-12  |  Article URL http://www.symantec.com/docs/HOWTO58559
Article Type
How To


Subject


Customizing and building the ClickOnce deployment package

The Compliance Accelerator ClickOnce package comes with a file called GenerateClickOnce.msbuild, which you can customize to suit your environment. For example, this file lets you specify the IIS Server address from which users can run the installation. You can also choose whether an installed Compliance Accelerator client should perform an update check at start-up.

After you have set your preferred configuration options in the file, use the MSBuild engine to build the final deployment package. This engine is included in .NET Framework 2.0 and later.

To customize and build the ClickOnce deployment package

  1. Copy the files from the following folder in the release media to a new folder on your local drive:

    ..\Symantec Enterprise Vault Compliance Accelerator version\Client\ClickOnce\ApplicationFiles

  2. Browse to the new folder in Windows Explorer.

  3. Open the GenerateClickOnce.msbuild file in a plain text editor such as Windows Notepad.

  4. Modify the following properties at the start of the file:

    Thumbprint

    Specifies the SHA-1 thumbprint of the code-signing certificate. Remove the spaces from the string. This certificate must exist in your personal store.

    See Obtaining the SHA-1 thumbprint of the code-signing certificate

    OutputPath

    Specifies the folder in which to output your ClickOnce deployment package.

    DeploymentPath

    Specifies the IIS Server address from which users can obtain the ClickOnce deployment package.

    See Making the ClickOnce deployment package available for download

    EnableAutoUpdates

    Specifies whether an installed Compliance Accelerator client should automatically check your nominated deployment path for updates. Valid settings are "true" or "false".

    For example, you can set the properties as follows:

    <Thumbprint>df9634cc5e654f07521d11de8bc03d6ed789ef8e</Thumbprint>
    <OutputPath>\\Server1\WebServer</OutputPath>
    <DeploymentPath>http://server2/compliance</DeploymentPath>
    <EnableAutoUpdates>true</EnableAutoUpdates>
  5. Save and close the file.

  6. In Windows Explorer, search the folders under your .NET Framework installation for the file MSBuild.exe.

  7. Open a Command Prompt window.

  8. Change to the folder that contains the most recent version of MSBuild.exe. For example, you can type the following:

    cd C:\WINDOWS\Microsoft.NET\Framework\v3.5

  9. Type the following command:

    MSBuild path_to\GenerateClickOnce.msbuild

    where path_to specifies the absolute path to the GenerateClickOnce.msbuild file. For example, you can type the following:

    MSBuild c:\ClickOnce\GenerateClickOnce.msbuild

    MSBuild creates the final deployment package in the folder that you specified with the OutputPath property.

  10. Copy the contents of the output folder to the required location on your IIS Server computer.

See Using ClickOnce to deploy the Compliance Accelerator client

See Users cannot start the Compliance Accelerator client when an invalid ClickOnce update is available for download


Legacy ID



v21067198_v41328187


Article URL http://www.symantec.com/docs/HOWTO58559


Terms of use for this information are found in Legal Notices