-
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #832 from dorssel/improve_installer
Improve installer
- Loading branch information
Showing
15 changed files
with
133 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Frans van Dorsselaer | ||
SPDX-License-Identifier: GPL-3.0-only | ||
--> | ||
<Wix | ||
xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall" | ||
> | ||
<Fragment> | ||
<DirectoryRef Id="APPLICATIONFOLDER"> | ||
<Directory Id="PowerShell" Name="PowerShell" /> | ||
</DirectoryRef> | ||
</Fragment> | ||
<Fragment> | ||
<DirectoryRef Id="PowerShell" FileSource="$(PowerShellDir)"> | ||
<Component Id="Usbipd.Automation.dll"> | ||
<File Name="Usbipd.Automation.dll" /> | ||
</Component> | ||
<Component Id="Usbipd.PowerShell.dll"> | ||
<File Name="Usbipd.PowerShell.dll" /> | ||
</Component> | ||
</DirectoryRef> | ||
</Fragment> | ||
<Fragment> | ||
<ComponentGroup Id="PowerShell"> | ||
<ComponentRef Id="Usbipd.Automation.dll" /> | ||
<ComponentRef Id="Usbipd.PowerShell.dll" /> | ||
</ComponentGroup> | ||
</Fragment> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Frans van Dorsselaer | ||
SPDX-License-Identifier: GPL-3.0-only | ||
--> | ||
<Wix | ||
xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall" | ||
> | ||
<Fragment> | ||
<DirectoryRef Id="APPLICATIONFOLDER"> | ||
<!-- Windows uses uppercase spelling for folders related to WSL (and lowercase for files). --> | ||
<Directory Id="WSL" Name="WSL" /> | ||
</DirectoryRef> | ||
</Fragment> | ||
<Fragment> | ||
<DirectoryRef Id="WSL" FileSource="$(var.PublishDir)\WSL"> | ||
<Component Id="WSL_README.md"> | ||
<File Name="README.md" /> | ||
</Component> | ||
<Component Id="usbip"> | ||
<File Name="usbip" /> | ||
</Component> | ||
<Component Id="auto_attach.sh"> | ||
<File Name="auto-attach.sh" /> | ||
</Component> | ||
</DirectoryRef> | ||
|
||
<!-- | ||
This directory gets mounted within WSL, and Linux should not treat ordinary files as executable. | ||
We want to inherit all rights + add a deny for execution of non-executable files. | ||
WiX does not have tooling to add a "deny permission". | ||
NOTE: Add the following for any non-executable files. | ||
--> | ||
<!-- | ||
<SetProperty Id="FixExecutionRights_file.id" Value=""[System64Folder]\icacls.exe" "[#file.id]" /deny "*S-1-1-0:(X)"" Sequence="execute" Before="FixExecutionRights_file.id" /> | ||
<CustomAction Id="FixExecutionRights_file.id" BinaryRef="Wix4UtilCA_X64" DllEntry="WixQuietExec64" Return="ignore" Impersonate="no" Execute="deferred" /> | ||
<InstallExecuteSequence> | ||
<Custom Action="FixExecutionRights_file.id" Before="InstallFinalize" Condition="$file.id=3" /> | ||
</InstallExecuteSequence> | ||
--> | ||
|
||
<SetProperty Id="FixExecutionRights_WSL_README.md" Value=""[System64Folder]\icacls.exe" "[#WSL_README.md]" /deny "*S-1-1-0:(X)"" Sequence="execute" Before="FixExecutionRights_WSL_README.md" /> | ||
<CustomAction Id="FixExecutionRights_WSL_README.md" BinaryRef="Wix4UtilCA_X64" DllEntry="WixQuietExec64" Return="ignore" Impersonate="no" Execute="deferred" /> | ||
|
||
<InstallExecuteSequence> | ||
<Custom Action="FixExecutionRights_WSL_README.md" After="InstallFiles" Condition="$WSL_README.md=3" /> | ||
</InstallExecuteSequence> | ||
</Fragment> | ||
<Fragment> | ||
<ComponentGroup Id="WSL"> | ||
<ComponentRef Id="WSL_README.md" /> | ||
<ComponentRef Id="usbip" /> | ||
<ComponentRef Id="auto_attach.sh" /> | ||
</ComponentGroup> | ||
</Fragment> | ||
</Wix> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters