[wpkg-users] Profile inconsitency: Package with ID 'imageresize' is listed in profile but ...
Rainer Meier
r.meier at wpkg.org
Tue May 20 13:09:44 CEST 2008
Hi Jose,
Jose Cortijo wrote:
> ok, it works perfect now.
> Now just appear before all the process a message saying that the file is
> already in c:\windows\download installation, if I want to replace or not
> that file? any way to overwrite always??
>
> but if I say yes, the package gets removed.
I don't know exactly why you get this message. Let's have a look at the
package definition once again:
> <package
> id="imageresize"
> name="Image Resize"
> revision="1"
> reboot="false"
> priority="100"
> notify="false"
> execute="always">
>
>
> <!--
> notify="false" - does not notify the user (with "true" user
> would be notified)
> execute="always" - always executes "install cmd" - sets time
> in this example
> execute="once" - executes only once, and never again
> -->
> <check type="uninstall" condition="exists" path="Image
> Resizer Powertoy for Windows XP" />
>
> <install
>
cmd="\\delchnpek-fs002\wpkg-1.0.2\software\powertoys\ImageResizerPowertoySetup.exe
> /S /v/qn" />
> <remove cmd='msiexec /qb /l* c:\netinst\logs\powertoy.log
> x{1CB92574-96F2-467B-B793-5CEB35C40C29}' />
>
> </package>
I see some "glitches" here:
1. execute="always"
This attribute within the package definition should be set only if you
wish that the package is re-installed on each WPGK run. I recommend to
remove it in this case
2. remove command
You use "msiexec /qb /l* c:\netinst\logs\powertoy.log
/x{1CB92574-96F2-467B-B793-5CEB35C40C29}"
Probably it would be a good idea to replace /qb by /qn parameter.
<package
id="imageresize"
name="Image Resize"
revision="1"
reboot="false"
priority="100"
notify="false">
<check type="uninstall" condition="exists" path="Image
Resizer Powertoy for Windows XP" />
<install
cmd="\\delchnpek-fs002\wpkg-1.0.2\software\powertoys\ImageResizerPowertoySetup.exe
/S /v/qn" />
<remove cmd='msiexec /qn /l* c:\netinst\logs\powertoy.log
/x{1CB92574-96F2-467B-B793-5CEB35C40C29}' />
</package>
NOTE: Just pasted this one - not tested.
br,
Rainer
More information about the wpkg-users
mailing list