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"
|
Cabinet="Media.cab"
|
||||||
EmbedCab="yes" />
|
EmbedCab="yes" />
|
||||||
|
|
||||||
|
<Binary
|
||||||
|
Id='config.bat'
|
||||||
|
SourceFile='config.bat' />
|
||||||
|
|
||||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||||
<Directory Id="${PKGINSTFOLDER}" Name="PFiles">
|
<Directory Id="${PKGINSTFOLDER}" Name="PFiles">
|
||||||
<Directory Id="YggdrasilInstallFolder" Name="Yggdrasil">
|
<Directory Id="YggdrasilInstallFolder" Name="Yggdrasil">
|
||||||
|
@ -143,15 +147,6 @@ cat > wix.xml << EOF
|
||||||
Source="yggdrasilctl.exe"
|
Source="yggdrasilctl.exe"
|
||||||
KeyPath="yes"/>
|
KeyPath="yes"/>
|
||||||
</Component>
|
</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>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
@ -161,21 +156,20 @@ cat > wix.xml << EOF
|
||||||
<Feature Id="Complete" Level="1">
|
<Feature Id="Complete" Level="1">
|
||||||
<ComponentRef Id="MainExecutable" />
|
<ComponentRef Id="MainExecutable" />
|
||||||
<ComponentRef Id="CtrlExecutable" />
|
<ComponentRef Id="CtrlExecutable" />
|
||||||
<ComponentRef Id="ConfigScript" />
|
|
||||||
<MergeRef Id="Wintun" />
|
<MergeRef Id="Wintun" />
|
||||||
</Feature>
|
</Feature>
|
||||||
|
|
||||||
<CustomAction
|
<CustomAction
|
||||||
Id="UpdateGenerateConfig"
|
Id="UpdateGenerateConfig"
|
||||||
Directory="YggdrasilInstallFolder"
|
Directory="YggdrasilInstallFolder"
|
||||||
ExeCommand="config.bat"
|
BinaryKey="config.bat"
|
||||||
Execute="commit"
|
Execute="immediate"
|
||||||
Return="asyncWait"/>
|
Return="asyncWait"/>
|
||||||
|
|
||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
<Custom
|
<Custom
|
||||||
Action="UpdateGenerateConfig"
|
Action="UpdateGenerateConfig"
|
||||||
Before="MsiConfigureServices" />
|
Before="InstallFiles" />
|
||||||
</InstallExecuteSequence>
|
</InstallExecuteSequence>
|
||||||
|
|
||||||
</Product>
|
</Product>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue