mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
More MSI updates (#622)
* Try embedding config script * Update config when installing * Don't update config on uninstall
This commit is contained in:
parent
e1b0d0f20c
commit
41a2e731eb
@ -147,7 +147,7 @@ cat > wix.xml << EOF
|
|||||||
<Component Id="ConfigScript" Guid="64a3733b-c98a-4732-85f3-20cd7da1a785">
|
<Component Id="ConfigScript" Guid="64a3733b-c98a-4732-85f3-20cd7da1a785">
|
||||||
<File
|
<File
|
||||||
Id="Configbat"
|
Id="Configbat"
|
||||||
Name="config.bat"
|
Name="updateconfig.bat"
|
||||||
DiskId="1"
|
DiskId="1"
|
||||||
Source="config.bat"
|
Source="config.bat"
|
||||||
KeyPath="yes"/>
|
KeyPath="yes"/>
|
||||||
@ -168,14 +168,16 @@ cat > wix.xml << EOF
|
|||||||
<CustomAction
|
<CustomAction
|
||||||
Id="UpdateGenerateConfig"
|
Id="UpdateGenerateConfig"
|
||||||
Directory="YggdrasilInstallFolder"
|
Directory="YggdrasilInstallFolder"
|
||||||
ExeCommand="config.bat"
|
ExeCommand="cmd.exe /c updateconfig.bat"
|
||||||
Execute="commit"
|
Execute="immediate"
|
||||||
Return="asyncWait"/>
|
Return="asyncWait" />
|
||||||
|
|
||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
<Custom
|
<Custom
|
||||||
Action="UpdateGenerateConfig"
|
Action="UpdateGenerateConfig"
|
||||||
Before="MsiConfigureServices" />
|
After="InstallFiles">
|
||||||
|
NOT Installed AND NOT REMOVE
|
||||||
|
</Custom>
|
||||||
</InstallExecuteSequence>
|
</InstallExecuteSequence>
|
||||||
|
|
||||||
</Product>
|
</Product>
|
||||||
|
Loading…
Reference in New Issue
Block a user