KNOWN ISSUE: Check In-Use File action does not return a value when the file is in use, only when it is not in use

Article:TECH26308  |  Created: 2007-02-12  |  Updated: 2008-08-12  |  Article URL http://www.symantec.com/docs/TECH26308
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


Issue



Create an installation that checks to see if Notepad is in use (See attached InUseTest.wse)
1.  Set Variable to C:\Windows\System32\Notepad.exe
2.  Add a Check In-Use file action and set the Variable to TEST.
3.  Display a message to see what value is returned from the variable TEST.

Open Notepad.exe from the System32 directory and then run the .EXE.  No value will be returned.  Close down Notepad and the value Not In-Use will be returned.


Environment



Wise Installation Studio 7.0

Solution



This issue has been fixed for Wise Package Studio 7 SP3.

Workaround:

If you are using Wise Installation Studio 7.0, or Wise Installation Studio 7 SP1, perform the following to correct the Check In-use File action. If you are using Wise Package Studio 7.0 SP2 please refer to KB article #35150.

1. Make a backup of the file <Wise Installation Studio>\WiseScript Package Editor\Actions\Check In-use File.wse. By default, this is C:\Program Files\Altiris\Wise Installation Studio\WiseScript Package Editor\Actions\Check In-use File.wse.
2. In WiseScript Package Editor open Check In-use File.wse
3. From the View menu select Line Numbers
4. Find the action Call DLL %sys32%\kernel32.dll Function GetLastError. It should be located at line 9.
5. Move that action up in the script to line 7 (between the CreateFileA and SetFileAttributesA DLL calls)
6. Double-click on line 4 (Call DLL %sys32%\kernel.dll Function GetFileAttributesA)
7. In the Call a function with variable parameter list field, double click the entry whose value is C:\Program Files\Microsoft Office\OFFICE\EXCEL.EXE
8. Replace the path to EXCEL.EXE with %_INUSE_PATH_%
9. Repeat steps 5-7 for lines 5, and 8 (both lines are Call DLL %sys32%\kernel.dll Function SetFileAttributesA actions)
10. Save the Check In-use File.wse


Supplemental Materials

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

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

SourceDEFECT
ValueETK 2024627
DescriptionLogged in Etrack (Symantec) database


Legacy ID



32697


Article URL http://www.symantec.com/docs/TECH26308


Terms of use for this information are found in Legal Notices