lib/makit/wix.rb in makit-0.0.0 vs lib/makit/wix.rb in makit-0.0.1
- old
+ new
@@ -15,10 +15,13 @@
if (Makit::Environment.is_windows?)
# test if dotnet is installed
if !Makit::DotNet::is_installed? # !File.exist?(Makit::Environment.which("dotnet"))
puts "dotnet does not appear to be installed"
else
- "dotnet tool install --global wix".run
+ # test if wix is already installed
+ if !`dotnet tool list --global`.include?("wix")
+ "dotnet tool install --global wix".run
+ end
puts " Wix version " + "#{Wix::version}".colorize(:green)
# display the link to https://wixtoolset.org/
puts " https://wixtoolset.org/".colorize(:green)
# display the link to https://marketplace.visualstudio.com/items?itemName=FireGiant.FireGiantHeatWaveDev17
puts " https://marketplace.visualstudio.com/items?itemName=FireGiant.FireGiantHeatWaveDev17".colorize(:green)