Wise Wrapper for Customized User Prompts
Attached is a wise wrapper that you can insert your own custom graphic for your company, with an option to delay 15,30,45 or 60 minutes and a script that runs in the background that "kills" taskmanager if it is opened. They could still use taskkill, but if they are that savy, then they'd probably find another way around it anyway. You'll need to modify the paths of the VBS scripts and you'll also need to modify the Custom Dialog screen with your image.

I'm not worthy, I'm not worthy!
Excellent! Thanks Screenbert!
Thanks,
Kyle
Symantec Trusted Advisor
If your question has been resolved, please be sure to click "Mark as Solution"! Thank you.
Screenbert, Maybe we're just
Screenbert,
Maybe we're just dumb...but we're having some trouble figuring out how to use this. How would we go about customizing the logo, and more importantly setting the command to execute (or does it only accept a single .exe with no switches)? Also will the exit code from the installed application get returned to Software Delivery once the wrapper completes its task?
Thanks,
Kyle
Symantec Trusted Advisor
If your question has been resolved, please be sure to click "Mark as Solution"! Thank you.
Graphics
For the graphics issues do this:
1 )Find the line that says Custom Dialog %APPTITLE% and double click. (Custom Dialog Editor Appears)
2 ) Next double click on the grey area to the left of the text. (Graphic Control Settings Appears)
3 ) On the graphics pathname specify your image. It should be 285px wide by 193px heigh.
4 ) Click OK.
For the command to execute. just add Excute Program on the left, for each program you wish to execute. I forget how to grab the error codes. I'll get back to you on that one.
Screenbert
Error codes
Try the follwoing template to grab error codes:
=======================================
Set PROCEXITCODE to %PROCEXITCODE%
If you want to execute an application then
Execute Application (Wait)
Set Variable EXITCODE to %PROCEXITCODE%
if EXITCODE = 0 then
Exit Installation 0
Else
If if EXITCODE = 3010 then
Exit Installation 3010
Else
Exit Installation 1
End
End
========================================
Thanks,
Eshwar
Thanks,
Eshwar
I would like to add some
I would like to add something here, Exit code of successfull installation are 0 or 3010 and the failure Exit codes are many due to different reasons.
Here "Exit Installation 1" represents to the failure (i think.) but not the application installation Exit code. what so ever may be the application exit code apart from 0 and 3010 this script will give you exit code of 1, actually it is better to get exact failure exit code which will help in troubleshooting.
Thanks,
Munna
I don't disagree with
I don't disagree with you!
But there is a limitation with "Exit Installation". It only accepts non-negetive integers. So it will not accept %PROCEXITCODE% as a value.
The only workaround is to display the error code. You can actually display error code other than 0, 3010 using "Display Message". You can use the following stmt in display message>
Display Message %APPTITLE% installation return an error code: %PROCEXITCODE%
That way, you can atleast come to know the exact error code.
=======================================
Set PROCEXITCODE to %PROCEXITCODE%
If you want to execute an application then
Execute Application (Wait)
Set Variable EXITCODE to %PROCEXITCODE%
if EXITCODE = 0 then
Exit Installation 0
Else
If if EXITCODE = 3010 then
Exit Installation 3010
Else
Display Message %APPTITLE% installation return an error code: %PROCEXITCODE%
Exit Installation 1
End
End
========================================
Thanks,
Eshwar
File could not be opened when compile the script
When I compile example.wse, it says the file could not be opened while wisescript package editor tries to compressing killloop.vbs and GetLoggedOnUser.vbs. I copied all the file in one folder, and changed vbscript path to .\ in the installation script. Is there anything I did incorrect?
one more
I have made this working, and it is a excellent solution. However I found that some users ignored the notice and shut down the computer straight away, and this causes the installation does not happen. Is there a method to stop user shutting down the computer?
Would you like to reply?
Login or Register to post your comment.