Jira (PUP-5652) Windows Package provider does not work with Installshield with MSI files

14 views
Skip to first unread message

Corey Osman (JIRA)

unread,
Jan 5, 2016, 4:47:02 PM1/5/16
to puppe...@googlegroups.com
Corey Osman created an issue
 
Puppet / Bug PUP-5652
Windows Package provider does not work with Installshield with MSI files
Issue Type: Bug Bug
Affects Versions: PUP 3.8.0
Assignee: Aaron Armstrong
Components: PE, Types and Providers
Created: 2016/01/05 1:46 PM
Environment:

PE 3.8

Priority: Normal Normal
Reporter: Corey Osman

Reference Material: http://unattended.sourceforge.net/installers.php (InstallShield with MSI)

The windows package provider incorrectly quotes or adds a space when combining the install options. Because the Installshield installer is a wrapper exe for another installer, options must be specially quoted and passed in as an argument. However, puppet can't seem to get the quotes right no matter what I do.

Example:

$arg_params = "MANAGEMENT_SERVER=${management_server} /l*v! ${install_log} /qn"
$package_name = 'Symantec Critical System Protection Agent'
       package {$package_name :
         ensure          => $ensure_value,
         source          => $source_path,
         install_options => ['/s', "/v\"${arg_params}\"],
       }

The result of the install options should be ./installer.exe /s /v"MANAGEMENT_SERVER=1.1.1.1 /l*v! c:\temp\log.txt /qn"

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Aaron Armstrong (JIRA)

unread,
Jan 5, 2016, 5:44:04 PM1/5/16
to puppe...@googlegroups.com
Aaron Armstrong assigned an issue to Unassigned
Change By: Aaron Armstrong
Assignee: Aaron Armstrong

Josh Cooper (JIRA)

unread,
Mar 1, 2016, 1:59:05 AM3/1/16
to puppe...@googlegroups.com

Kenaz Kwa (JIRA)

unread,
Aug 29, 2016, 7:47:22 PM8/29/16
to puppe...@googlegroups.com
Kenaz Kwa updated an issue
Change By: Kenaz Kwa
Team: Agent & Platform Support
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Geoff Nichols (JIRA)

unread,
Sep 29, 2016, 1:22:40 PM9/29/16
to puppe...@googlegroups.com
Geoff Nichols commented on Bug PUP-5652
 
Re: Windows Package provider does not work with Installshield with MSI files

Corey Osman, can you include an example of the incorrect quoting from a resulting puppet run?

This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Rob Reynolds (JIRA)

unread,
Sep 29, 2016, 2:03:54 PM9/29/16
to puppe...@googlegroups.com
Rob Reynolds commented on Bug PUP-5652

The space in the arg_params causes Puppet to split the items out. If you want this to work properly Corey Osman, you will need to pass your arguments like this instead:

install_options => ['/s', "/v\"MANAGEMENT_SERVER=${management_server}", '/l*v!', "${install_log}", '/qn','"'],

Note two things - your arguments did not close out the quotes. And that you are running into a Puppet design where it will automatically quote a space in install options.

The above is the only workaround for what you are attempting to do.

If you want to get a detailed explanation of this behavior and why it works the way it does, see https://forge.puppet.com/puppetlabs/chocolatey#install-options-with-quotes--spaces

Rob Reynolds (JIRA)

unread,
Sep 29, 2016, 2:05:12 PM9/29/16
to puppe...@googlegroups.com
Rob Reynolds commented on Bug PUP-5652

The windows package provider incorrectly quotes or adds a space when combining the install options.

It's not incorrect, but it is annoying when you don't want it to automatically quote values when there are spaces.

Rob Reynolds (JIRA)

unread,
Sep 29, 2016, 2:06:05 PM9/29/16
to puppe...@googlegroups.com
Rob Reynolds commented on Bug PUP-5652

I feel this can be closed as won't fix as it is part of the design of Puppet, although it may need some better documentation that notes what I already have in the Chocolatey provider about how install options auto-quotes options with spaces.

Rob Reynolds (JIRA)

unread,
Sep 29, 2016, 2:13:32 PM9/29/16
to puppe...@googlegroups.com
Rob Reynolds commented on Bug PUP-5652

If it is something that should be fixed, it would likely hit a major version boundary as it could break a world of Puppet manifests.

Rob Reynolds (JIRA)

unread,
Sep 29, 2016, 2:14:35 PM9/29/16
to puppe...@googlegroups.com
Rob Reynolds updated an issue
 
Change By: Rob Reynolds
Comment:
If it is something that should be fixed, it would likely hit a major version boundary as it could break a world of Puppet manifests.

Rob Reynolds (JIRA)

unread,
Sep 29, 2016, 2:16:38 PM9/29/16
to puppe...@googlegroups.com
Rob Reynolds updated an issue
Change By: Rob Reynolds
Comment: {quote}The windows package provider incorrectly quotes or adds a space when combining the install options.{quote}


It's not incorrect, but it is annoying when you don't want it to automatically quote values when there are spaces.

Corey Osman (JIRA)

unread,
Oct 14, 2016, 4:16:03 PM10/14/16
to puppe...@googlegroups.com
Corey Osman commented on Bug PUP-5652
 
Re: Windows Package provider does not work with Installshield with MSI files

Do I still need to provide an example? I am upgrading to PE 2016 and will check if the problem still exists.

Rob Reynolds I wish I could use chocolatey but at the time there was no enterprise edition as our systems don't have internet.

Rob Reynolds (JIRA)

unread,
Oct 24, 2016, 12:05:04 PM10/24/16
to puppe...@googlegroups.com
Rob Reynolds commented on Bug PUP-5652

Corey Osman Internet has never been required. You've been able to use internal sources since 2011 when Chocolatey first came out. Enterprise editions not required.

Too bad for misinformation.

Corey Osman (JIRA)

unread,
Feb 9, 2017, 1:46:02 PM2/9/17
to puppe...@googlegroups.com
Corey Osman commented on Bug PUP-5652

Rob Reynolds It is not about having internal sources. It is about having to recreate all the choco packages that have hard coded external dependencies.

Ethan Brown (JIRA)

unread,
May 17, 2017, 1:21:12 PM5/17/17
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 10, 2018, 8:22:02 PM5/10/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: package triaged type_and_provider windows
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (Jira)

unread,
Nov 11, 2021, 1:11:02 AM11/11/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-5652
 
Re: Windows Package provider does not work with Installshield with MSI files

Since this was filed the windows package provider was split into different classes for managing exe and msi packages. Can you try to reproduce using a newer version of puppet to see if it is still an issue?

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Corey Osman (Jira)

unread,
Nov 11, 2021, 1:19:02 AM11/11/21
to puppe...@googlegroups.com
Corey Osman commented on Bug PUP-5652

This was so long ago.  I have no desire to test this.  I would agree with Rob that the docs should be updated with his example unless they already have been.  I would just close the ticket.

Josh Cooper (Jira)

unread,
Nov 11, 2021, 1:09:03 PM11/11/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages