Problem with Office XP SP3 Wise Script
Dear Sir,
I am new to wise scripting,for Office XP SP3 SMS push, how can someone create a wise script that will not push the package to the desktop until the user close all running Office XP programs or it gives some kind of loop to the user that close the program and then the application installed,so can somebody send me a wise script in the e-mail.I will be grateful to you.
Thanks
I am new to wise scripting,for Office XP SP3 SMS push, how can someone create a wise script that will not push the package to the desktop until the user close all running Office XP programs or it gives some kind of loop to the user that close the program and then the application installed,so can somebody send me a wise script in the e-mail.I will be grateful to you.
Thanks
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
yarborg
18 years ago
Office is one of the few applications that slipstream the updates into memory and then after reboot fully apply them. So even if a user is using office at the time it should still install the update fine. In fact you can't check to see if the Office Applications are in use with Wise.
However, in the future you can check if an exe is in use pretty easily. You can copy the below text and paste it into Wise to see how this is done. I am using notepad.exe as an example.
item: Remark
Text=EXAMPLE SCRIPT TO CHECK FOR A FILE IN USE BEFORE CONTINUING AN INSTALLATION
end
item: Remark
end
item: Remark
Text=CHECK IF THE FILE IS IN USE
end
item: Remark
Text=NOTE: THIS DOESN'T ALWAYS WORK IF THE EXE IS SIMPLY IN MEMORY BUT NOT BEING ACCESSED LIKE FOR OFFICE APPLICATIONS
end
item: Remark
end
item: Custom Script Item
Filename=Check In-use File.wse
Variable Name1=_INUSE_VAR_
Variable Value1=EXCEL_INUSE
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name3=_INUSE_PATH_
Variable Value3=%SYS32%\NOTEPAD.EXE
end
item: If/While Statement
Variable=EXCEL_INUSE
Value=IN-USE
Flags=00000100
end
item: Remark
Text=HERE IS WHERE YOU WOULD DISPLAY YOUR PROMPT TO THE USER
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Value1=AB
Variable Name2=_WIDTH_
Variable Value2=250
Variable Name3=_MSG_TITLE_
Variable Value3=FILES IN USE
Variable Name4=HELPFILE
Variable Value4=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name5=_OPTION_
Variable Value5=B
Variable Name6=_MSG_TEXT_
Variable Value6=THE INSTALLATION CAN NOT PROCEED UNLESS THE FOLLOWING PROGRAMS ARE CLOSED: EXCEL
Variable Name7=_Y_POS_
Variable Name8=_HEIGHT_
Variable Value8=150
Variable Name9=_X_POS_
end
item: Remark
end
item: If/While Statement
Variable=EXCEL_INUSE
Value=IN-USE
Flags=00110100
end
item: Custom Script Item
Filename=Check In-use File.wse
Variable Name1=_INUSE_VAR_
Variable Value1=EXCEL_INUSE
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name3=_INUSE_PATH_
Variable Value3=%SYS32%\NOTEPAD.EXE
end
item: Remark
Text=PAUSE FOR A LITTLE WHILE SO PROCESSOR TIME ISN'T HAMMERED THEN CHECK AGAIN
end
item: Custom Script Item
Filename=Pause.wse
Variable Name1=_PAUSE_TIME_
Variable Value1=500
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
end
item: End Block
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Name2=_WIDTH_
Variable Name3=_MSG_TITLE_
Variable Value3=
Variable Name4=HELPFILE
Variable Value4=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name5=_OPTION_
Variable Value5=A
Variable Name6=_MSG_TEXT_
Variable Name7=_Y_POS_
Variable Name8=_HEIGHT_
Variable Name9=_X_POS_
end
item: End Block
end
item: Remark
end
item: Display Message
Title=DONE
Text=INSTALL COMPLETE
end
However, in the future you can check if an exe is in use pretty easily. You can copy the below text and paste it into Wise to see how this is done. I am using notepad.exe as an example.
item: Remark
Text=EXAMPLE SCRIPT TO CHECK FOR A FILE IN USE BEFORE CONTINUING AN INSTALLATION
end
item: Remark
end
item: Remark
Text=CHECK IF THE FILE IS IN USE
end
item: Remark
Text=NOTE: THIS DOESN'T ALWAYS WORK IF THE EXE IS SIMPLY IN MEMORY BUT NOT BEING ACCESSED LIKE FOR OFFICE APPLICATIONS
end
item: Remark
end
item: Custom Script Item
Filename=Check In-use File.wse
Variable Name1=_INUSE_VAR_
Variable Value1=EXCEL_INUSE
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name3=_INUSE_PATH_
Variable Value3=%SYS32%\NOTEPAD.EXE
end
item: If/While Statement
Variable=EXCEL_INUSE
Value=IN-USE
Flags=00000100
end
item: Remark
Text=HERE IS WHERE YOU WOULD DISPLAY YOUR PROMPT TO THE USER
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Value1=AB
Variable Name2=_WIDTH_
Variable Value2=250
Variable Name3=_MSG_TITLE_
Variable Value3=FILES IN USE
Variable Name4=HELPFILE
Variable Value4=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name5=_OPTION_
Variable Value5=B
Variable Name6=_MSG_TEXT_
Variable Value6=THE INSTALLATION CAN NOT PROCEED UNLESS THE FOLLOWING PROGRAMS ARE CLOSED: EXCEL
Variable Name7=_Y_POS_
Variable Name8=_HEIGHT_
Variable Value8=150
Variable Name9=_X_POS_
end
item: Remark
end
item: If/While Statement
Variable=EXCEL_INUSE
Value=IN-USE
Flags=00110100
end
item: Custom Script Item
Filename=Check In-use File.wse
Variable Name1=_INUSE_VAR_
Variable Value1=EXCEL_INUSE
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name3=_INUSE_PATH_
Variable Value3=%SYS32%\NOTEPAD.EXE
end
item: Remark
Text=PAUSE FOR A LITTLE WHILE SO PROCESSOR TIME ISN'T HAMMERED THEN CHECK AGAIN
end
item: Custom Script Item
Filename=Pause.wse
Variable Name1=_PAUSE_TIME_
Variable Value1=500
Variable Name2=HELPFILE
Variable Value2=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
end
item: End Block
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Name2=_WIDTH_
Variable Name3=_MSG_TITLE_
Variable Value3=
Variable Name4=HELPFILE
Variable Value4=C:\Program Files\Wise Package Studio\HELP\WiseScriptEditor.chm
Variable Name5=_OPTION_
Variable Value5=A
Variable Name6=_MSG_TEXT_
Variable Name7=_Y_POS_
Variable Name8=_HEIGHT_
Variable Name9=_X_POS_
end
item: End Block
end
item: Remark
end
item: Display Message
Title=DONE
Text=INSTALL COMPLETE
end
Posted by:
jamal1976
18 years ago
Posted by:
yarborg
18 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.