puppetlabs / bolt-vanagon

Apache License 2.0
2 stars 31 forks source link

(PE-36810) Stop using dynamic tmp directory for batch script #199

Closed donoghuc closed 11 months ago

donoghuc commented 12 months ago

This commit removes the intermediate script constructed for installation from being written to the %TEMP% directory. Intead it is written to the same directory the script is being run from. This ensures users must be able to write to the directory this script is being run from (for example C:\windows\system32 instead of %TEMP%).

donoghuc commented 11 months ago

This is installed on wishful-novelty.delivery.puppetlabs.net and logs are available as shown:

C:\cygwin64\home\Administrator>cmd /c start /w msiexec /qn /i puppet-bolt-3.27.2.15.g0e30aca-x64.msi /L*V installlog.txt
cmd /c start /w msiexec /qn /i puppet-bolt-3.27.2.15.g0e30aca-x64.msi /L*V installlog.txt