/build/static/layout/Breadcrumb_cap_w.png

installscript to find and replace an element in xml file

hi all,
I want to edit a config file on the system via my package using the existing functionality within msi's.
i am installing the package on a windows 2008 server machine.
Using any properties\standard tables causes issue as the file i need to edit is C:\Windows\System32\inetsrv\config\applicationHost.config. When the msi is installing this gets overwritten with c:\windows\syswow64. Because of this i cannot use the standard tables. Its really frustrating. I have tried all the predefined folders such as systemfolder\system32folder\ etc. Even if i hardcode the destination it still gets replaced with syswow64.

So, i have turned to installscript and hope to get my hands on a functions that finds and removes an element within an config file. i do have a string find and replace function but this does not work.
here is the element i want to remove <add segment="bin" />

any help would be great!
thx

0 Comments   [ + ] Show comments

Answers (1)

Posted by: anonymous_9363 14 years ago
Red Belt
0
If you can switch your allegiance to VBScript (or are able to convert VBS to InstallScript), there are many examples out there which use the MS XML Parser object to create elements, attributes and so on.

BTW, there is a separate 'Scripting' forum on AppDeploy.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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