/build/static/layout/Breadcrumb_cap_w.png

environment variable in xml file

is it possible ot pass environment variable in xml file ?

i have one xml file, which is having hotcode entrie like "C:\Users\USERNAME\AppData\APPNAME\AUDIT.INI"

I need to set as environment like "%userprofile%\appdata\APPNAME\AUDIT.INI"

any body using environment variables throuh xml file.


4 Comments   [ + ] Show comments
  • are you using an MSI and AdminStudio (Installshield?)
    Then this is very easy... - jaybee96 10 years ago
  • we are using wise - vjay 10 years ago
  • can you explain how we can do with adminstudio ? - vjay 10 years ago
  • There's no reason why your XML file couldn't contain data in any format, including enclosed with '%'. The problem arises with how you deal with the data having read it.

    Wise has no native handling for XML files (or any other text file apart from INIs, come to that). You'll need to handle that in a scripted Custom Action. There are some very good class files around which make using Microsoft's XML object much easier.

    InstallShield does handle XML files, wherein you simply use the standard formatted text as the "input". It's all in the help file, obviously. I think it's unlikely, though, that if you're a Wise shop that your employer will want to spring another few thousand dollars on licenses for a new product just to get XML handling. Of course, given that Wise is a dead product line, now is probably a good time to be looking at migrating, albeit you'll be about 18 months late. - anonymous_9363 10 years ago

Answers (0)

Be the first to answer this question

 
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