5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 18:45:40 +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:
Neil Alexander 2019-11-28 09:52:14 +00:00 committed by GitHub
parent e1b0d0f20c
commit 41a2e731eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ cat > wix.xml << EOF
<Component Id="ConfigScript" Guid="64a3733b-c98a-4732-85f3-20cd7da1a785">
<File
Id="Configbat"
Name="config.bat"
Name="updateconfig.bat"
DiskId="1"
Source="config.bat"
KeyPath="yes"/>
@ -168,14 +168,16 @@ cat > wix.xml << EOF
<CustomAction
Id="UpdateGenerateConfig"
Directory="YggdrasilInstallFolder"
ExeCommand="config.bat"
Execute="commit"
Return="asyncWait"/>
ExeCommand="cmd.exe /c updateconfig.bat"
Execute="immediate"
Return="asyncWait" />
<InstallExecuteSequence>
<Custom
Action="UpdateGenerateConfig"
Before="MsiConfigureServices" />
After="InstallFiles">
NOT Installed AND NOT REMOVE
</Custom>
</InstallExecuteSequence>
</Product>