This commit is contained in:
v-zhongz 2015-08-10 15:16:50 +08:00
Родитель 95011bfe4f
Коммит 60f12313b3
1 изменённых файлов: 44 добавлений и 9 удалений

Просмотреть файл

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
The MIT License (MIT)
Copyright 2015 Microsoft Corporation Copyright 2015 Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
@ -118,17 +116,54 @@ THE SOFTWARE.
<ComponentRef Id="EnhancedMonitoring.Service" /> <ComponentRef Id="EnhancedMonitoring.Service" />
</Feature> </Feature>
<UIRef Id="WixUI_Minimal" /> <UI Id="WixUI_Minimal">
<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Enhanced Monitoring Service installed successfully." /> <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
<CustomAction Id='LaunchApplication' Directory='INSTALLDIR' Execute='deferred' <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="Minimal" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<!-- This is the welcome dialog you specified-->
<DialogRef Id="WelcomeDlg" />
<!-- Hook the new welcome dialog to the next one in the stack-->
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="PrepareDlg">1</Publish>
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Property Id="ARPNOMODIFY" Value="1" />
</UI>
<UIRef Id="WixUI_Common" />
<CustomAction Id='DeleteLog' Directory='INSTALLDIR' Execute='deferred'
ExeCommand='[SystemFolder]cmd.exe /c &quot;rd /s /q "C:\ProgramData\Enhanced Monitoring"&quot;' Return='ignore' Impersonate = "no" /> ExeCommand='[SystemFolder]cmd.exe /c &quot;rd /s /q "C:\ProgramData\Enhanced Monitoring"&quot;' Return='ignore' Impersonate = "no" />
<InstallExecuteSequence> <InstallExecuteSequence>
<Custom Action='LaunchApplication' After='InstallInitialize'> <Custom Action='DeleteLog' After='InstallInitialize'>
(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")
</Custom> </Custom>
</InstallExecuteSequence> </InstallExecuteSequence>
</Product> </Product>
</Wix> </Wix>