[wpkg-users] office 2013 package+ The parameter is incorrect

Marco Schmidt schmidt at fgcz.ethz.ch
Wed Dec 16 12:50:40 CET 2015


Under Windows you do not need to escape backslashes !!
And Windows is NOT case sensitive.

WPKG is case sensitive in the "check uninstall path string", but this is
not a topic here, I just want to mention it.

Greetings ...
 Marco


On 16.12.2015 11:12, Yanni wrote:
> Hi Rainer, Paul
> 
> I changed the variables to lower case and escaped the backslashes the
> way Rainer suggested but
> no luck. When you can please see my debug log file below:
> 
> ------------------------------------------------------------------------------
> 
> Log level is 255
> Reading host XML files.
> WPKG base path: \\IP\wpkg
> Trying to read XML files from directory: \\IP\wpkg\hosts
> Reading XML file: //IP/wpkg/hosts.xml
> Found 1 host entries.
> Reading profile XML files.
> WPKG base path: \\IP\wpkg
> Trying to read XML files from directory: \\IP\wpkg\profiles
> Reading XML file: //IP/wpkg/profiles.xml
> Found 1 profile entries.
> Reading package XML files.
> WPKG base path: \\IP\wpkg
> Trying to read XML files from directory: \\IP\wpkg\packages
> Reading XML file: //IP/wpkg/packages/office2013.xml
> Found 8 package entries.
> Reading settings file: C:\Windows\System32\wpkg.xml
> WPKG base path: \\IP\wpkg
> Reading XML file: C:/Windows/System32/wpkg.xml
> Host operating system: microsoft windows 7 professional, , sp1, 6.1.7601
> Found network service: {ECB4C6C0-13E4-4951-BF1C-DA6D09E32BAA}
> Reading fixed IP address(es).
> Found fixed IP address: IP
> Not a domain member.
> Message: Unable to fetch computer membership groups. Probably not a
> domain member.
> Found user locale: 809
> Found system locale: 409
> Host properties: hostname='fresh'
> architecture='x86'
> os='microsoft windows 7 professional, , sp1, 6.1.7601'
> ipaddresses='IP'
> domain name=''
> groups=''
> lcid='809'
> lcidOS='409'
> Profiles applying to the current host:
> Post Install
> 
> Hosts file contains 1 hosts:
> 'name='fresh',profile-id='Post Install''
> Initializing new log file:
> 'C:\Users\7admin\AppData\Local\Temp\wpkg-fresh.log' in replace mode.
> Settings file contains 0 packages:
> Packages file contains 1 packages:
> 'office2013'
> Profile file contains 1 profiles: 'Post Install'
> Using profile(s): 'Post Install'
> Getting profiles which apply to this node.
> Applying profile: Post Install
> Reading variables from hosts[s]
> Reading variables from host: name='fresh',profile-id='Post Install'
> Adding package with ID 'office2013' to profile packages.
> Found package node 'Microsoft Office 2013' (office2013) in package
> database.
> Synchronizing. Number of packages referenced by profile: 1.
> Evaluating packages to be removed.
> Number of packages to remove: 0
> Going to install package 'Microsoft Office 2013' (office2013), Revision
> 2013, (execute flag is '', notify flag is 'true').
> Package 'Microsoft Office 2013' (office2013): Not yet processed during
> this session.
> Package 'Microsoft Office 2013' (office2013): Not in local package
> database; Marking for installation.
> Package 'Microsoft Office 2013' (office2013): Prepared for installation.
> Checking existence of package: Microsoft Office 2013
> Reading variables from package 'Microsoft Office 2013'.
> Got variable 'exe-source' of value '\\\\IP\\wpkg\\soft\\office13'
> Got variable 'msp-source' of value
> '\\\\IP\\wpkg\\soft\\office13\\1customfile'
> Reading variables from profile[s]
> Getting profiles which apply to this node.
> Reading variables from profile Post Install
> Reading variables from hosts[s]
> Uninstall entry for Microsoft Office Professional Plus 2013 missing:
> test failed.
> Saving unsorted settings to 'C:\Windows\System32\wpkg.xml'.
> Saving XML : C:\Windows\System32\wpkg.xml
> Package 'Microsoft Office 2013' (office2013): Not installed (checks
> failed). Preparing installation.
> Installation of references (dependencies) for 'Microsoft Office 2013'
> (office2013) successfully finished.
> Installing 'Microsoft Office 2013' (office2013)...
> Reading variables from package 'Microsoft Office 2013'.
> Got variable 'exe-source' of value '\\\\IP\\wpkg\\soft\\office13'
> Got variable 'msp-source' of value
> '\\\\IP\\wpkg\\soft\\office13\\1customfile'
> Reading variables from profile[s]
> Reading variables from hosts[s]
> Install type: install
> Fetched 1 install command(s).
> Found language definition node for language ID 809
> Executing command: '%SystemRoot%\System32\msg.exe * /TIME:10 "Automatic
> software deployment is currently updating your system. Please save all
> your documents as the the system might reboot without further notice.
> Thank you."' ('C:\Windows\System32\msg.exe * /TIME:10 "Automatic
> software deployment is currently updating your system. Please save all
> your documents as the the system might reboot without further notice.
> Thank you."').
> Executing command: ' %comspec% /C start /WAIT %exe-source%\setup.exe
> /adminfile %msp-source%\myoffice2013.msp' (' C:\Windows\system32\cmd.exe
> /C start /WAIT \\\\IP\\wpkg\\soft\\office13\setup.exe /adminfile
> \\\\IP\\wpkg\\soft\\office13\\1customfile\myoffice2013.msp').
> Command ' %comspec% /C start /WAIT  %exe-source%\setup.exe /adminfile
> %msp-source%\myoffice2013.msp' (' C:\Windows\system32\cmd.exe /C start
> /WAIT \\\\IP\\wpkg\\soft\\office13\setup.exe /adminfile
> \\\\IP\\wpkg\\soft\\office13\\1customfile\myoffice2013.msp') was
> unsuccessful.
> The parameter is incorrect.
> 
> Could not process (install) package 'Microsoft Office 2013' (office2013):
> Exit code returned non-successful value (-1) on command ' %comspec% /C
> start /WAIT  %exe-source%\setup.exe /adminfile
> %msp-source%\myoffice2013.msp'.
> Cleaning up temporary downloaded files
> Restoring previous environment.
> 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."').
> --------------------------------------------------------
> 
> My xml file is simple and it looks like this now:
> 
> 
> <packages>
> 
> <package id="office2013" name="Microsoft Office 2013" revision="2013"
> priotiy="1" reboot="false">
> <check type="uninstall" condition="exists" path="Microsoft Office
> Professional Plus 2013" />
> <variable name="exe-source" value="\\\\IP\\wpkg\\soft\\office13"/>
> <variable name="msp-source"
> value="\\\\IP\\wpkg\\soft\\office13\\1customfile"/>
> 
> <install cmd= " %comspec% /C start /WAIT  %exe-source%\setup.exe
> /adminfile %msp-source%\myoffice2013.msp"   timeout="0">
> </install>
> 
> </package>
> 
> </packages>
> ------------------------------------------------------------
> 
> Thank you
> 
> 
> On 15/12/15 18:09, Rainer Meier wrote:
>> I think you might have to correctly escape the backslashes:
>>
>> <variable name="EXE-SOURCE" value="\\\\IP\\wpkg\\soft\\office13"/>
>> <variable name="MSP-SOURCE"
>> value="\\\\IP\\wpkg\\soft\\office13\\1customfile"/>
>>
>> You might also want to stick to either upper- or lowercase variable
>> names as strictly speaking EXE-SOURCE is not equal to exe-source. I
>> know Windows itself is lazy on this and it mgiht work but it's simply
>> bad practice.
>>
>> br,
>> Rainer
>>
>>
>> On 15.12.2015 18:55, Paul McGrath wrote:
>>> Hi,
>>>    Copy and paste the event log error
>>> Paul
>>>
>>> -----Original Message-----
>>> From: Yanni [mailto:y.goudetsidis at mail.cryst.bbk.ac.uk]
>>> Sent: 15 December 2015 16:38
>>> To: Paul McGrath <J.P.McGrath at leeds.ac.uk>;
>>> 'wpkg-users at lists.wpkg.org' <wpkg-users at lists.wpkg.org>
>>> Subject: Re: [wpkg-users] office 2013 package+ The parameter is
>>> incorrect
>>>
>>> Thanks Paul
>>>
>>> I removed the back-slash:
>>>
>>> It now looks like this:
>>>
>>>                                      <variable name="exe-source"
>>> value="\\IP\wpkg\soft\office13"/>
>>>
>>>                                      <variable name="msp-source"
>>> value="\\IP\wpkg\soft\office13\1customfile"/>
>>>
>>> <install cmd= " %comspec% /C start /WAIT %EXE-SOURCE%\setup.exe
>>> /adminfile
>>>                            %MSP-SOURCE%\myoffice2013.msp"
>>> timeout="0"> </install>
>>>
>>> However I still get "The parameter is incorrect" error.
>>>
>>> I just executed the command directly from command prompt and it
>>> didn't complain, I got prompted to hit "Install" which I did and is
>>> installing office now but doesn't work when launching the command
>>> through wpkg.
>>>
>>>
>>>
>>>
>>> On 15/12/15 16:16, Paul McGrath wrote:
>>>> You have too many \
>>>>
>>>> EXE-SOURCE = \\IP\wpkg\soft\office13\
>>>> Then you add \setup.exe
>>>> Which = \\IP\wpkg\soft\office13\\setup.exe
>>>>
>>>> -----Original Message-----
>>>> From: wpkg-users [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf
>>>> Of Yanni
>>>> Sent: 15 December 2015 16:12
>>>> To: wpkg-users at lists.wpkg.org
>>>> Subject: [wpkg-users] office 2013 package+ The parameter is incorrect
>>>>
>>>> Hello
>>>>
>>>> I've been trying to install Office2013 but something is not right in
>>>> my syntax.
>>>> Using the "debug" flag, I can see:
>>>>
>>>> Executing command: ' %comspec% /C start /WAIT %EXE-SOURCE%\setup.exe
>>>> /adminfile %MSP-SOURCE%\myoffice2013.msp'
>>>>
>>>> (' C:\Windows\system32\cmd.exe /C start /WAIT
>>>> \\IP\wpkg\soft\office13\\setup.exe /adminfile
>>>> \\IP\wpkg\soft\office13\1customfile\myoffice2013.msp').
>>>>
>>>> Command ' %comspec% /C start /WAIT  %EXE-SOURCE%\setup.exe
>>>> /adminfile %MSP-SOURCE%\myoffice2013.msp'
>>>>
>>>> (' C:\Windows\system32\cmd.exe /C start /WAIT
>>>> \\IP\wpkg\soft\office13\\setup.exe /adminfile
>>>> \\IP\wpkg\soft\office13\1customfile\myoffice2013.msp') was
>>>> unsuccessful.
>>>> The parameter is incorrect.
>>>>
>>>> Here is my xml file which as far as I can see there are no syntax
>>>> errors:
>>>>
>>>> <!---------------------------------office2013.xml------------------->
>>>> <packages>
>>>>
>>>>            <package id="office2013" name="Microsoft Office 2013"
>>>> revision="2013" priotiy="1" reboot="false">
>>>>            <check type="uninstall" condition="exists"
>>>> path="Microsoft Office Professional Plus 2013" />
>>>>            <variable name="exe-source"
>>>> value="\\IP\wpkg\soft\office13\"/>
>>>>            <variable name="msp-source"
>>>> value="\\IP\wpkg\soft\office13\1customfile"/>
>>>>
>>>>            <install cmd= " %comspec% /C start /WAIT
>>>> %EXE-SOURCE%\setup.exe /adminfile
>>>> %MSP-SOURCE%\myoffice2013.msp"
>>>> timeout="0"> </install>
>>>>
>>>>            </package>
>>>>
>>>> </packages>
>>>> <!--------------------------------------------------------------------
>>>> ----->
>>>>
>>>> If you spot anything wrong please let me know because I'm stuck at
>>>> the moment. Even if I copy/paste the package from WPKG website I
>>>> still get the same error.
>>>>
>>>> Many thanks
>>>> ----------------------------------------------------------------------
>>>> --- SSLrack - get your cheap cheap SSL certificates (standard,
>>>> wildcard, EV) http://www.sslrack.com/
>>>> ----------------------------------------------------------------------
>>>> --- wpkg-users mailing list archives >>
>>>> http://lists.wpkg.org/pipermail/wpkg-users/
>>>> _______________________________________________
>>>> wpkg-users mailing list
>>>> wpkg-users at lists.wpkg.org
>>>> https://lists.wpkg.org/mailman/listinfo/wpkg-users
>>>
>>> -------------------------------------------------------------------------
>>>
>>> SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
>>> http://www.sslrack.com/
>>> -------------------------------------------------------------------------
>>>
>>> wpkg-users mailing list archives >>
>>> http://lists.wpkg.org/pipermail/wpkg-users/
>>> _______________________________________________
>>> wpkg-users mailing list
>>> wpkg-users at lists.wpkg.org
>>> https://lists.wpkg.org/mailman/listinfo/wpkg-users
>>>
> 
> -------------------------------------------------------------------------
> SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
> http://www.sslrack.com/
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users


More information about the wpkg-users mailing list