Files
MeadeGeneric/Meade.net.Setup/AscomLocalServer.wxs
T

38 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<?include $(sys.CURRENTDIR)\Config.wxi?>
<Fragment>
<DirectoryRef Id="INSTALLFOLDER"/>
<ComponentGroup Id="cgAscomLocalServer" Directory="INSTALLFOLDER">
<Component Id="cmpAscomLocalServer" Guid="*">
<File Id="filLocalServerAssembly"
Source="ASCOM.Meade.net.Server.exe"
KeyPath="yes"
Vital="yes"
Assembly=".net"
AssemblyApplication="filLocalServerAssembly" />
</Component>
</ComponentGroup>
<CustomAction Id="RegisterEXE"
Directory="INSTALLFOLDER"
ExeCommand="&quot;[#filLocalServerAssembly]&quot; /register"
Execute="deferred"
Return="ignore"
Impersonate="no"
/>
<CustomAction Id="UnRegisterEXE"
Directory="INSTALLFOLDER"
ExeCommand="&quot;[#filLocalServerAssembly]&quot; /unregister"
Execute="deferred"
Return="ignore"
Impersonate="no"
/>
<InstallExecuteSequence>
<Custom Action="RegisterEXE" Before="InstallFinalize" Condition="NOT Installed" />
<Custom Action="UnRegisterEXE" After="InstallInitialize" Condition="REMOVE ~= &quot;ALL&quot; AND NOT UPGRADINGPRODUCTCODE" />
</InstallExecuteSequence>
</Fragment>
</Wix>