mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 15:15:07 +03:00
Update config when installing
This commit is contained in:
parent
122e1f4ba5
commit
71f8096dac
1 changed files with 13 additions and 7 deletions
|
@ -102,10 +102,6 @@ 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">
|
||||||
|
@ -147,6 +143,15 @@ 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="updateconfig.bat"
|
||||||
|
DiskId="1"
|
||||||
|
Source="config.bat"
|
||||||
|
KeyPath="yes"/>
|
||||||
|
</Component>
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
@ -156,20 +161,21 @@ 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"
|
||||||
BinaryKey="config.bat"
|
ExeCommand="cmd.exe /c updateconfig.bat"
|
||||||
Execute="immediate"
|
Execute="immediate"
|
||||||
Return="asyncWait"/>
|
Return="asyncWait" />
|
||||||
|
|
||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
<Custom
|
<Custom
|
||||||
Action="UpdateGenerateConfig"
|
Action="UpdateGenerateConfig"
|
||||||
Before="InstallFiles" />
|
After="InstallFiles" />
|
||||||
</InstallExecuteSequence>
|
</InstallExecuteSequence>
|
||||||
|
|
||||||
</Product>
|
</Product>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue