[wpkg-users] Software always installs before remove

Rainer Meier r.meier at wpkg.org
Wed Dec 14 15:51:35 CET 2011


Hi Heiko,

What you're seeing is the "upgrade-before-remove" feature. It makes sure a 
package is updated to the latest version before uninstall takes place. Thus 
giving system administrators the possibility to fix package issues (e.g. invalid 
remove commands).

You can disable it by configuration or command line switch but I recommend not 
to do so. Disabling this feature might leave you in a very difficult situation 
if you have to fix a package issue before removing a package (e.g. your packages 
completely miss any remove instructions).

Search the list for some discussions on this feature.

In the logs you will see that WPKG internally performs an "installation". The 
installation task checks your current system state and makes sure the package 
installed is correctly installed and up-to-date.
In most cases the installation will just run the checks and detect that the 
package you just removed is installed properly and already up-to-date. So it 
will not perform any action. After this WPKG is going to execute the remove 
commands just as intended; but this way WPKG assures that your remove commands 
are applied on a defined state (application properly installed and updated).

This way you just need to assure that the latest revision of the package 
uninstalls properly and WPKG makes sure that this revision is installed and then 
removes correctly.

br,
Rainer



On 14.12.2011 15:40, Heiko Hollstein wrote:
> I setup WPKG 1.3.0 today and followed exactly the “Quick Installation Guide”
> @wpkg.org.
>
> I’ve added the Dia package and additionaly the firefox 8.0.1 package.
> Installation works fine, but if I remove the two packages from my profiles.xml
> to remove them:
>
> <profile id="Test">
>
> </profile>
>
> The following problem occurs:
>
> it will always install both packages before removing them again – but why ? they
> are not listed within the profiles.xml ?
>
> Is it a bug or a misconfiguration ? But I followed the quick guide …
>
> Here is the log after call “cscript \\path\to\wpkg.js
> <file:///\\path\to\wpkg.js> /synchronize /debug”:
>
> Base directory is '\\daten\wpkg'.
>
> Log level is 255
>
> Trying to read XML files from directory: \\daten\wpkg\profiles
>
> Specified XML directory does not exist: \\daten\wpkg\profiles
>
> Reading XML file: //daten/wpkg/profiles.xml
>
> Trying to read XML files from directory: \\daten\wpkg\hosts
>
> Specified XML directory does not exist: \\daten\wpkg\hosts
>
> Reading XML file: //daten/wpkg/hosts.xml
>
> Trying to read XML files from directory: \\daten\wpkg\packages
>
> Specified XML directory does not exist: \\daten\wpkg\packages
>
> Reading XML file: //daten/wpkg/packages.xml
>
> Reading settings file: C:\Windows\System32\wpkg.xml
>
> Reading XML file: C:/Windows/System32/wpkg.xml
>
> Host operating system: microsoft windows 7 enterprise, , sp1, 6.1.7601
>
> Found network service: {422A12AD-E1E7-4C53-98E7-27A99A2F0745}
>
> Reading DHCP address.
>
> Found DHCP address: 172.16.100.89
>
> Domain Name: mcpm.local
>
> Found computer group: Dom„nencomputer
>
> Found user locale: 407
>
> Found system locale: 407
>
> Host properties: hostname='heiko-vm-win7'
>
> architecture='x64'
>
> os='microsoft windows 7 enterprise, , sp1, 6.1.7601'
>
> ipaddresses='172.16.100.89'
>
> domain name='mcpm.local'
>
> groups='Dom„nencomputer'
>
> lcid='407'
>
> lcidOS='407'
>
> Profiles applying to the current host:
>
> Test
>
> Hosts file contains 2 hosts:
>
> 'name='T1600',profile-id='Test''
>
> 'name='HEIKO-VM-WIN7',profile-id='Test''
>
> Initializing new log file:
> 'C:\Users\H99CF~1.HOL\AppData\Local\Temp\wpkg-heiko-vm-win7.log' in replace mode.
>
> Settings file contains 1 packages:
>
> 'dia'
>
> Packages file contains 6 packages:
>
> 'wpkg1'
>
> 'wpkg2'
>
> 'wpkg3'
>
> 'time'
>
> 'dia'
>
> 'firefox'
>
> Profile file contains 1 profiles:
>
> 'Test'
>
> Using profile(s):
>
> 'Test'
>
> Getting profiles which apply to this node.
>
> Applying profile: Test
>
> Reading variables from hosts[s]
>
> Reading variables from host: name='HEIKO-VM-WIN7',profile-id='Test'
>
> Synchronizing. Number of packages referenced by profile: 0.
>
> Evaluating packages to be removed.
>
> Found installed package 'Dia Diagram Editor' (dia).
>
> Package 'Dia Diagram Editor' (dia): Marked for removal.
>
> Number of packages to remove: 1
>
> Going to install package 'Dia Diagram Editor' (dia), Revision 1, (execute flag
> is '', notify flag is 'true').
>
> Package 'Dia Diagram Editor' (dia): Not yet processed during this session.
>
> Comparing version: '1' <=> '1'.
>
> Checking existence of package: Dia Diagram Editor
>
> Reading variables from hosts[s]
>
> Reading variables from profile[s]
>
> Getting profiles which apply to this node.
>
> Reading variables from profile Test
>
> Reading variables from package 'Dia Diagram Editor'.
>
> The path 'C:\Program Files (x86)\Dia\dia-0.97.1-uninstall.exe' does not exist:
> the test failed.
>
> Saving unsorted settings to 'C:\Windows\System32\wpkg.xml'.false
>
> Saving XML : C:\Windows\System32\wpkg.xml
>
> Package 'Dia Diagram Editor' (dia): Installed but checks failed. Re-Installing.
>
> Package 'Dia Diagram Editor' (dia): Prepared for installation.
>
> Checking existence of package: Dia Diagram Editor
>
> Reading variables from hosts[s]
>
> Reading variables from profile[s]
>
> Reading variables from package 'Dia Diagram Editor'.
>
> The path 'C:\Program Files (x86)\Dia\dia-0.97.1-uninstall.exe' does not exist:
> the test failed.
>
> Searching for previously executed checks with attributes type='file',
> condition='exists', path='%PROGRAMFILES(x86)%\\Dia\\dia-0.97.1-uninstall.exe'
>
> Found 1 previously executed checks.
>
> Replacing check results of previous evaluation
>
> Saving unsorted settings to 'C:\Windows\System32\wpkg.xml'.false
>
> Saving XML : C:\Windows\System32\wpkg.xml
>
> Package 'Dia Diagram Editor' (dia): Not installed (checks failed). Preparing
> installation.
>
> Installation of references (dependencies) for 'Dia Diagram Editor' (dia)
> successfully finished.
>
> Installing 'Dia Diagram Editor' (dia)...
>
> Reading variables from hosts[s]
>
> Reading variables from profile[s]
>
> Reading variables from package 'Dia Diagram Editor'.
>
> Install type: install
>
> Fetched 1 install command(s).
>
> No locale language definition found for message ID 'notifyUserStart' (language
> LCID '407').
>
> Executing command: '%SystemRoot%\System32\msg.exe * /TIME:10 "Automatic software
> deployment is currently updating your system. Please wait until the process has
> finished. Thank you."' ('C:\Windows\System32\msg.exe * /TIME:10 "Automatic
> software deployment is currently updating your system. Please wait until the
> process has finished. Thank you."').
>
> Executing command: '\\daten\wpkg\graphics\dia-setup-0.97.1-2.exe /S'.
>
> Command in installation of Dia Diagram Editor returned exit code [0]. Success.
>
> Checking existence of package: Dia Diagram Editor
>
> Reading variables from hosts[s]
>
> Reading variables from profile[s]
>
> Reading variables from package 'Dia Diagram Editor'.
>
> The path 'C:\Program Files (x86)\Dia\dia-0.97.1-uninstall.exe' exists and is a
> file: the test was successful.
>
> Searching for previously executed checks with attributes type='file',
> condition='exists', path='%PROGRAMFILES(x86)%\\Dia\\dia-0.97.1-uninstall.exe'
>
> Found 1 previously executed checks.
>
> Replacing check results of previous evaluation
>
> Saving unsorted settings to 'C:\Windows\System32\wpkg.xml'.false
>
> Saving XML : C:\Windows\System32\wpkg.xml
>
> Removing currently existing settings node first: 'Dia Diagram Editor' (dia),
> Revision 1.
>
> Removing package id 'dia' from settings.
>
> Adding settings node: 'Dia Diagram Editor' (dia), Revision 1.
>
> Saving sorted settings to 'C:\Windows\System32\wpkg.xml'.true
>
> Adding settings node: 'Dia Diagram Editor' (dia), Revision 1.
>
> Saving XML : C:\Windows\System32\wpkg.xml
>
> Installation of references (chained) for 'Dia Diagram Editor' (dia) successfully
> finished.
>
> Package 'Dia Diagram Editor' (dia): Package and all chained packages installed
> successfully.
>
> Processing (install) of Dia Diagram Editor successful.
>
> Cleaning up temporary downloaded files
>
> Restoring previous environment.
>
> Removing package 'dia'.
>
> Package 'Dia Diagram Editor' (dia): Not yet processed during this session.
>
> Removal of depending packages for 'Dia Diagram Editor' (dia) successfully finished.
>
> Removing Dia Diagram Editor (dia)...
>
> Reading variables from hosts[s]
>
> Reading variables from profile[s]
>
> Reading variables from package 'Dia Diagram Editor'.
>
> Executing command: '%PROGRAMFILES(x86)%\Dia\dia-0.97.1-uninstall.exe /S'
> ('C:\Program Files (x86)\Dia\dia-0.97.1-uninstall.exe /S').
>
> Command returned result: 0
>
> Command in removal of Dia Diagram Editor returned exit code [0]. Success.
>
> Restoring previous environment.
>
> Checking existence of package: Dia Diagram Editor
>
> Reading variables from hosts[s]
>
> Reading variables from profile[s]
>
> Reading variables from package 'Dia Diagram Editor'.
>
> The path 'C:\Program Files (x86)\Dia\dia-0.97.1-uninstall.exe' exists and is a
> file: the test was successful.
>
> Searching for previously executed checks with attributes type='file',
> condition='exists', path='%PROGRAMFILES(x86)%\\Dia\\dia-0.97.1-uninstall.exe'
>
> Found 1 previously executed checks.
>
> Replacing check results of previous evaluation
>
> Saving unsorted settings to 'C:\Windows\System32\wpkg.xml'.false
>
> Saving XML : C:\Windows\System32\wpkg.xml
>
> Checking dia zombie state.
>
> Could not process (remove) Dia Diagram Editor.
>
> Package still installed.
>
> No locale language definition found for message ID 'notifyUserStop' (language
> LCID '407').
>
> Executing command: '%SystemRoot%\System32\msg.exe * /TIME:10 "The automated
> software installation utility has completed installing or updating software on
> your system. No reboot was necessary. All updates are complete."'
> ('C:\Windows\System32\msg.exe * /TIME:10 "The automated software installation
> utility has completed installing or updating software on your system. No reboot
> was necessary. All updates are complete."').
>
>
>
> -------------------------------------------------------------------------
> wpkg-users mailing list archives>>  http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list