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.
Since the version 2.3. 2742, there is only one ClickOnce generator for both x86 and x64 versions.
Install ClickOnce generator on your workstation or on the GN4 server
Unzip the ClickOnce_Generator.zip 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 corresponds to the version of the ClickOnce package you're about to generate. 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] [PLATFORM x86 or amd64]
where:
[CLICKONCE OUT PATH] is the path in which you want to generate the clickonce package
[BIN PATH] is the 32bit or 64bit bin to use as a source (usually c:\tera\gn4\bin or c:\tera\gn4\bin64)
[PLATFORM x86 or amd64] is the platform x86 or x64 of the generated ClickOnce package. Please notice that the term amd64 applies on 64 platforms with any processor and not only AMD.
Deploy ClickOnce package
Deploy the ClickOnce package on all IIS servers of your GN4 system (if it features more than one IIS server).
Example of generating a 64-bit ClickOnce package
•Make sure that the GN4 software is in the C:\TERA\GN4\bin64 folder.
•Run BuildClickOnce.bat C:\Tera\GN4\WEB\ClickOnce\GN4apps\apps C:\Tera\GN4\BIN64 amd64
•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.
Example of generating a 32-bit ClickOnce package
•Make sure that the GN4 software is in the C:\TERA\GN4\BIN folder.
•Run BuildClickOnce.bat C:\Tera\GN4\WEB\ClickOnce\GN4apps\apps C:\Tera\GN4\BIN64 X86
•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.