简体   繁体   中英

How to specify the installation path in windows_package Ruby script

Is there a way to specify the installation path in windows_package resource in chef Ruby script?

I am an newbie in chef script. I've been looking here https://docs.chef.io/resource_windows_package.html but can't find the answer.

Appreciate any help on this.

Regards.

I'm assuming you are asking how to set the path that a program will be installed into, and this will vary depenIding on the options that can be provided to the msi via command line as well as what route you need to take. Not sure if you've ever needed to install sql server through using the UI, but an example cookbook that gets this accomplished is here https://github.com/opscode-cookbooks/sql_server . You might want to poke around to get an idea of what they are doing. If you provide the name/path of the specific program you are trying to install, I may be able to provide a more specific answer. There are many ways to skin a cat here.

Regards,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM