Jira (PUP-11210) package resource, allow for logging with Windows MSI

13 views
Skip to first unread message

Michael Luck (Jira)

unread,
Aug 19, 2021, 3:45:02 PM8/19/21
to puppe...@googlegroups.com
Michael Luck created an issue
 
Puppet / Bug PUP-11210
package resource, allow for logging with Windows MSI
Issue Type: Bug Bug
Assignee: Unassigned
Components: Windows
Created: 2021/08/19 12:44 PM
Priority: Low Low
Reporter: Michael Luck

Puppet Version: 6.23
Puppet Server Version: 6.16.1
OS Name/Version: Windows 10

 

 

I'm not able to specify logging options when using the package resource with Windows MSIs. When trying to pass the log parameter, it does not work since Puppet places quotes around it.

 

```

install_options => [
'/qn',
'/norestart',
'/l*v c:\windows\temp\msi_log.txt'
],

```

This results in `msiexec /qn /norestart /i package.msi "/l*v c:\windows\temp\msi_log.txt"` which is invalid. Is there a way I can override this behavior to pass the parameter correctly?

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

Michael Luck (Jira)

unread,
Aug 19, 2021, 3:46:02 PM8/19/21
to puppe...@googlegroups.com
Michael Luck updated an issue
Change By: Michael Luck
*Puppet Version: 6.23*
*Puppet Server Version: 6.16.1*
*OS Name/Version: Windows 10*


 

 

I'm not able to specify logging options when using the package resource with Windows MSIs. When trying to pass the log parameter, it does not work since Puppet places quotes around it.

 
{code:java}
```

install_options => [
'/qn',
'/norestart',
'/l*v c:\windows\temp\msi_log.txt'
], {code}
 
```

This results in ` :
{code:java}
msiexec /qn /norestart /i package.msi "/l*v c:\windows\temp\msi_log.txt" ` which is invalid. {code}
Is there a way I can override this behavior to pass the parameter correctly?

Michael Luck (Jira)

unread,
Aug 19, 2021, 3:47:03 PM8/19/21
to puppe...@googlegroups.com
Michael Luck updated an issue
*Puppet Version: 6.23*
*Puppet Server Version: 6.16.1*
*OS Name/Version: Windows 10*

 

 

I'm not able to specify logging options when using the package resource with Windows MSIs. When trying to pass the log parameter, it does not work since Puppet places quotes around it.

 
{code:java}

install_options => [
'/qn',
'/norestart',
'/l*v c:\windows\temp\msi_log.txt'
],{code}
 

This results in:
{code:java}

msiexec /qn /norestart /i C:\ package.msi /qn /norestart  "/l*v c:\windows\temp\msi_log.txt"{code}

Is there a way I can override this behavior to pass the parameter correctly?

Michael Luck (Jira)

unread,
Aug 19, 2021, 3:47:03 PM8/19/21
to puppe...@googlegroups.com
Michael Luck updated an issue
*Puppet Version: 6.23*
*Puppet Server Version: 6.16.1*
*OS Name/Version: Windows 10*

 

 

I'm not able to specify logging options when using the package resource with Windows MSIs. When trying to pass the log parameter, it does not work since Puppet places quotes around it.

 
{code:java}install_options => [
'/
qn',
'/norestart',
'/
l*v c:\windows\temp\msi_log.txt'

],{code}
 

This results in:
{code:java}msiexec /qn /norestart /i C:\package.msi
/qn /norestart  "/l*v c:\windows\temp\msi_log.txt"{code}

Is there a way I can override this behavior to pass the parameter correctly?

Josh Cooper (Jira)

unread,
Aug 19, 2021, 8:30:03 PM8/19/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11210
 
Re: package resource, allow for logging with Windows MSI

Try passing them as an array of strings, [“l*v”, “C:\…”]

Michael Luck (Jira)

unread,
Aug 20, 2021, 3:23:03 PM8/20/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages