mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +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"
|
||||
EmbedCab="yes" />
|
||||
|
||||
<Binary
|
||||
Id='config.bat'
|
||||
SourceFile='config.bat' />
|
||||
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<Directory Id="${PKGINSTFOLDER}" Name="PFiles">
|
||||
<Directory Id="YggdrasilInstallFolder" Name="Yggdrasil">
|
||||
|
@ -147,6 +143,15 @@ cat > wix.xml << EOF
|
|||
Source="yggdrasilctl.exe"
|
||||
KeyPath="yes"/>
|
||||
</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>
|
||||
|
||||
|
@ -156,20 +161,21 @@ 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"
|
||||
BinaryKey="config.bat"
|
||||
ExeCommand="cmd.exe /c updateconfig.bat"
|
||||
Execute="immediate"
|
||||
Return="asyncWait" />
|
||||
|
||||
<InstallExecuteSequence>
|
||||
<Custom
|
||||
Action="UpdateGenerateConfig"
|
||||
Before="InstallFiles" />
|
||||
After="InstallFiles" />
|
||||
</InstallExecuteSequence>
|
||||
|
||||
</Product>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue