Issue #11452 has been updated by Josh Cooper.

Subject changed from Windows: Can't mind msiexec.exe even though it's there to 
Windows: Can't find msiexec.exe even though it's there
Description updated
Status changed from Unreviewed to Needs More Information
Assignee set to Mark Plaksin
Parent task set to #8268

Having trouble reproducing, I'm on 2008 R2 build 7600, when running from 
cmd.exe as Administrator:

<pre>
package { "splunk":
  provider => 'msi',
  ensure => installed,
  source => 'C:\Users\root\splunk-4.2.4-110225-x64-release.msi',
  install_options => { 'INSTALLDIR' => 'C:\splunk' },
}
</pre>

<pre>
C:\>puppet apply c:\Users\root\msi.pp --trace --debug
...
debug: Prefetching msi resources for package
debug: Package[splunk](provider=msi): Executing 'msiexec.exe /qn /norestart /i 
C:\Users\root\splunk-4.2.4-110225-x64-release.msi INSTALLDIR=C:\splunk'
notice: /Stage[main]//Package[splunk]/ensure: created
...
</pre>
----------------------------------------
Bug #11452: Windows: Can't find msiexec.exe even though it's there
https://projects.puppetlabs.com/issues/11452

Author: Mark Plaksin
Status: Needs More Information
Priority: Normal
Assignee: Mark Plaksin
Category: windows
Target version: 
Affected Puppet version: 2.7.9
Keywords: 
Branch: 


Puppet says it can't find msiexe.exe but cmd.exe finds it.

With this .pp:
<pre>
package { 'mplayer':
  ensure => installed,
  provider => 'msi',
  source => 'C:\Users\happy\Desktop\mplayer-setup_1.0rc2.msi',
}
</pre>

I get this:
<pre> 
debug: Puppet::Type::Package::ProviderMsi: file msiexec.exe does not exist
</pre>

In the same cmd.exe if I run msiexec.exe from the command-line, it runs fine.

This is on 2008r2.  If it matters, my cmd window is running as Administrator.

If I replace this in msi.rb:

<pre>
commands :msiexec => "msiexec.exe"
</pre>

with this then it all works:

<pre>
commands: :msiexec => 'C:\Windows\System32\msiexec.exe'
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to