Generate ClickOnce package in versions prior to 2.3

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:34

You can re-generate a ClickOnce package by means of the scriptable generator for a custom ClickOnce package. You can download it from the standard download page, by means of the link pointing to the ClickOnce_Generator.zip or ClickOnce_Generator64.zip.

Install ClickOnce generator on your workstation or on the GN4 server

Unzip the appropriate ClickOnce_Generator  somewhere on your workstation.

Add custom files

Add your custom files to the appropriate subfolder in the Fixed subfolder.

One of the custom files you will surely want to add is the USERCONFIGDEFAULT.XML, containing data for the first connection.

Other custom files are spell-checker lexicons (main and supplemental).

Note: You don't need to add fonts here, as they'll be downloaded to the workstations in other way. See Auto-installing of GN4 fonts

Make a copy of the GN4 bin folder

1.Make sure that the version of GN4 files in the Tera bin folder on your workstation corresponds to what you want to store to the ClickOnce package.

2.Make sure the version of GN4 files is 32-bit for a 32-bit ClickOnce package. See ClickOnce and 32-bit/64-bit platforms.

3.Duplicate entire content of the Bin folder in a new folder to use as a source for ClickOnce, e.g. sourceclickonce.

Clean the source folder

You may want to remove unneeded files from the source folder. For example, parser files are not needed in the ClickOnce package. Help file may not be needed, if you installed the Webhelp on a local IIS server.

Move add-ins dll files to the Common folder

This will ensure that also users without DefaultPermission set can run ClickOnce.

Generate ClickOnce package

From the root of the folder where you extracted the ClickOnce_Generator.zip, execute this command in the Command Prompt window:

BuildClickOnce.bat [CLICKONCE OUT PATH] [BIN PATH]

where:

[CLICKONCE OUT PATH] is the path in which you want to generate the ClickOnce package.

[BIN PATH] is the path to the 32-bit bin folder to use as a source.

Example:

Extract 32-bit software to C:\TERA\GN4\BIN_32.

In the Command Prompt window, run as Administrator, run C:\TERA\GN4\streams.exe -s -d C:\TERA\GN4\BIN_32. This step is optional.

Run BuildClickOnce.bat C:\Tera\GN4\WEB\ClickOnce\GN4apps\apps C:\Tera\GN4\BIN_32

Copy folder: C:\Tera\GN4\WEB\ClickOnce to \\<first_IIS_server\c$\Tera\Web

If there are more IIS servers, repeat the copying to all.

Perform iisreset on all GN4 IIS servers.

Deploy ClickOnce package  

Deploy the ClickOnce package on all IIS servers of your GN4 system (if it features more than one IIS server).

Download streams

https://download.sysinternals.com/files/Streams.zip