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
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.
Article Type
Technical Solution


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.


WPS 6.01
WfWI 6.2




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 releases
Dim releaseName

if WScript.Arguments.count < 2 then
 msgbox "Please specify the .WSI and the release you want to build."
end if

releaseName = WScript.Arguments(1)

Set WFWI = CreateObject("WFWI.WFWIProject")
set releases=WFWI.Releases
for each release in releases
 if = releaseName then
 end if


Supplemental Materials

ValueLB 49691
DescriptionLogged in Littlebuggy (Altiris - Lindon, Plymouth) database

Legacy ID


Article URL

Terms of use for this information are found in Legal Notices