From 85d9eb732dc5ca5bb2e2bd65922caf1655353c1e Mon Sep 17 00:00:00 2001 From: guenhter Date: Thu, 20 Jun 2024 07:06:33 +0200 Subject: [PATCH] Add a hello world sample to the readme --- src/Docusaurus/docs/intro.md | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/Docusaurus/docs/intro.md b/src/Docusaurus/docs/intro.md index 80d19974..1201c537 100644 --- a/src/Docusaurus/docs/intro.md +++ b/src/Docusaurus/docs/intro.md @@ -118,3 +118,48 @@ You need to use exact versions for those packages. For example: ``` For more detailed instructions, check out [this video](https://youtu.be/2iIjq6zt6z0). + + +## Hello World from CLI + +After having Wix now installed, let's make a very tiny example. +The goal is to have a MSI file which installs a "Hello World" program into `C:\Program Files (x86)`. + +Let's get started: + +1. Create a new working folder. Create all following files there. +1. Create a new file `HelloWorld.txt` +1. Create a new text file `package.wxs` with the following content: + ```xml + + + + + + + + + + + + + + + + ``` +1. Run this command + ```batch + wix build .\package.wxs -o my.msi + ``` + This command creates a new installer file `my.msi` +1. To install the installer, double click it or run + ```batch + msiexec /i my.msi /l*v install.log + ``` + After successful installation, the program appears in the `C:\Program Files (x86)` folder. +1. To uninstall `Hello World`, use the Windows tool `Add/Remove Programs` or run this command: + ```batch + msiexec /x my.msi /l*v uninstall.log + ``` + +Congratas, you just created your first simple installer.