MSI package is not registered with add/remove program or not creating shortcuts after installation using mco puppet

18 views
Skip to first unread message

Amrit Atmajit

unread,
May 29, 2016, 11:40:26 AM5/29/16
to Puppet Users

Hi, 

 

I am trying to install msi package in the puppet-agents using "mco puppet runonce -I <hostname>" (pushing the configuration) from puppet master. 

Even though the package is installed and all the files are copied properly but, it is not shown in "Add/Remove Program" or is not shown the shortcuts in all programs.

I am using the following configuration to install the msi file.

 

###########################################################################

package { "Python PreReqs":

    require => Exec['CopyPythonPreReq'], #required msi file tobe copied

    ensure => '2.4.23',  # ensure => created

    source => 'C:\PuppetSWT\Python PreReqs 2.4.23.msi', 

}

###########################################################################

 

Using the same configuration, I can pull the configuration from puppet-agent (using "puppet agent -t") and the msi package is installing successfully with registering in "Add/Remove Programs" and creating shortcuts.

 

Again, I tried with another option by using the "exec" resource type to install the msi package.

 

###########################################################################

exec { 'Python PreReqs':

   path    => 'C:\Windows\System32',

   command => 'cmd /c "start "" /wait msiexec.exe /a \"C:\PuppetSWT\Python PreReqs 2.4.23.msi\" /qn /lv \"C:\PuppetSWT\PythonPreReqs.log\""',

   require => Exec['CopyPythonPreReq'],

}

###########################################################################

 

But, with the same option using,

 

·        1. "puppet agent -t" (pulling configuration) from puppet agent: msi package is installed with registering in "Add/Remove Programs" in the control panel.

 

·        2. "mco puppet" (pushing configuration) from puppet master: msi package is installed without registering in "Add/Remove Programs" in the control panel.

 

So, what is missing in the configuration to install the msi package showing the details in "Add/Remove Programs" in the control panel.

 

Thanks

Amrit

Reply all
Reply to author
Forward
0 new messages