'C:\Program Files' is not a valid integer value
Posted: Fri Aug 12, 2011 1:19 pm
I get this when I run my IA script. I have gotten it in any number of situations and the line number it points to can contain any number of different IA commands.
Initially I thought it was being caused when I executed a dialogue with the modal option off (unchecked like the Progress dialog uses). In that situation it didn't matter what line of code followed the Display Dialog, including a blank line (empty comment), I would get the error. So I went away from using a non-modal dialogue even though I use them without incident in other sections of the same IA script.
Now I get the same error on a Run Program command, even though the command is executing a BAT file that I create in the line before it. Just like with the dialogs, I have done this same command in other sections of my script without issue. I have manually verified that the BAT file exists - it does - so that's not the issue. If I place other IA commands between where I create the BAT file and the Run Program command, it executes those lines without problem.
What is strange is these problems only occur in this one area of my MSI code and no where else. Why would one section of code - which I have event tried relocating - have this issue when no other section of my code does is baffling.
I am truly confused and do not know what else to try to work around the problem.
Initially I thought it was being caused when I executed a dialogue with the modal option off (unchecked like the Progress dialog uses). In that situation it didn't matter what line of code followed the Display Dialog, including a blank line (empty comment), I would get the error. So I went away from using a non-modal dialogue even though I use them without incident in other sections of the same IA script.
Now I get the same error on a Run Program command, even though the command is executing a BAT file that I create in the line before it. Just like with the dialogs, I have done this same command in other sections of my script without issue. I have manually verified that the BAT file exists - it does - so that's not the issue. If I place other IA commands between where I create the BAT file and the Run Program command, it executes those lines without problem.
What is strange is these problems only occur in this one area of my MSI code and no where else. Why would one section of code - which I have event tried relocating - have this issue when no other section of my code does is baffling.
I am truly confused and do not know what else to try to work around the problem.