[wpkg-users] Error when running a batch file

Daniel Dehennin daniel.dehennin at ac-caen.fr
Thu Feb 24 09:07:51 CET 2011

Brandon Hamilton <bhamilton at rmtt.com> writes:

> Hello,
> I get the following error when I call a batch file on an install command:
> Could not process (install) package 'TreeSize Free Context x32' (treesizecontext_x32):
> Exit code returned non-successful value (-1) on command '"%WPKG%\TreeSizeContext_x32.bat"'
> Batch file is:
>                 @echo off
> reg add HKEY_CURRENT_USER\Software\Classes\Folder\shell\TreeSize\command /ve /t REG_SZ /d "\"C:\Program Files\JAM Software\TreeSize Free\TreeSizeFree.exe\" "\"%%1\"
> exit
> If I run "%WPKG%\TreeSizeContext_x32.bat" from a command line it works just fine.

It depends how you run wpkg.js, maybe the HKCU is not available like
with WPKG client running as system.

The solution is to use Active Setup[1].


[1]  http://www.appdeploy.com/articles/activesetup.asp

Daniel Dehennin
RAIP de l'Orne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20110224/10ea4890/attachment-0001.sig>

More information about the wpkg-users mailing list