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.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
cserrins
6 years ago
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.
Comments:
-
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. - ceasar.trejo 6 years ago
-
Would make a great blog post to outline how you created the taskbar.xml and then integrate into the SDA. - cserrins 6 years ago
-
I would love to see how you did that! We generally remove Microsoft Edge, Mail, and the Microsoft store from the taskbar and then add Internet Explorer. I would like to automate that. - abratton 6 years ago
-
https://www.itninja.com/blog/view/import-startlayout-kace-sda
I've been standardising Windows 10 lately through scripted installations, hopefully my blog will help anyone out regarding Start-Layout. : ) - Ziggi 6 years ago -
I apologize for not responding sooner, I had a last minute project come up. I will add the steps I took to complete this. - ceasar.trejo 6 years ago