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:
parent
e1b0d0f20c
commit
41a2e731eb
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user