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: Constants in inx file
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
‎Mar 30, 2011
09:51 AM
Constants in inx file
Hi folks,
I'm looking for a way to add constant strings in inx files.
Background: We identify the version of a file with a tool that searches in a file for a certain string (e.g. "Version") and everything behind this string represents the file version, for example: A file contains:
Version 1120B => The tool returns the version 1120B.
In IS3 it was possible to define a constant in a source file and this constant was available in the ins file. This seems to be impossible for inx files.
Does anyone have an idea, how this can be solved?
Thanks in advance.
Johannes
I'm looking for a way to add constant strings in inx files.
Background: We identify the version of a file with a tool that searches in a file for a certain string (e.g. "Version") and everything behind this string represents the file version, for example: A file contains:
Version 1120B => The tool returns the version 1120B.
In IS3 it was possible to define a constant in a source file and this constant was available in the ins file. This seems to be impossible for inx files.
Does anyone have an idea, how this can be solved?
Thanks in advance.
Johannes
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 30, 2011
06:33 PM
You should be able to do something like this:
You can then use STRING_CONST_NAME anywhere a string value can be used.
#define STRING_CONST_NAME "Hello, world"
You can then use STRING_CONST_NAME anywhere a string value can be used.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2011
03:53 AM
Thanks Josh for you response, but, it doesn't seem to work.
I added your example
#define STRING_CONST_NAME "Hello, world"
to my code, recompiled it and checked the inx file with a hex editor. Couldn't find the defined string. Any other ideas?
Edit:
I just compared two inx files I compiled from two rul files that differed in one character. I also found 2 bytes changed in the inx but can't interpret the byte as the original character.
Thanks.
Johannes
I added your example
#define STRING_CONST_NAME "Hello, world"
to my code, recompiled it and checked the inx file with a hex editor. Couldn't find the defined string. Any other ideas?
Edit:
I just compared two inx files I compiled from two rul files that differed in one character. I also found 2 bytes changed in the inx but can't interpret the byte as the original character.
Thanks.
Johannes
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 31, 2011
11:19 AM
The inx file is encrypted so there won't be any readable strings in the file. The InstallScript engine decrypts the file at runtime before loading and running the script.