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
- :
- Re: INI file change problem
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
Jun 02, 2014
11:48 AM
INI file change problem
During an install I'm modifying an INI file to add some new keys. The keys are being added; but, I'm also getting an '= TRUE' line added to the file before the new keys.
Before changes:
[Services]
StabilizationEnabled = True
StabilizationIterations = 10
StabilizationIdleThreshold = 300
StabilizationPercentage = 1.5
SQCMeasurementEnabled = False
SQCMeasurementInterval = 36000
StabilizationRecipe = C:\ProgramData\Bruker\LumiMap\Config\StabilizationRecipe.elrcp
SQCMeasurementRecipe = C:\ProgramData\Bruker\LumiMap\Config\SQCMeasurementRecipe.elrcp
StartupRecipe = C:\ProgramData\Bruker\LumiMap\Config\Startup.elrcp
[VoltageCorrection]
MIN_NUM_POINTS = 10
After changes:
[Services]
StabilizationEnabled = True
StabilizationIterations = 10
StabilizationIdleThreshold = 300
StabilizationPercentage = 1.5
SQCMeasurementEnabled = False
SQCMeasurementInterval = 36000
StabilizationRecipe = C:\ProgramData\Bruker\LumiMap\Config\StabilizationRecipe.elrcp
SQCMeasurementRecipe = C:\ProgramData\Bruker\LumiMap\Config\SQCMeasurementRecipe.elrcp
StartupRecipe = C:\ProgramData\Bruker\LumiMap\Config\Startup.elrcp
= True <= Extra line
Vacuum=simulated <= New Key
Spectrometer=simulated <= New Key
Clamp=simulated <= New Key
SourceMeter=simulated <= New Key
Stage=simulated <= New Key
[VoltageCorrection]
MIN_NUM_POINTS = 10
Any ideas why '= TRUE' is being added to this file?
Before changes:
[Services]
StabilizationEnabled = True
StabilizationIterations = 10
StabilizationIdleThreshold = 300
StabilizationPercentage = 1.5
SQCMeasurementEnabled = False
SQCMeasurementInterval = 36000
StabilizationRecipe = C:\ProgramData\Bruker\LumiMap\Config\StabilizationRecipe.elrcp
SQCMeasurementRecipe = C:\ProgramData\Bruker\LumiMap\Config\SQCMeasurementRecipe.elrcp
StartupRecipe = C:\ProgramData\Bruker\LumiMap\Config\Startup.elrcp
[VoltageCorrection]
MIN_NUM_POINTS = 10
After changes:
[Services]
StabilizationEnabled = True
StabilizationIterations = 10
StabilizationIdleThreshold = 300
StabilizationPercentage = 1.5
SQCMeasurementEnabled = False
SQCMeasurementInterval = 36000
StabilizationRecipe = C:\ProgramData\Bruker\LumiMap\Config\StabilizationRecipe.elrcp
SQCMeasurementRecipe = C:\ProgramData\Bruker\LumiMap\Config\SQCMeasurementRecipe.elrcp
StartupRecipe = C:\ProgramData\Bruker\LumiMap\Config\Startup.elrcp
= True <= Extra line
Vacuum=simulated <= New Key
Spectrometer=simulated <= New Key
Clamp=simulated <= New Key
SourceMeter=simulated <= New Key
Stage=simulated <= New Key
[VoltageCorrection]
MIN_NUM_POINTS = 10
Any ideas why '= TRUE' is being added to this file?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 02, 2014
05:16 PM
I've discovered why '= TRUE' is being written to the ini file. When I looked at the IniFile table, the first entry in the table had no Key name and a value of TRUE. I removed this entry from the table and rebuilt the project and now the modified ini file doesn't contain the extra '= TRUE' line.
While the problem if 'fixed', it's still unclear how this entry ended up in the IniFile table.
While the problem if 'fixed', it's still unclear how this entry ended up in the IniFile table.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)