Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): adding msi and msi-wrapped to documentation site #7507

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/configuration/msi-wrapped.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<ul>
<li><code id="MsiWrappedOptions-wrappedInstallerArgs">wrappedInstallerArgs</code> String | “undefined” - Extra arguments to provide to the wrapped installer (ie: /S for silent install)</li>
<li><code id="MsiWrappedOptions-impersonate">impersonate</code> = <code>false</code> Boolean - Determines if the wrapped installer should be executed with impersonation</li>
<li><code id="MsiWrappedOptions-upgradeCode">upgradeCode</code> String | “undefined” - The <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa372375(v=vs.85).aspx">upgrade code</a>. Optional, by default generated using app id.</li>
<li><code id="MsiWrappedOptions-warningsAsErrors">warningsAsErrors</code> = <code>true</code> Boolean - If <code>warningsAsErrors</code> is <code>true</code> (default): treat warnings as errors. If <code>warningsAsErrors</code> is <code>false</code>: allow warnings.</li>
<li><code id="MsiWrappedOptions-additionalWixArgs">additionalWixArgs</code> Array&lt;String&gt; | “undefined” - Any additional arguments to be passed to the WiX installer compiler, such as <code>[&quot;-ext&quot;, &quot;WixUtilExtension&quot;]</code></li>
<li><code id="MsiWrappedOptions-oneClick">oneClick</code> Boolean</li>
<li><code id="MsiWrappedOptions-perMachine">perMachine</code> = <code>false</code> Boolean - Whether to install per all users (per-machine).</li>
<li><code id="MsiWrappedOptions-runAfterFinish">runAfterFinish</code> = <code>true</code> Boolean - Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.</li>
</ul>
<hr>
<ul>
<li><code id="MsiWrappedOptions-createDesktopShortcut">createDesktopShortcut</code> = <code>true</code> Boolean | “always” - Whether to create desktop shortcut. Set to <code>always</code> if to recreate also on reinstall (even if removed by user).</li>
<li><code id="MsiWrappedOptions-createStartMenuShortcut">createStartMenuShortcut</code> = <code>true</code> Boolean - Whether to create start menu shortcut.</li>
<li><code id="MsiWrappedOptions-menuCategory">menuCategory</code> = <code>false</code> Boolean | String - Whether to create submenu for start menu shortcut and program files directory. If <code>true</code>, company name will be used. Or string value.</li>
<li><code id="MsiWrappedOptions-shortcutName">shortcutName</code> String | “undefined” - The name that will be used for all shortcuts. Defaults to the application name.</li>
</ul>
15 changes: 15 additions & 0 deletions docs/configuration/msi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<ul>
<li><code id="MsiOptions-oneClick">oneClick</code> = <code>true</code> Boolean - One-click installation.</li>
<li><code id="MsiOptions-upgradeCode">upgradeCode</code> String | “undefined” - The <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa372375(v=vs.85).aspx">upgrade code</a>. Optional, by default generated using app id.</li>
<li><code id="MsiOptions-warningsAsErrors">warningsAsErrors</code> = <code>true</code> Boolean - If <code>warningsAsErrors</code> is <code>true</code> (default): treat warnings as errors. If <code>warningsAsErrors</code> is <code>false</code>: allow warnings.</li>
<li><code id="MsiOptions-additionalWixArgs">additionalWixArgs</code> Array&lt;String&gt; | “undefined” - Any additional arguments to be passed to the WiX installer compiler, such as <code>[&quot;-ext&quot;, &quot;WixUtilExtension&quot;]</code></li>
<li><code id="MsiOptions-perMachine">perMachine</code> = <code>false</code> Boolean - Whether to install per all users (per-machine).</li>
<li><code id="MsiOptions-runAfterFinish">runAfterFinish</code> = <code>true</code> Boolean - Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.</li>
</ul>
<hr>
<ul>
<li><code id="MsiOptions-createDesktopShortcut">createDesktopShortcut</code> = <code>true</code> Boolean | “always” - Whether to create desktop shortcut. Set to <code>always</code> if to recreate also on reinstall (even if removed by user).</li>
<li><code id="MsiOptions-createStartMenuShortcut">createStartMenuShortcut</code> = <code>true</code> Boolean - Whether to create start menu shortcut.</li>
<li><code id="MsiOptions-menuCategory">menuCategory</code> = <code>false</code> Boolean | String - Whether to create submenu for start menu shortcut and program files directory. If <code>true</code>, company name will be used. Or string value.</li>
<li><code id="MsiOptions-shortcutName">shortcutName</code> String | “undefined” - The name that will be used for all shortcuts. Defaults to the application name.</li>
</ul>
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ nav:
- Any Windows Target: configuration/win.md
- NSIS: configuration/nsis.md
- AppX: configuration/appx.md
- MSI: configuration/msi.md
- MSI Wrapped: configuration/msi-wrapped.md
- Squirrel.Windows: configuration/squirrel-windows.md

- Linux:
Expand Down
12 changes: 10 additions & 2 deletions scripts/jsdoc2md2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ async function render2(files, jsdoc2MdOptions) {
if (context.typeItem.name === "LinuxTargetSpecificOptions" && context.object.name === "DebOptions") {
return null
}
if (context.typeItem.name === "TargetSpecificOptions" && context.object.name === "NsisOptions") {
if (context.typeItem.name === "TargetSpecificOptions" && ["NsisOptions", "MsiOptions", "MsiWrappedOptions"].includes(context.object.name)) {
return null
}

// looks strange when on LinuxConfiguration page "Inherited from `CommonLinuxOptions`:" - no configuration inheritance in this case
if (context.object.name === "LinuxConfiguration" || (context.object.name === "NsisOptions" && (context.typeItem.name === "CommonNsisOptions" || context.typeItem.name === "CommonWindowsInstallerConfiguration"))) {
if (context.object.name === "LinuxConfiguration" || (["NsisOptions", "MsiOptions", "MsiWrappedOptions"].includes(context.object.name) && (context.typeItem.name === "CommonNsisOptions" || context.typeItem.name === "CommonWindowsInstallerConfiguration"))) {
return ""
}
}
Expand Down Expand Up @@ -155,6 +155,12 @@ async function render2(files, jsdoc2MdOptions) {
if (types.some(it => it.endsWith(".NsisOptions") || it === "NsisOptions")) {
return "[NsisOptions](nsis)"
}
if (types.some(it => it.endsWith("MsiOptions"))) {
return "[MsisOptions](msi)"
}
if (types.some(it => it.endsWith("MsiWrappedOptions"))) {
return "[MsisWrappedOptions](msi-wrapped)"
}
if (types.some(it => it.endsWith("AppXOptions"))) {
return "[AppXOptions](appx)"
}
Expand Down Expand Up @@ -206,6 +212,8 @@ async function render2(files, jsdoc2MdOptions) {
new Page("configuration/pkg.md", "PkgOptions"),

new Page("configuration/win.md", "WindowsConfiguration"),
new Page("configuration/msi-wrapped.md", "MsiWrappedOptions"),
new Page("configuration/msi.md", "MsiOptions"),
new Page("configuration/appx.md", "AppXOptions"),
new Page("configuration/squirrel-windows.md", "SquirrelWindowsOptions"),

Expand Down