COMMAND LINE: When using command line /c="release name" compilation errors if files added through wildcards were deleted
|Article:TECH14052|||||Created: 2006-05-24|||||Updated: 2008-06-16|||||Article URL http://www.symantec.com/docs/TECH14052|
|NOTE: If you are experiencing this particular known issue, we recommend that you Subscribe to receive email notification each time this article is updated. Subscribers will be the first to learn about any releases, status changes, workarounds or decisions made.|
When compiling from the command line, if you use the /c="release name" command and specify a release that uses wildcards, if on e of the files initially added by a wildcard is missing, you receive errors that the file cannot be found. Compiling from the GUI displays the Wildcard Delete Files prompt.
This issue was fixed for Wise Installation Studio\Express 7.0 and Wise Package Studio 7 SP1.
WORKAROUND: You can create a macro that takes the .WSI and release name as a parameter. Loop through all releases in the .WSI and if the name of the releases equals the name they specified on the command line, enabled that release. If its different than the name specified on the command line, disable the release.
The script below is provided as a sample to demonstrate how to perform the actions above. As with all scripts, this should first be tested with sample/backup projects before executing on product projects. It may need to be modified based on specific customer needs.
if WScript.Arguments.count < 2 then
msgbox "Please specify the .WSI and the release you want to build."
releaseName = WScript.Arguments(1)
Set WFWI = CreateObject("WFWI.WFWIProject")
for each release in releases
if release.name = releaseName then
|Description||Logged in Littlebuggy (Altiris - Lindon, Plymouth) database|
Article URL http://www.symantec.com/docs/TECH14052