Skip to content

Commit

Permalink
updated .md files
Browse files Browse the repository at this point in the history
  • Loading branch information
michelou committed Apr 3, 2023
1 parent 4d0bee2 commit 1738cd5
Show file tree
Hide file tree
Showing 20 changed files with 104 additions and 66 deletions.
2 changes: 1 addition & 1 deletion MSI.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Software distributions can be installed in several ways, not necessarily using M

***

*[mics](https://lampwww.epfl.ch/~michelou/)/March 2023* [**▲**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**▲**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand Down
2 changes: 1 addition & 1 deletion QUICKREF.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ BuildNumber Caption Version OSArchitecture

***

*[mics](https://lampwww.epfl.ch/~michelou/)/February 2023* [**&#9650;**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**&#9650;**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand Down
61 changes: 40 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<tr>
<td style="border:0;padding:0 10px 0 0;min-width:120px;"><a href="https://wixtoolset.org/" rel="external"><img src="./images/wixtoolset.png" width="100" alt="WiX project"/></a></td>
<td style="border:0;padding:0;vertical-align:text-top;">This repository gathers <a href="https://wixtoolset.org/" rel="external">Windows installer</a> examples coming from various websites and books.<br/>
It also includes several <a href="https://en.wikibooks.org/wiki/Windows_Batch_Scripting" rel="external">batch files</a> for experimenting with the <a href="https://wixtoolset.org/" rel="external">WiX Toolset</a> on a Windows machine.
It also includes several build scripts (<a href="https://en.wikibooks.org/wiki/Windows_Batch_Scripting" rel="external">batch files</a>) for experimenting with the <a href="https://wixtoolset.org/" rel="external">WiX Toolset</a> on a Windows machine.
</td>
</tr>
</table>
Expand All @@ -15,7 +15,7 @@

This project depends on two external software for the **Microsoft Windows** platform:

- [Git 2.39][git_downloads] ([*release notes*][git_relnotes])
- [Git 2.40][git_downloads] ([*release notes*][git_relnotes])
- [WiX Toolset 3.11][wix3_downloads] ([*release notes*][wix3_relnotes])

Optionally one may also install the following software:
Expand All @@ -28,10 +28,10 @@ Optionally one may also install the following software:
> **&#9755;** ***Installation policy***<br/>
> When possible we install software from a [Zip archive][zip_archive] rather than via a Windows installer. In our case we defined **`C:\opt\`** as the installation directory for optional software tools (*similar to* the [`/opt/`][linux_opt] directory on Unix).
For instance our development environment looks as follows (*March 2023*) <sup id="anchor_05">[5](#footnote_05)</sup>:
For instance our development environment looks as follows (*April 2023*) <sup id="anchor_05">[5](#footnote_05)</sup>:

<pre style="font-size:80%;">
C:\opt\Git-2.39.2\ <i>(314 MB)</i>
C:\opt\Git-2.40.0\ <i>(314 MB)</i>
C:\opt\ImageMagick-7.1.0-Q16\ <i>(300 MB)</i>
C:\opt\WiX-3.11.2\ <i>( 99 MB)</i>
C:\Program Files (x86)\instedit.com\InstEd\ <i>( 7 MB)</i>
Expand Down Expand Up @@ -78,25 +78,23 @@ where
- file [**`SETUP.md`**](SETUP.md) gives some [WiX] setup details.
- file [**`setenv.bat`**](setenv.bat) is the batch script for setting up our environment.

## <span id="commands">Batch commands</span>

### **`setenv.bat`** <sup id="anchor_06">[6](#footnote_06)</sup>

Command [**`setenv.bat`**](setenv.bat) is executed once to setup our development environment; it makes external tools such as [**`code.cmd`**][code_cli] and [**`git.exe`**][git_cli] directly available from the command prompt.

<pre style="font-size:80%;">
<b>&gt; <a href="./setenv.bat">setenv</a> -verbose</b>
Tool versions:
candle 3.11.2.4516, light 3.11.2.4516,
msiinfo 5.0, uuidgen v1.01
magick 7.1.0-7, git 2.39.2.windows.1, diff 3.8
Tool paths:
C:\opt\Wix-3.11.2\candle.exe
C:\opt\WiX-3.11.2\light.exe
C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x86\MsiInfo.exe
C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x86\uuidgen.exe
C:\opt\ImageMagick-7.1.0-Q16\magick.exe
C:\opt\Git-2.39.2\bin\git.exe
C:\opt\Git-2.39.2\usr\bin\diff.exe
Environment variables:
"GIT_HOME=C:\opt\Git-2.39.2"
"MAGICK_HOME=C:\opt\ImageMagick-7.1.0-Q16"
"WINSDK_HOME=C:\Program Files (x86)\Windows Kits\10"
"WIX=C:\opt\WiX-3.11.2"
magick 7.1.0-7, git 2.40.0.windows.1, diff 3.9
&nbsp;
<b>&gt; <a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/where" rel="external">where</a> msiinfo git</b>
C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x86\MsiInfo.exe
C:\opt\Git-2.40.0\bin\git.exe
C:\opt\Git-2.40.0\mingw64\bin\git.exe
</pre>

## <span id="footnotes">Footnotes</span> [**&#x25B4;**](#top)
Expand Down Expand Up @@ -140,7 +138,7 @@ In our case we downloaded the following installation files (see <a href="#proj_d
<dd>
<pre style="font-size:80%;">
<a href="https://imagemagick.org/script/download.php#windows">ImageMagick-7.1.0-portable-Q16-x64.zip</a> <i>(111 MB)</i>
<a href="https://git-scm.com/download/win">PortableGit-2.39.2-64-bit.7z.exe</a> <i>( 44 MB)</i>
<a href="https://git-scm.com/download/win">PortableGit-2.40.0-64-bit.7z.exe</a> <i>( 44 MB)</i>
vs_2019_community.exe <i>(1.7 GB)</i>
<a href="https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/">winsdksetup.exe</a> <i>( 1 MB)</i>
<a href="https://github.com/wixtoolset/wix3/releases">wix311-binaries.zip</a> <i>( 33 MB)</i>
Expand All @@ -150,9 +148,30 @@ vs_2019_community.exe <i>(1.7 GB)</i>
Microsoft doesn't provide an offline installer for <a href="https://visualstudio.microsoft.com/vs/2019/">VS 2019</a> but we can follow the <a href="https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019">following instructions</a> to create a local installer (so called <i>layout cache</i>) for later (re-)installation.
</dd></dl>

<span id="footnote_06">[6]</span> **`setenv.bat` *usage*** [](#anchor_06)

<dl><dd>
<a href=./setenv.bat><code><b>setenv.bat</b></code></a> has specific environment variables set that enable us to use command-line developer tools more easily.
</dd>
<dd>It is similar to the setup scripts described on the page <a href="https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell" rel="external">"Visual Studio Developer Command Prompt and Developer PowerShell"</a> of the <a href="https://learn.microsoft.com/en-us/visualstudio/windows" rel="external">Visual Studio</a> online documentation.
</dd>
<dd>
For instance we can quickly check that the two scripts <code>Launch-VsDevShell.ps1</code> and <code>VsDevCmd.bat</code> are indeed available in our Visual Studio 2019 installation :
<pre style="font-size:80%;">
<b>&gt; <a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/where" rel="external">where</a> /r "C:\Program Files (x86)\Microsoft Visual Studio" *vsdev*</b>
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\Launch-VsDevShell.ps1
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\vsdevcmd\core\vsdevcmd_end.bat
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\vsdevcmd\core\vsdevcmd_start.bat
</pre>
</dd>
<dd>
Concretely, <code>setenv.bat</code> in our GitHub projects which depend on Visual Studio (e.g. <a href="https://github.com/michelou/cpp-examples"><code>michelou/cpp-examples</code></a>) do invoke <code>VsDevCmd.bat</code> (resp. <code>vcvarall.bat</code> for older Visual Studio versions) to setup the Visual Studio tools on the command prompt.
</dd></dl>

***

*[mics](https://lampwww.epfl.ch/~michelou/)/March 2023* [**&#9650;**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**&#9650;**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand All @@ -169,7 +188,7 @@ Microsoft doesn't provide an offline installer for <a href="https://visualstudio
[git_downloads]: https://git-scm.com/download/win
[git_scm]: https://git-scm.com/
[github_markdown]: https://github.github.com/gfm/
[git_relnotes]: https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.39.2.txt
[git_relnotes]: https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.40.0.txt
[golang_examples]: https://github.com/michelou/golang-examples
[graalvm_examples]: https://github.com/michelou/graalvm-examples
[gui]: https://en.wikipedia.org/wiki/Graphical_user_interface
Expand Down
2 changes: 1 addition & 1 deletion RESOURCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ version = "12"

***

*[mics](https://lampwww.epfl.ch/~michelou/)/March 2023* [**&#9650;**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**&#9650;**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Figures **1.1** to **1.2** below show that a digital signature was indeed added

***

*[mics](https://lampwww.epfl.ch/~michelou/)/March 2023* [**&#9650;**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**&#9650;**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand Down
2 changes: 1 addition & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ C:\opt\Wix-3.11.2

***

*[mics](https://lampwww.epfl.ch/~michelou/)/March 2023* [**&#9650;**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**&#9650;**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand Down
2 changes: 1 addition & 1 deletion examples/MiniAppKiller/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ echo.
echo %__BEG_P%Subcommands:%__END%
echo %__BEG_O%clean%__END% delete generated files
echo %__BEG_O%help%__END% display this help message
echo %__BEG_O%install%__END% execute Windows installer %__BEG_O%%_PROJECT_NAME%%__END%
echo %__BEG_O%install%__END% execute Windows installer "%__BEG_O%%_PROJECT_NAME%%__END%"
echo %__BEG_O%link%__END% create Windows installer from WXS/WXI/WXL files
echo %__BEG_O%remove%__END% remove installed program ^(same as %__BEG_O%uninstall%__END%^)
echo %__BEG_O%uninstall%__END% remove installed program
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Since the original application (resp. its source files) is not available we must

***

*[mics](https://lampwww.epfl.ch/~michelou/)/March 2023* [**&#9650;**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**&#9650;**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand Down
2 changes: 1 addition & 1 deletion examples/WiXCustomDialog/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ echo.
echo %__BEG_P%Subcommands:%__END%
echo %__BEG_O%clean%__END% delete generated files
echo %__BEG_O%help%__END% display this help message
echo %__BEG_O%install%__END% execute Windows installer %__BEG_O%%_PROJECT_NAME%%__END%
echo %__BEG_O%install%__END% execute Windows installer "%__BEG_O%%_PROJECT_NAME%%__END%"
echo %__BEG_O%link%__END% create Windows installer from WXS/WXI/WXL files
echo %__BEG_O%remove%__END% remove installed program ^(same as %__BEG_O%uninstall%__END%^)
echo %__BEG_O%uninstall%__END% remove installed program
Expand Down
2 changes: 1 addition & 1 deletion examples/uberAgent/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ echo.
echo %__BEG_P%Subcommands:%__END%
echo %__BEG_O%clean%__END% delete generated files
echo %__BEG_O%help%__END% display this help message
echo %__BEG_O%install%__END% execute Windows installer %__BEG_O%%_PROJECT_NAME%%__END%
echo %__BEG_O%install%__END% execute Windows installer "%__BEG_O%%_PROJECT_NAME%%__END%"
echo %__BEG_O%link%__END% create Windows installer from WXS/WXI/WXL files
echo %__BEG_O%remove%__END% remove installed program ^(same as %__BEG_O%uninstall%__END%^)
echo %__BEG_O%uninstall%__END% remove installed program
Expand Down
2 changes: 1 addition & 1 deletion firegiant-examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ A <a href="http://guid.one/guid" rel="external">GUID</a> is a 128-bit integer (1

***

*[mics](https://lampwww.epfl.ch/~michelou/)/March 2023* [**&#9650;**](#top)
*[mics](https://lampwww.epfl.ch/~michelou/)/April 2023* [**&#9650;**](#top)
<span id="bottom">&nbsp;</span>

<!-- link refs -->
Expand Down
21 changes: 12 additions & 9 deletions firegiant-examples/SampleFirst/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ if exist "%__PROPS_FILE%" (
set "__!__NAME!=!__VALUE!"
)
)
@rem PRODUCT_CODE UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR
if defined __PRODUCT_CODE set "_GUID[PRODUCT_CODE]=!__PRODUCT_CODE!"
@rem PRODUCT_ID UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR
if defined __PRODUCT_ID set "_GUID[PRODUCT_ID]=!__PRODUCT_ID!"
if defined __PRODUCT_UPGRADE_CODE set "_GUID[PRODUCT_UPGRADE_CODE]=!__PRODUCT_UPGRADE_CODE!"
if defined __MAIN_EXECUTABLE set "_GUID[MAIN_EXECUTABLE]=!__MAIN_EXECUTABLE!"
if defined __HELPER_LIBRARY set "_GUID[HELPER_LIBRARY]=!__HELPER_LIBRARY!"
Expand Down Expand Up @@ -202,6 +202,7 @@ if %_DEBUG%==1 set _STDOUT_REDIRECT=
if %_DEBUG%==1 (
echo %_DEBUG_LABEL% Options : _TIMER=%_TIMER% _VERBOSE=%_VERBOSE% 1>&2
echo %_DEBUG_LABEL% Subcommands: _CLEAN=%_CLEAN% _INSTALL=%_INSTALL% _LINK=%_LINK% _REMOVE=%_REMOVE% 1>&2
echo %_DEBUG_LABEL% Variables : "GIT_HOME=%GIT_HOME%" 1>&2
echo %_DEBUG_LABEL% Variables : "WIX=%WIX%" 1>&2
echo %_DEBUG_LABEL% Variables : _PROJECT_NAME=%_PROJECT_NAME% 1>&2
)
Expand All @@ -223,14 +224,14 @@ if %_VERBOSE%==1 (
echo Usage: %__BEG_O%%_BASENAME% { ^<option^> ^| ^<subcommand^> }%__END%
echo.
echo %__BEG_P%Options:%__END%
echo %__BEG_O%-debug%__END% show commands executed by this script
echo %__BEG_O%-debug%__END% display commands executed by this script
echo %__BEG_O%-timer%__END% display total execution time
echo %__BEG_O%-verbose%__END% display progress messages
echo.
echo %__BEG_P%Subcommands:%__END%
echo %__BEG_O%clean%__END% delete generated files
echo %__BEG_O%help%__END% display this help message
echo %__BEG_O%install%__END% execute Windows installer %__BEG_O%%_PROJECT_NAME%%__END%
echo %__BEG_O%install%__END% execute Windows installer "%__BEG_O%%_PROJECT_NAME%%__END%"
echo %__BEG_O%link%__END% create Windows installer from WXS/WXI/WXL files
echo %__BEG_O%remove%__END% remove installed program ^(same as %__BEG_O%uninstall%__END%^)
echo %__BEG_O%uninstall%__END% remove installed program
Expand All @@ -249,6 +250,7 @@ if %_DEBUG%==1 ( echo %_DEBUG_LABEL% rmdir /s /q "%__DIR%" 1>&2
)
rmdir /s /q "%__DIR%"
if not %ERRORLEVEL%==0 (
echo %_ERROR_LABEL% Failed to delete directory "!__DIR:%_ROOT_DIR%=!" 1>&2
set _EXITCODE=1
goto :eof
)
Expand All @@ -258,7 +260,7 @@ goto :eof
if not exist "%_GEN_DIR%" mkdir "%_GEN_DIR%"

set __REPLACE_PAIRS=
for %%i in (PRODUCT_CODE PRODUCT_UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR) do (
for %%i in (PRODUCT_ID PRODUCT_UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR) do (
if defined _GUID[%%i] ( set "__GUID=!_GUID[%%i]!"
) else (
for /f %%u in ('powershell -C "(New-Guid).Guid"') do set "__GUID=%%u"
Expand All @@ -284,6 +286,7 @@ set "__OPTS_FILE=%_TARGET_DIR%\candle_opts.txt"

set __CANDLE_OPTS=-nologo
if %_DEBUG%==1 set __CANDLE_OPTS=%__CANDLE_OPTS% -v
set __CANDLE_OPTS=%__CANDLE_OPTS% "-dProductId=%_GUID[PRODUCT_ID]%"
echo %__CANDLE_OPTS% -out "%_TARGET_DIR:\=\\%\\"> "%__OPTS_FILE%"

set "__SOURCES_FILE=%_TARGET_DIR%\candle_sources.txt"
Expand Down Expand Up @@ -417,19 +420,19 @@ if not %ERRORLEVEL%==0 (
goto :eof

:remove
if not defined _GUID[PRODUCT_CODE] (
if not defined _GUID[PRODUCT_ID] (
echo %_ERROR_LABEL% Product code not found 1>&2
set _EXITCODE=1
goto :eof
)
set "__HKLM_UNINSTALL=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
set "__PRODUCT_CODE=%_GUID[PRODUCT_CODE]%"
set "__PRODUCT_ID=%_GUID[PRODUCT_ID]%"

@rem if %_DEBUG%==1 ( echo %_DEBUG_LABEL% reg query "%__HKLM_UNINSTALL%"| findstr /I /C:"%__PRODUCT_CODE%" 1>&2
@rem if %_DEBUG%==1 ( echo %_DEBUG_LABEL% reg query "%__HKLM_UNINSTALL%"| findstr /I /C:"%__PRODUCT_ID%" 1>&2
@rem ) else if %_VERBOSE%==1 ( echo Check if product if already installed 1>&2
@rem )
@rem set __INSTALLED=0
@rem reg query "%__HKLM_UNINSTALL%" | findstr /I /C:"%__PRODUCT_CODE%" && set __INSTALLED=1
@rem reg query "%__HKLM_UNINSTALL%" | findstr /I /C:"%__PRODUCT_ID%" && set __INSTALLED=1
@rem if %__INSTALLED%==0 (
@rem echo %_WARNING_LABEL% Product "%_PROJECT_NAME%" is not installed 1>&2
@rem goto :eof
Expand Down
2 changes: 1 addition & 1 deletion firegiant-examples/SampleFirst/src/SampleFirst.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<ComponentRef Id='ProgramMenuDir' />
</Feature>

<Icon Id="Foobar10.exe" SourceFile="!(bindpath.exe)\FoobarAppl10.exe" />
<Icon Id="Foobar10.exe" SourceFile="!(bindpath.app)\FoobarAppl10.exe" />

</Product>
</Wix>
11 changes: 6 additions & 5 deletions firegiant-examples/SampleLocalization/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ if exist "%__PROPS_FILE%" (
)
)
if defined __cultures set "_CULTURES_DEFAULT=!__cultures!"
@rem PRODUCT_CODE UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR
@rem PRODUCT_CODE PRODUCT_UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR
if defined __PRODUCT_CODE set "_GUID[PRODUCT_CODE]=!__PRODUCT_CODE!"
if defined __UPGRADE_CODE set "_GUID[UPGRADE_CODE]=!__UPGRADE_CODE!"
if defined __PRODUCT_UPGRADE_CODE set "_GUID[PRODUCT_UPGRADE_CODE]=!__PRODUCT_UPGRADE_CODE!"
if defined __MAIN_EXECUTABLE set "_GUID[MAIN_EXECUTABLE]=!__MAIN_EXECUTABLE!"
if defined __HELPER_LIBRARY set "_GUID[HELPER_LIBRARY]=!__HELPER_LIBRARY!"
if defined __MANUAL set "_GUID[MANUAL]=!__MANUAL!"
Expand Down Expand Up @@ -241,14 +241,14 @@ if %_VERBOSE%==1 (
echo Usage: %__BEG_O%%_BASENAME% { ^<option^> ^| ^<subcommand^> }%__END%
echo.
echo %__BEG_P%Options:%__END%
echo %__BEG_O%-debug%__END% show commands executed by this script
echo %__BEG_O%-debug%__END% display commands executed by this script
echo %__BEG_O%-timer%__END% display total execution time
echo %__BEG_O%-verbose%__END% display progress messages
echo.
echo %__BEG_P%Subcommands:%__END%
echo %__BEG_O%clean%__END% delete generated files
echo %__BEG_O%help%__END% display this help message
echo %__BEG_O%install%__END% execute Windows installer %__BEG_O%%_PROJECT_NAME%%__END%
echo %__BEG_O%install%__END% execute Windows installer "%__BEG_O%%_PROJECT_NAME%%__END%"
echo %__BEG_O%link%__END% create Windows installer from WXS/WXI/WXL files
echo %__BEG_O%remove%__END% remove installed program ^(same as %__BEG_O%uninstall%__END%^)
echo %__BEG_O%uninstall%__END% remove installed program
Expand All @@ -267,6 +267,7 @@ if %_DEBUG%==1 ( echo %_DEBUG_LABEL% rmdir /s /q "%__DIR%" 1>&2
)
rmdir /s /q "%__DIR%"
if not %ERRORLEVEL%==0 (
echo %_ERROR_LABEL% Failed to delete directory "!__DIR:%_ROOT_DIR%=!" 1>&2
set _EXITCODE=1
goto :eof
)
Expand All @@ -276,7 +277,7 @@ goto :eof
if not exist "%_GEN_DIR%" mkdir "%_GEN_DIR%"

set __REPLACE_PAIRS=
for %%i in (PRODUCT_CODE UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR) do (
for %%i in (PRODUCT_CODE PRODUCT_UPGRADE_CODE MAIN_EXECUTABLE HELPER_LIBRARY MANUAL PROGRAM_MENU_DIR) do (
if defined _GUID[%%i] ( set "__GUID=!_GUID[%%i]!"
) else (
for /f %%u in ('powershell -C "(New-Guid).Guid"') do set "__GUID=%%u"
Expand Down
Loading

0 comments on commit 1738cd5

Please sign in to comment.