This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Text file change not working
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2012
05:38 PM
Text file change not working
I'm trying to modify a bunch of web.config settings based on user response and trying to utilize the built-in text file changes process. I set the name of my edit boxes into property manager with blank values and then set the replace with to the edit controls name but the replacement does not function. Is there a better way to pass the user's info at runtime? I tried the xml file change as well but IS barfs when I try to load it.
Thanks for any help!
Thanks for any help!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 20, 2012
08:27 AM
Which project type are you using? And did you use the property in a dialog somewhere, to allow end users to specify the value? Is the property name that you are using a public property (that is, all uppercase)?
Here's a help topic that explains how to use properties with text file changes:
Using Windows Installer Properties to Dynamically Modify Text Files
Here's a help topic that explains how to use properties with text file changes:
Using Windows Installer Properties to Dynamically Modify Text Files
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2012
10:32 AM
I'm currently trying this in a regular MSI (but have tried MSI IS and IS as well). I don't see the setup.rul listed in the installscript section. I have a edit control named editSMTP and the property is set to SMTPSERVER; this is the control that I'm prompting the user for input.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 25, 2012
09:59 AM
It sounds like you are using a Basic MSI project.
I don't think I understand why you are looking for a Setup.rul file. Are you trying to follow the instructions in the Using Windows Installer Properties to Dynamically Modify Text Files help topic? The Basic MSI instructions in that help topic do not involve using a Setup.rul. file.
Can you post screen shots that show how you have the changes configured in the Text File Changes view?
I don't think I understand why you are looking for a Setup.rul file. Are you trying to follow the instructions in the Using Windows Installer Properties to Dynamically Modify Text Files help topic? The Basic MSI instructions in that help topic do not involve using a Setup.rul. file.
Can you post screen shots that show how you have the changes configured in the Text File Changes view?