Scripting Question

Unzip File to a Directory Postinstall

Is it possible to unzip or copy a file to a specific directory using a post install task? I have an XML that customizes the taskbar and I need it in a certain directory and then if possible deleted. Any help will be greatly appreciated.

Comments

All Answers

Create a bat file with xcopy file.xml /path/to/directory and include whichever commandline switches to xcopy you would want to use. Then take that bat file and your xml file and zip the 2 of them up. Upload them to the K2 as an application task and put the name of your bat file as the full command line field.

I'm not sure just placing the .xml file in a location will make it take the taskbar customization, don't you have to run something else? I was thinking you would have to do this as a midlevel and run some command to make it accept the .xml file.

Thank you, This worked out perfectly. xcopy adds the XML file to the directory I need it to be in. When the user is logged in, it sets the taskbar the way I want and then I delete the XML to give the user the ability to customize. I am still debating on this part. If I leave the XML file in place, no matter what the user removes or places on the taskbar, on restart it goes back to what I have set in the file.

Share

This website uses cookies.
By continuing to use this site and/or clicking the "Accept" button you are providing consent
Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our
websites or when you do business with us. For more information about our
Privacy Policy and our data protection
efforts, please visit
GDPR-HQ