Change condition

This commit is contained in:
Neil Alexander 2021-03-07 13:35:58 +00:00
parent e3976feb7a
commit 103ed32cdd

View file

@ -41,9 +41,11 @@ if not exist %ALLUSERSPROFILE%\\Yggdrasil (
) )
if not exist %ALLUSERSPROFILE%\\Yggdrasil\\yggdrasil.conf ( if not exist %ALLUSERSPROFILE%\\Yggdrasil\\yggdrasil.conf (
if exist yggdrasil.exe ( if exist yggdrasil.exe (
if not exist %ALLUSERSPROFILE%\\Yggdrasil\\yggdrasil.conf (
yggdrasil.exe -genconf > %ALLUSERSPROFILE%\\Yggdrasil\\yggdrasil.conf yggdrasil.exe -genconf > %ALLUSERSPROFILE%\\Yggdrasil\\yggdrasil.conf
) )
) )
)
EOF EOF
# Work out metadata for the package info # Work out metadata for the package info
@ -188,9 +190,7 @@ cat > wix.xml << EOF
<InstallExecuteSequence> <InstallExecuteSequence>
<Custom <Custom
Action="UpdateGenerateConfig" Action="UpdateGenerateConfig"
Before="StartServices"> Before="StartServices" />
NOT Installed AND NOT REMOVE
</Custom>
</InstallExecuteSequence> </InstallExecuteSequence>
</Product> </Product>