Skip to content

Instantly share code, notes, and snippets.

@aaron-prindle
Last active August 3, 2016 22:42
Show Gist options
  • Save aaron-prindle/fb0c545b3fa2cc747137505de89817d7 to your computer and use it in GitHub Desktop.
Save aaron-prindle/fb0c545b3fa2cc747137505de89817d7 to your computer and use it in GitHub Desktop.
For the first design of the Windows Installer for minikube I have created a simple Windows MSI using the WIX toolset.
Right now the MSI moves the minikube.exe into ProgramFiles and adds `minikube` to the users PATH so that it is executable after install
on the CLI
[steps adapted from http://www.codeproject.com/Tips/105638/A-quick-introduction-Create-an-MSI-installer-with]
Install WIX from http://wixtoolset.org/
Add C:\Program Files (x86)\WiX Toolset <installed-version>\bin to your PATH
Create the following files in a new directory AND place the minikube.exe in that directory:
-----minikube.wxs-----
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="12345678-1234-1234-1234-111111111111"
Name="Minikube" Version="0.7.1" Manufacturer="Kubernetes" Language="1033">
<Package InstallerVersion="200" Compressed="yes" Comments="Windows Installer Package"/>
<Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="Minikube">
<Component Id="ApplicationFiles" Guid="12345678-1234-1234-1234-222222222222">
<Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Permanent="yes" Part="last" Action="set" System="yes" />
<File Id="Minikube" Source="minikube.exe"/>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="DefaultFeature" Level="1">
<ComponentRef Id="ApplicationFiles"/>
</Feature>
</Product>
</Wix>
-----make_installer.bat-----
candle minikube.wxs
light minikube.wixobj
@pause
Make sure you have placed the minikube.exe in this directory as well
Then run:
$ ./make_installer.bat
This will create a minikube.msi file which can be used to install minikube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment