mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-03 18:55:08 +03: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
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue