5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 09:30:28 +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"> <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>