The Wise Wiindows Installer action triggers a bug in Wise Installation Studio 7.0.
The file versions for the files included with the install project are not updated in the resulting msi. And if I remember correctly there where also some other failures.
This is not exactly a bug in FinalBuilder, but the action is useless, as it can not build a correct install package with Wise Installation Studio 7.0.
More about the problem here:
https://kb.altiris.com/display/1/kb...n=13&s=
The problem can be worked around, if you change the action implementation to use OLE automation, instead of command line execution.
I use the following script now, to build my install packages:
//////////////////////////////////////
//setup
ActionResult = false; //default result
var strProjectFile = FBVariables.PROJECT_BUILD_PATH+'\\someproject.wsi';
var strProjectVersion = FBVariables.PROJECT_VERINFO_PRODUCT_VERSIONNUMBER;
var strProjectName = ProductVersionInfo.ProductName;
var strProductMfg = ProductVersionInfo.CompanyName;
//var strReleaseToBuild = 'Default';
//////////////////////////////////////
//run
Action.SendLogMessage('Creating Wise for Windows Installer object');
var wiseProject = new ActiveXObject('WFWI.WFWIProject');
wiseProject.SilentMode = true;
wiseProject.ThrowExceptions = true;
Action.SendLogMessage('Opening project file: '+strProjectFile);
wiseProject.Open(strProjectFile);
wiseProject.Version = strProjectVersion;
wiseProject.Manufacturer = strProductMfg;
wiseProject.ProductName = strProjectName;
Action.SendLogMessage(' ProductName: '+wiseProject.ProductName);
Action.SendLogMessage(' Manufacturer: '+wiseProject.Manufacturer);
Action.SendLogMessage(' Version: '+wiseProject.Version);
wiseProject.Properties.Item('ProductCode').Value = wiseProject.GenerateGuid();
Action.SendLogMessage('Saving project file: '+strProjectFile);
wiseProject.Save(strProjectFile);
FBVariables.PROJECT_CLIENT_MsiProductCode = wiseProject.ProductCode;
Action.SendLogMessage('ProductCode: '+wiseProject.ProductCode+' '
+FBVariables.PROJECT_CLIENT_MsiProductCode);
Action.SendLogMessage('Compiling project file: '+strProjectFile);
var compileResult;
compileResult = wiseProject.Compile(strProjectFile);
wiseProject = null;
if (compileResult) {
Action.SendLogMessage('SUCCESS');
ActionResult = true;
} else {
Action.SendLogMessage('FAILURE');
ActionResult = false;
//throw 'Failed to compile Wise for Windows Installer project.';
}