I didn't make any changes to this to make it easier to read or copy, literally just copied and pasted the snippet. It's not a complete script, but the general concept of "open the zip file, access environment.xml, make a change, rezip things back up" should work.ĮDIT: TO be clear there are some variables declared at the top of my file that you'll need to declare to make this work, stuff like $tempfile and $LocalFile. That's a snippet from a script I wrote that replaced the word "CustomName" on the panel with a variable that was grabbed earlier in the script. ::CreateEntryFromFile($zip, $tempfile, "swf/Environment.xml") | Out-Null # Delete the existing Environment.xml file inside the vtz # Open a Stream Writer and write the xml data to a new temporary file $text = $text -replace "CustomName", $CustomName # Replace the existing button text ('CustomName') with the name the user provided $reader = New-Object IO.StreamReader($stream) # Read the Environment.xml file into memory (Note: The selected touch screen where the design will be imported, has to be exactly the same type and model as the touch screen used in VT Pro to create the design) In the menu that opens choose Import Design. # Find the Environment.xml file and open it Select the touch screen and right-click on it. Something like this # Open the vtz as a zip fileĪdd-Type -assembly "system.io.compression.filesystem" ![]() ![]() ![]() On the plus side it shouldn't be too difficult to script editing environment.xml in powershell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |