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
- :
- Format of paths in ini files
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
‎Jan 29, 2008
05:54 AM
Format of paths in ini files
I have to define in an ini file the path to some configuration files. I managed to do that within an installScript MSI. InstallShield creates entries such as:
[editor]
configurationFile=C:\Program Files\myProgram\...
(C:\Program Files\myProgram being my [INSTALLDIR]
Unfortunately, the application can't handle this format as it interprets the '\' characters. The application reading this entry would need either a double backslash '\\' or forward slashes '/'.
Is there a way to generate the paths with \\ or / instead of \, or how could I solve the problem?
[editor]
configurationFile=C:\Program Files\myProgram\...
(C:\Program Files\myProgram being my [INSTALLDIR]
Unfortunately, the application can't handle this format as it interprets the '\' characters. The application reading this entry would need either a double backslash '\\' or forward slashes '/'.
Is there a way to generate the paths with \\ or / instead of \, or how could I solve the problem?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2008
11:55 AM
Instead of using [INSTALLDIR] directly, perhaps create a custom action (InstallScript action using MsiGetProperty, StrReplace, and MsiSetProperty, for example) that makes your own property [INSTALLDIR_DOCTORED_UP] with the desired slash format, and then use that property in the INI view?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2008
01:00 AM
Thank you Robert
I will try that, calling a custom action somewhere after selecting the target install dir to create a new installer property which I hopefully would be able to use in the ini-files.
I will try that, calling a custom action somewhere after selecting the target install dir to create a new installer property which I hopefully would be able to use in the ini-files.