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
- :
- Empty values in ini files
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎May 11, 2015
11:12 AM
Empty values in ini files
Hi,
I'm experiencing a problem with ini files in InstallShield : if I add a new keyword with no value in the ini file change view, or if I import ini file with empty values, InstallShield automatically converts empty values into spaces in the IniFile table. If I remove the space directly in IniFile table, InstallShield restores immediatly. As a result, the product installation initialize ini files with spaces instead of empty values.
I want :
[IniSection]
IniKey=
I have (sharp symbolizes a space) :
[IniSection]
IniKey=#
If I upgrade this ini file, regardless the keyword action ("do not overwrite"/"replace old value"), I get a new space :
[IniSection]
IniKey=##
And so on...
To counter this, I've tried to replace empty values in the ini file change view with curly braces ( {} ), as we can do in "set property" custom actions (MSI type number 51) to clear a property. Curly braces appear correctly in the IniFile table, and I have the expected result when installing the product (empty values).
Is this the right way to do this?
Thank you in advance,
Adrien
I'm experiencing a problem with ini files in InstallShield : if I add a new keyword with no value in the ini file change view, or if I import ini file with empty values, InstallShield automatically converts empty values into spaces in the IniFile table. If I remove the space directly in IniFile table, InstallShield restores immediatly. As a result, the product installation initialize ini files with spaces instead of empty values.
I want :
[IniSection]
IniKey=
I have (sharp symbolizes a space) :
[IniSection]
IniKey=#
If I upgrade this ini file, regardless the keyword action ("do not overwrite"/"replace old value"), I get a new space :
[IniSection]
IniKey=##
And so on...
To counter this, I've tried to replace empty values in the ini file change view with curly braces ( {} ), as we can do in "set property" custom actions (MSI type number 51) to clear a property. Curly braces appear correctly in the IniFile table, and I have the expected result when installing the product (empty values).
Is this the right way to do this?
Thank you in advance,
Adrien
(2) Replies
‎May 12, 2015
03:29 AM
Hi,
Take a look at below links. Hope it will be helpful.
http://helpnet.flexerasoftware.com/isxhelp17/ExpressRefINIFileKeywordProp.htm
http://helpnet.flexerasoftware.com/isxhelp17/IHelpISXProperties.htm
Take a look at below links. Hope it will be helpful.
http://helpnet.flexerasoftware.com/isxhelp17/ExpressRefINIFileKeywordProp.htm
http://helpnet.flexerasoftware.com/isxhelp17/IHelpISXProperties.htm
‎May 13, 2015
02:34 AM
Hi,
I received confirmation from Flexera:
Let's go for curly braces, then!
Adrien
I received confirmation from Flexera:
The Ini file changes view ultimately populates the IniFile table and as the value field takes a data type of formatted, using the syntax of formatted data types such as curly braces would be the proper way to do this.
Let's go for curly braces, then!
Adrien