When running this bit of script code the installer gives a non specific error when installing my app. The script works fine when you run it outside of advanced installer. Is the syntax required different if running within advanced installer as Execute inline script code. The script merely tests for how many excel workbooks are open as I want to be sure they are all closed before going on. Here it is. Thanks. Seems the error is on the line set objExcelCount= GetObject(,Excel.Application)
Dim objExcelCount, wbs, count, answer
set objExcelCount = GetObject(,"Excel.Application")
set wbs = objExcelcount.workbooks
count = 0
count = wbs.count
if count > 0 then
do
answer = msgbox ("Please close all open workbooks first, then click OK to continue.",vbokcancel, wbs.count & " Open Workbooks")
count = 0
count = wbs.count
if answer = vbcancel then
wscript.quit
end if
loop until count = 0
end if
FOLLOW US
Get the latest news in Application Packaging