mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 23:25:36 +03:00
Try embedding config script
This commit is contained in:
parent
e1b0d0f20c
commit
122e1f4ba5
1 changed files with 7 additions and 13 deletions
|
@ -102,6 +102,10 @@ cat > wix.xml << EOF
|
|||
Cabinet="Media.cab"
|
||||
EmbedCab="yes" />
|
||||
|
||||
<Binary
|
||||
Id='config.bat'
|
||||
SourceFile='config.bat' />
|
||||
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<Directory Id="${PKGINSTFOLDER}" Name="PFiles">
|
||||
<Directory Id="YggdrasilInstallFolder" Name="Yggdrasil">
|
||||
|
@ -143,15 +147,6 @@ cat > wix.xml << EOF
|
|||
Source="yggdrasilctl.exe"
|
||||
KeyPath="yes"/>
|
||||
</Component>
|
||||
|
||||
<Component Id="ConfigScript" Guid="64a3733b-c98a-4732-85f3-20cd7da1a785">
|
||||
<File
|
||||
Id="Configbat"
|
||||
Name="config.bat"
|
||||
DiskId="1"
|
||||
Source="config.bat"
|
||||
KeyPath="yes"/>
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
|
@ -161,21 +156,20 @@ cat > wix.xml << EOF
|
|||
<Feature Id="Complete" Level="1">
|
||||
<ComponentRef Id="MainExecutable" />
|
||||
<ComponentRef Id="CtrlExecutable" />
|
||||
<ComponentRef Id="ConfigScript" />
|
||||
<MergeRef Id="Wintun" />
|
||||
</Feature>
|
||||
|
||||
<CustomAction
|
||||
Id="UpdateGenerateConfig"
|
||||
Directory="YggdrasilInstallFolder"
|
||||
ExeCommand="config.bat"
|
||||
Execute="commit"
|
||||
BinaryKey="config.bat"
|
||||
Execute="immediate"
|
||||
Return="asyncWait"/>
|
||||
|
||||
<InstallExecuteSequence>
|
||||
<Custom
|
||||
Action="UpdateGenerateConfig"
|
||||
Before="MsiConfigureServices" />
|
||||
Before="InstallFiles" />
|
||||
</InstallExecuteSequence>
|
||||
|
||||
</Product>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue