Ask Your Question
0

how to uninstall software on windows agent using puppet

asked 2015-03-17 06:35:19 -0500

YOGESH DANGCHE gravatar image
class putty_exe {
    file    {
            "C:\\Software\winscp556setup.exe":
            ensure => absent,
            owner => administrator,
            group => users,
            mode => 0447,
            source => "puppet:///modules/putty_exe/winscp556setup.exe",
            notify => Package["winscp556setup"],
            }
    package {
            "winscp556setup":
            ensure => absent,
            source => "C:\\Software\winscp556setup.exe",
            uninstall_options => ['/VERYSILENT'],
  }

} I write the manifest like above but it only remove file not uninstall the winscp. please help me.If anybody knows how to uninstall it please give the sample code.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-25 16:05:00 -0500

WhatsARanjit gravatar image

I was able to get this working with WinSCP v5.7.1 with the following code:

package { 'WinSCP 5.7.1':
  ensure            => absent,
  uninstall_options => [ '/SILENT' ],
}

It seems even though you name the package winscp556setup in puppet code, Windows has another name for it. Run puppet resource package on the system and you can see how it is identifying all the packages. Change the package resource title to the name Windows is looking for.

edit flag offensive delete link more

Comments

thank you so much

YOGESH DANGCHE gravatar imageYOGESH DANGCHE ( 2015-04-13 06:06:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-17 06:35:19 -0500

Seen: 1,310 times

Last updated: Mar 25 '15