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. |
Problem
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.
Environment
WPS 6.01
WfWI 6.2
Cause
Solution
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.
Dim File
Dim WFWI
Dim releases
Dim releaseName
if WScript.Arguments.count < 2 then
msgbox "Please specify the .WSI and the release you want to build."
WScript.quit
end if
File=WScript.Arguments(0)
releaseName = WScript.Arguments(1)
Set WFWI = CreateObject("WFWI.WFWIProject")
WFWI.Open FILE
set releases=WFWI.Releases
for each release in releases
if release.name = releaseName then
release.enabled=true
else
release.enabled=false
end if
next
WFWI.Compile FILE
| Source | DEFECT |
| Value | LB 49691 |
| Description | Logged in Littlebuggy (Altiris - Lindon, Plymouth) database |
Legacy ID
22934
Article URL http://www.symantec.com/docs/TECH14052
Terms of use for this information are found in Legal Notices









Thank you.