gdanko
05-28-2003, 05:04 PM
I have an .ini file that determines how my software deployment is run. One of the parameters in the .ini file is NewMachineConfig.
-- Begin Snippet --
[Global]
NewMachineConfig = 0
-- End Snippet --
I have a Log Message that queries the value of this entry. It looks like this:
New machine.config = %READ_INI(C:\deploy.ini,Global,NewMachineConfig)%
When I run that Log Message I get this output:
--------------------Starting Build: 'Deploy.bld'--------------------
Building project step 'Temp'...
New machine.config = 0
Build successfully completed.
So I am able to read this value properly. I have a SourceSafe step that grabs the machine.config file from SourceSafe, but I only want this file to be copied down if the deployment requires it. So in my SourceSafe step I check the "Build only if macro expression" box and put this in place:
%READ_INI(C:\deploy.ini,Global,NewMachineConfig)%
is equal to 1
My .ini file will use a binary for yes|no. VBP grabs this file from SourceSafe regardless of the state of that macro. I've tried it with and without surrounding [ ]'s.
What have I done wrong?
-- Begin Snippet --
[Global]
NewMachineConfig = 0
-- End Snippet --
I have a Log Message that queries the value of this entry. It looks like this:
New machine.config = %READ_INI(C:\deploy.ini,Global,NewMachineConfig)%
When I run that Log Message I get this output:
--------------------Starting Build: 'Deploy.bld'--------------------
Building project step 'Temp'...
New machine.config = 0
Build successfully completed.
So I am able to read this value properly. I have a SourceSafe step that grabs the machine.config file from SourceSafe, but I only want this file to be copied down if the deployment requires it. So in my SourceSafe step I check the "Build only if macro expression" box and put this in place:
%READ_INI(C:\deploy.ini,Global,NewMachineConfig)%
is equal to 1
My .ini file will use a binary for yes|no. VBP grabs this file from SourceSafe regardless of the state of that macro. I've tried it with and without surrounding [ ]'s.
What have I done wrong?