Hi all, When installing nodejs package in windows 64 bit it shows like this:
msi_open_package: unexpected status 1619: This installation package
could not be opened. Verify that the package exists
and that you can access it, or contact the application vendor to
verify that this is a valid Windows Installer package.
my code is here:attribute/default.rb:
default[‘nodejs’][‘url’] = "http://nodejs.org/dist/v0.10.13/node-v0.10.13-x86.msi"default[‘nodejs’][‘package_name’] = "Nodejs"
recipes/default.rb:
windows_package node[‘nodejs’][‘package_name’] do source node[‘nodejs’][‘url’] action :installend
Indra,
Is "Nodejs" the name of the package as it appears AFTER it is installed,
when looking at the "Programs and Features" window? Its my understanding
that the "package" resource for windows can be very particular about the
"name" you hand to it.
As a test, try installing it manually on a machine, then get the name,
which can be done in Powershell with the following code.
Powershell:
Get-WmiObject win32_product | select name
CODE:
windows_package 'Microsoft ODBC Driver 11 for SQL Server' do
source "#{node['tunein']['fileserver']}msodbcsql.msi"
options '/quiet /passive /qn /lvx* c:\temp\msodbcsql.log
IACCEPTMSODBCSQLLICENSETERMS=YES'
installer_type :custom
action :install
end
Install the product manually, then run that powershell, get the "name", put
it in your default['nodejs']['package_name'] = "REPLACE THIS"
When installing nodejs package in windows 64 bit it shows like this:
msi_open_package: unexpected status 1619: This installation package
could not be opened. Verify that the package exists
and that you can access it, or contact the application vendor to
verify that this is a valid Windows Installer package.