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.
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
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
Applies To WPS 6.01 WfWI 6.2
This is machine translated content
Login to Subscribe
Please login to set up your subscription.
Didn't find the article you were looking for? Try these resources.