截屏视频帮助
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Wisescript as a Packaging Utility #2

创建时间: 21 2 月 2012 • Updated: 17 7 月 2013 | 2 条评论
EdT 的图片
+2 2 Votes
Login to vote

Wisescript and SMS Installer were both mainstream packaging tools prior to the MSI age, and Wisescript continues to be used for authoring custom actions in Wise Package Studio, and as a standalone 32 bit installer. However, Wisescript can also be used to create simple utilities which can help in many application packaging tasks.

The majority of vendor installs are now in MSI format, and thus the packaging process tends to be less about capture and more about transform creation.  In many cases, the simple ORCA editor is perfectly adequate for generating transform files to customize installs, or editing existing vendor transforms.  However, many applications create user registry entries when first run, often requiring user input, and the application packager has to incorporate these keys (correctly configured) into the vendor installation, so that no user input is required. 

Installing HKCU keys when running a manual installation is quite simple – just add to the registry table. However, when deploying an application using a service based installer, such as SMS, Altiris DS or NS, or SCCM, the user registry hive of the eventual user(s) is not available at the time of installation. In these situations, the use of MSI self healing or Active Setup will ensure the correct deployment of user registry keys, using either an advertised entry point, or during login, respectively.

Authoring a VBScript which will install HKCU registry keys is quite simple, but gets progressively more time consuming as the size of the REG file grows. This is where the power of Wisescript can be leveraged to automate the process of authoring a suitable VBScript.

The attached ZIP file contains the source Wisescript and the compiled EXE of a utility which can be passed the source REG file, and automatically generate a VBScript.  The VBScript can then be included in the transform for the vendor MSI, so that the required configuration entries are automatically created during self healing or active setup operations. This script does have some limitations, for example, it cannot handle DWORD values greater than 7FFFFFFF due to the math limitations within wisescript, and REG_MULTI_SZ and REG_BINARY types are not handled at all. However, the bulk of HKCU entries required by packages tend to be REG_SZ or REG_DWORD types, so the usefulness of this tool is generally high.

The attached ZIP also includes a documented example using ORCA.

文章 归类至以下社区:

评论 条评论跳转至最新评论

EdT 的图片
https://www-secure.symantec.com/connect/articles/wisescript-packaging-utility-1
https://www-secure.symantec.com/connect/articles/wisescript-packaging-utility-3

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

0
Login to vote
CableGuy41 的图片

thank you

Thanks,

CableGuy
Do not forget to mark a SOLUTION

0
Login to vote