/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: cserrins 5 years ago
Red Belt
0
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 5 years ago
    • Would make a great blog post to outline how you created the taskbar.xml and then integrate into the SDA. - cserrins 5 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 5 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 5 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 5 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

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