![]() 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 # Find the Environment.xml file and open 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 |