I’m having a challenge with a pretty simple cookbook.
My ultimate goal is to establish chef in an existing (largely windows) production environment, and we’re starting with an upgrade of some existing software.
Here’s my problem:
I have a recipe run an installshield wizard as a windows_package resource. It calls an answer file for handling its expected user input. I then have additional resources that stop the newly installed service, delete a configuration file then copy a new configuration file in its place & then start the service again.
If there is no previous version of the software installed on the machine this runs as expected. If there is any version of this software currently installed on the target machine, the installshield windows_package resource performs an uninstall instead.
I’ve explored things like testing software version using PowerShell (wmi) before running the installer - but I thought I’d start with the broader problem first in case I’m heading down an unnecessary path for my fix.
Has anyone else run into and resolved any issues like this with Chef for Windows?