<font size=3>Dear all,</font>
<p><font size=3>we just changed fileserver, and so I need to change the
value of %SOFTWARE% to reflect the new situation. We use wpkg and
wpkg-gp. </font>
<p><font size=3>Although I changed the %SOFTWARE% from the old IP (172.16.1.2)
to the new one (172.16.15.33), the old ip still sometimes shows up, which
drives me crazy...</font>
<p><font size=3>demo package:</font>
<br><font size=3><package </font>
<br><font size=3> id="office" </font>
<br><font size=3> name="Microsoft
Office 2013" </font>
<br><font size=3> revision="201302192224"
</font>
<br><font size=3> reboot="false"
</font>
<br><font size=3> priority="10"></font>
<br><font size=3> </font>
<br><font size=3> <variable name="PKG_VERSION" value="15"
/></font>
<br><font size=3> <variable name="PKG_SOURCE"
value="%SOFTWARE%\office\OFFICE2013\setup.exe"/></font>
<br><font size=3> </font>
<br><font size=3> <check type="uninstall" condition="exists"
path="Microsoft Office Standard 2013" /></font>
<br><font size=3> </font>
<br><font size=3> <install cmd='cmd /c set SOFTWARE=%SOFTWARE%'/></font>
<br><font size=3> <install cmd='cmd /c %PKG_SOURCE%' ><exit
code="1641" /><exit code="3010" /><exit
code="1" /></install></font>
<br><font size=3> </font>
<br><font size=3> <!--upgrade include="remove" /--></font>
<br><font size=3> <upgrade include="install" /></font>
<br>
<br><font size=3> <remove cmd='cmd /c start "" /WAIT
%PKG_SOURCE% /uninstall ProPlus '/></font>
<br>
<br><font size=3></package></font>
<br>
<br><font size=3>Notice the install command i added for debugging: <install
cmd='cmd /c set SOFTWARE=%SOFTWARE%'/> which, as you can see in the
log underneath, gets expanded properly. The 'real' install command
gets expanded badly, to the old IP, even though I cannot find a declaration
of SOFTWARE to that old IP anywhere anymore... Basically, there are
two problems: one line gets expanded properly, another not, and that old
ghost ip from the past reappears... Anyone any ideas please?</font>
<br>
<br><font size=3>Kind regards, Juergen</font>
<p><font size=3>Extract from the log:</font>
<br><font size=3>2013-02-19 23:54:32, DEBUG : WPKG 1.3.1-RC12 starting...</font>
<br>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Going to install package
'Microsoft Office 2013' (office), Revision 201302192224, (execute flag
is '', notify flag is 'true').</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Package 'Microsoft
Office 2013' (office): Not yet processed during this session.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Package 'Microsoft
Office 2013' (office): Not in local package database; Marking for installation.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Package 'Microsoft
Office 2013' (office): Prepared for installation.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Checking existence
of package: Microsoft Office 2013</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Reading variables
from package 'Microsoft Office 2013'.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Got variable 'PKG_VERSION'
of value '15'</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Got variable 'PKG_SOURCE'
of value '%SOFTWARE%\office\OFFICE2013\setup.exe'</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Reading variables
from profile[s]</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Reading variables
from hosts[s]</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Uninstall entry for
Microsoft Office Standard 2013 missing: test failed.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Searching for previously
executed checks with attributes type='uninstall', condition='exists', path='Microsoft
Office Standard 2013'</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Unable to find any
previously executed checks with these attributes.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Saving unsorted settings
to 'C:\WINDOWS\system32\wpkg.xml'.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Saving XML : C:\WINDOWS\system32\wpkg.xml</font>
<br><font size=3>2013-02-19 23:55:15, INFO : Package 'Microsoft
Office 2013' (office): Not installed (checks failed). Preparing installation.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Installation of references
(dependencies) for 'Microsoft Office 2013' (office) successfully finished.</font>
<br><font size=3>2013-02-19 23:55:15, INFO : Installing 'Microsoft
Office 2013' (office)...</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Reading variables
from package 'Microsoft Office 2013'.</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Got variable 'PKG_VERSION'
of value '15'</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Got variable 'PKG_SOURCE'
of value '%SOFTWARE%\office\OFFICE2013\setup.exe'</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Reading variables
from profile[s]</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Reading variables
from hosts[s]</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Install type: install</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Fetched 2 install
command(s).</font>
<br><font size=3>2013-02-19 23:55:15, DEBUG : Executing command:
'cmd /c set SOFTWARE=%SOFTWARE%' ('cmd /c set SOFTWARE=\\172.16.15.33\install').</font>
<br><font size=3>2013-02-19 23:55:16, DEBUG : Command in installation
of Microsoft Office 2013 returned exit code [0]. Success.</font>
<br><font size=3>2013-02-19 23:55:16, DEBUG : Executing command:
'cmd /c %PKG_SOURCE%' ('cmd /c \\172.16.1.2\install\office\OFFICE2013\setup.exe').</font>
<br><font size=3>2013-02-19 23:55:17, INFO : Command 'cmd
/c %PKG_SOURCE%' returned exit code [1]. This exit code indicates
success.</font>
<br><font size=3>2013-02-19 23:55:17, INFO : Command in installation
of Microsoft Office 2013 returned exit code [1]. This exit code indicates
success.</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Checking existence
of package: Microsoft Office 2013</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Reading variables
from package 'Microsoft Office 2013'.</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Got variable 'PKG_VERSION'
of value '15'</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Got variable 'PKG_SOURCE'
of value '%SOFTWARE%\office\OFFICE2013\setup.exe'</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Reading variables
from profile[s]</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Reading variables
from hosts[s]</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Uninstall entry for
Microsoft Office Standard 2013 missing: test failed.</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Searching for previously
executed checks with attributes type='uninstall', condition='exists', path='Microsoft
Office Standard 2013'</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Found 1 previously
executed checks.</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Replacing check results
of previous evaluation</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Saving unsorted settings
to 'C:\WINDOWS\system32\wpkg.xml'.</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Saving XML : C:\WINDOWS\system32\wpkg.xml</font>
<br><font size=3>2013-02-19 23:55:17, ERROR : Could not process
(install) Microsoft Office 2013.|Failed checking after installation.</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Cleaning up temporary
downloaded files</font>
<br><font size=3>2013-02-19 23:55:17, DEBUG : Restoring previous
environment.</font>