Guest User

Untitled

a guest
Dec 6th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. <CustomAction Id="SetNEW_INSTALLATION_DIR" Property="NEW_INSTALLATION_DIR" Value="[TARGETDIR]" />
  2. <CustomAction Id="SetTARGETDIR" Property="TARGETDIR" Value="[NEW_INSTALLATION_DIR]" />
  3.  
  4. <Directory Id="TARGETDIR" Name="SourceDir">
  5. <Directory Id="DesktopFolder" Name="Desktop">
  6. <Component Id="com_dirDesktopFolder" Guid="2C03B93B-6AD5-423B-AC82-C47086091167" Transitive="no">
  7. <RemoveFolder Id="_91A11276_62D8_4D5C_A7B9_038E11FBED7C" On="uninstall" />
  8. <RegistryValue Root="HKCU" Key="Software[Manufacturer][ProductName]Installer" Name="com_dirDesktopFolder" Type="string" Value="Desktop directory" KeyPath="yes" />
  9. <Shortcut Id="_FE3FA230_E8DD_644E_A65C_A88910C3EA9E" Name="XScanAgent" Show="normal" WorkingDirectory="TARGETDIR" Target="[TARGETDIR]XScanAgent.exe" Icon="_FA446A69354732512" />
  10. </Component>
  11. </Directory>
  12. <Directory Id="ProgramMenuFolder" Name="Program Menu">
  13. <Directory Id="_0F7F887F_A84B_1044_882F_E96C32FB633B" Name="XX Technologies">
  14. <Component Id="com_dir_0F7F887F_A84B_1044_882F_E96C32FB633B" Guid="5EF2B0EE-2F20-44C9-BA9D-C8437C1D1888" Transitive="no">
  15. <RemoveFolder Id="_1948E954_F6B1_4BCB_ABAC_50956B3D475E" On="uninstall" />
  16. <RegistryValue Root="HKCU" Key="Software[Manufacturer][ProductName]Installer" Name="com_dir_0F7F887F_A84B_1044_882F_E96C32FB633B" Type="string" Value="XX Technologies directory" KeyPath="yes" />
  17. <Shortcut Id="_F460FBD2_922C_504E_8CDD_3D3D89972BE8" Name="X ScanAgent" Show="normal" WorkingDirectory="TARGETDIR" Target="[TARGETDIR]XScanAgent.exe" Icon="_FA446A69354732512" />
  18. </Component>
  19. </Directory>
  20. </Directory>
  21. <!-- The 'XService' project output. -->
  22. <Directory Id="XService.Binaries" />
  23. <Component Id="com_15D90F27_CD47_0144_DFA6_22A526BEB7FB" Guid="D9F14003-81D4-4239-9E6C-F3D3080AD44C" Permanent="no" SharedDllRefCount="no" Transitive="no">
  24. <File Id="_15D90F27_CD47_0144_DFA6_22A526BEB7FB" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="SyslogNet.Client.dll" Source="$(var.XScanAgent.TargetDir)SyslogNet.Client.dll" KeyPath="yes" />
  25. </Component>
  26. </Directory>
  27.  
  28. <Publish Event="DoAction" Value="SetNEW_INSTALLATION_DIR">1</Publish>
  29.  
  30. <UI Id="ChangeInstallationDirectoryDlg">
  31. <Dialog Id="ChangeInstallationDirectory" X="50" Y="50" Width="373" Height="287" Title="[ProductName]">
  32. <Control Id="LogFilePathValue" Type="PathEdit" X="30" Y="131" Width="298" Height="15" Property="NEW_INSTALLATION_DIR" />
  33. <Control Id="LogFilePathButton" Type="PushButton" X="30" Y="94" Width="56" Height="17" Text="Browse">
  34. <Publish Property="NEW_INSTALLATION_DIR_TEMP" Value="[NEW_INSTALLATION_DIR]" Order="1">1</Publish>
  35. <Publish Event="SpawnDialog" Value="MyChangeInstallationDirectoryDialog" Order="2">1</Publish>
  36. </Control>
  37. <Control Id="Next" Type="PushButton" X="300" Y="261" Width="66" Height="18" Text="{VSI_MS_Sans_Serif13.0_0_0}&Next >" TabSkip="no" Default="yes">
  38. <Publish Event="EndDialog" Value="Return"><![CDATA[ChangeInstallationDirectory_NextArgs=""]]></Publish>
  39. <Publish Event="NewDialog" Value="[ChangeInstallationDirectory_NextArgs]"><![CDATA[ChangeInstallationDirectory_NextArgs<>""]]></Publish>
  40. </Control>
  41. <Control Id="Cancel" Type="PushButton" X="156" Y="261" Width="66" Height="18" Text="{VSI_MS_Sans_Serif13.0_0_0}Cancel" TabSkip="no" Cancel="yes">
  42. <Publish Event="SpawnDialog" Value="Cancel" />
  43. </Control>
  44. <Control Id="Previous" Type="PushButton" X="228" Y="261" Width="66" Height="18" Text="{VSI_MS_Sans_Serif13.0_0_0}< &Back" TabSkip="no">
  45. <Condition Action="disable"><![CDATA[ChangeInstallationDirectory_PrevArgs=""]]></Condition>
  46. <Condition Action="enable"><![CDATA[ChangeInstallationDirectory_PrevArgs<>""]]></Condition>
  47. <Publish Event="NewDialog" Value="[ChangeInstallationDirectory_PrevArgs]"><![CDATA[ChangeInstallationDirectory_PrevArgs<>""]]></Publish>
  48. </Control>
  49. <Control Id="BannerBmp" Type="Bitmap" X="0" Y="0" Width="375" Height="52" Text="_cb04f8e040b3460f8af920e71dde4521" TabSkip="no" Disabled="yes" />
  50. <Control Id="BodyText" Type="Text" X="9" Y="63" Width="354" Height="42" Text="{VSI_MS_Sans_Serif13.0_0_0}" TabSkip="yes" NoPrefix="yes" />
  51. <Control Id="BannerText" Type="Text" X="9" Y="9" Width="306" Height="33" Text="{VSI_MS_Sans_Serif16.0_1_0}Change installation folder" TabSkip="yes" Transparent="yes" NoPrefix="yes" />
  52. <Control Id="Control348" Type="Line" X="0" Y="252" Width="375" Height="6" Text="{VSI_MS_Sans_Serif13.0_0_0}MsiHorizontalLine" TabSkip="yes" Disabled="yes" />
  53. <Control Id="Control353" Type="Line" X="0" Y="52" Width="375" Height="6" Text="{VSI_MS_Sans_Serif16.0_1_0}MsiHorizontalLine" TabSkip="yes" Disabled="yes" />
  54. </Dialog>
  55. <Dialog Id="MyChangeInstallationDirectoryDialog" Width="370" Height="230" Title="Change Installation Folder">
  56. <Control Id="PathEdit" Type="PathEdit" X="26" Y="165" Width="320" Height="15" Property="NEW_INSTALLATION_DIR_TEMP" />
  57. <Control Id="OK" Type="PushButton" X="240" Y="206" Width="56" Height="17" Default="yes" Text="OK">
  58. <Publish Property="NEW_INSTALLATION_DIR" Value="[NEW_INSTALLATION_DIR_TEMP]" Order="1">1</Publish>
  59. <!--<Publish Property="TARGETDIR" Value="[NEW_INSTALLATION_DIR]" Order="2">1</Publish>-->
  60. <Publish Event="DoAction" Value="SetTARGETDIR" Order="2">1</Publish>
  61. <Publish Event="EndDialog" Value="Return" Order="3">1</Publish>
  62. </Control>
  63. <Control Id="Cancel" Type="PushButton" X="304" Y="206" Width="56" Height="17" Cancel="yes" Text="Cancel">
  64. <Publish Event="EndDialog" Value="Return">1</Publish>
  65. </Control>
  66. <Control Id="DirectoryCombo" Type="DirectoryCombo" X="29" Y="15" Width="250" Height="16" Property="NEW_INSTALLATION_DIR_TEMP" Fixed="yes" Remote="yes">
  67. <Subscribe Event="IgnoreChange" Attribute="IgnoreChange" />
  68. </Control>
  69. <!--<Control Id="WixUI_Bmp_Up" Type="PushButton" X="298" Y="55" Width="19" Height="19" Icon="yes" FixedSize="yes" IconSize="16" Text="Bmp_Up">
  70. <Publish Event="DirectoryListUp" Value="0">1</Publish>
  71. </Control>-->
  72. <Control Id="NewFolder" Type="PushButton" X="294" Y="15" Width="56" Height="19" Icon="yes" FixedSize="yes" IconSize="16" Text="New Folder">
  73. <Publish Event="DirectoryListNew" Value="0">1</Publish>
  74. </Control>
  75. <Control Id="DirectoryList" Type="DirectoryList" X="26" Y="45" Width="320" Height="91" Property="NEW_INSTALLATION_DIR_TEMP" Sunken="yes" TabSkip="no" />
  76. <Control Id="PathLabel" Type="Text" X="26" Y="146" Width="320" Height="10" TabSkip="no" Text="Installation Folder" />
  77. <Control Id="BottomLine" Type="Line" X="0" Y="195" Width="370" Height="2" />
  78. </Dialog>
  79. </UI>
Add Comment
Please, Sign In to add comment