http://bugzilla.wpkg.org/show_bug.cgi?id=267 Summary: In a system where a package was installed and after uninstalled, the 3rd execution of wpkg.js cause the installation and the uninstallation of this package instead of no action Product: WPKG Version: other Platform: PC OS/Version: other Status: NEW Severity: major Priority: P2 Component: wpkg.js AssignedTo: mangoo at wpkg.org ReportedBy: wpkg at scuolacarovana.it QAContact: wpkg-users at lists.wpkg.org Created attachment 234 --> http://bugzilla.wpkg.org/attachment.cgi?id=234 snapshot of log files and wpkg.xml files I'm new of wpkg and i've played with the basic config and the Dia example package. So, i've setup the environment and i've tried to install and uninstall Dia on a target PC. wpkg.js version: 1.3.0 SO: Win7 Pro Client: both WPKG-GP and direct call via cscript # host.xml: <host name="win7pro" profile-id="profilo-comune"> <profile id="profilo-specifico" /> </host> # profile.xml: <profile id="profilo-comune"> <variable name="SOFTWARE" value="\\debian-host1\dallolio\wpkg\software" /> <package package-id="dia" /> </profile> # package.xml: <package id="dia" name="Dia Diagram Editor" revision="0.97.2-20111223" reboot="false" priority="1"> <check type="logical" condition="or"> <check type="file" condition="exists" path="%PROGRAMFILES%\dia\dia-0.97.2-uninstall.exe" /> <check type="file" condition="exists" path="%PROGRAMFILES(x86)%\dia\dia-0.97.2-uninstall.exe" /> </check> <install cmd='%SOFTWARE%\dia\dia-setup-0.97.2.exe /S' /> <upgrade cmd='%SOFTWARE%\dia\dia-setup-0.97.2.exe /S' /> <remove cmd='%PROGRAMFILES%\dia\dia-0.97.2-uninstall.exe /S' /> <remove cmd='%PROGRAMFILES(x86)%\dia\dia-0.97.2-uninstall.exe /S' /> </package> I've found this issue by the wpkg-gp client and after i've debug in cscript # Step 1: Starting in a clean system > cscript \\server\path\wpkg.js /synchronize /query:i : package currently installed: [none] so, from an administrative cmd.exe shell i've run > cscript \\server\path\wpkg.js /synchronize /debug and the dia package went correctly installed (see step1_*.* attachments) # Step 2: from profile.xml, i've remove the dia package line: <profile id="profilo-comune"> <variable name="SOFTWARE" value="\\debian-host1\dallolio\wpkg\software" /> </profile> and i've run the same command: > cscript \\server\path\wpkg.js /synchronize /debug the dia prg was succesfully removed (see step2_*.* attachments) i've manually removed the c:\%programfiles%\dia folder because uninstaller not did # Step3: i've run the same command > cscript \\server\path\wpkg.js /synchronize /debug and i was especting a no action result instead an installation and a uninstallation action (see step3_*.* attachments) Sorry in advance if the problem is in my side... Tnx -- Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. |