Hi Silva , Did you able to unzip the file using 7 zip using above code.I 
was trying but it is unable to find the zip file.Please help me to fix this.

Thanks
Renu

On Monday, 1 September 2014 10:35:47 UTC-7, Armindo Silva wrote:
>
> Hi,
>
> I have a zip file that has some binaries inside, if I unzip it (with 7z) 
> manually and try to run one of the binaries and it just works, if I unzip 
> it using puppet agent:
>
>   exec { 'eMZP':
>     command => 'cmd /c 7z x c:\myfolder\my.zip -oc:\myfolder\',
>     creates => 'c:/myfolder/mybin.exe',
>     require => File['c:/myfolder/my.zip'],
>   }
>
> the unziped files don't have exec permissions so I am not able to run 
> them. 
> As workaround I have been setting the folder's mode but setting the mode 
> on windows is deprecated.
>
> Any ideas/pointers?
>
> Best regards,
> Armindo
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/af40628e-65ab-4200-98b2-e2934784d54d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to