Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <CustomAction Id="SetNEW_INSTALLATION_DIR" Property="NEW_INSTALLATION_DIR" Value="[TARGETDIR]" />
- <CustomAction Id="SetTARGETDIR" Property="TARGETDIR" Value="[NEW_INSTALLATION_DIR]" />
- <Directory Id="TARGETDIR" Name="SourceDir">
- <Directory Id="DesktopFolder" Name="Desktop">
- <Component Id="com_dirDesktopFolder" Guid="2C03B93B-6AD5-423B-AC82-C47086091167" Transitive="no">
- <RemoveFolder Id="_91A11276_62D8_4D5C_A7B9_038E11FBED7C" On="uninstall" />
- <RegistryValue Root="HKCU" Key="Software[Manufacturer][ProductName]Installer" Name="com_dirDesktopFolder" Type="string" Value="Desktop directory" KeyPath="yes" />
- <Shortcut Id="_FE3FA230_E8DD_644E_A65C_A88910C3EA9E" Name="XScanAgent" Show="normal" WorkingDirectory="TARGETDIR" Target="[TARGETDIR]XScanAgent.exe" Icon="_FA446A69354732512" />
- </Component>
- </Directory>
- <Directory Id="ProgramMenuFolder" Name="Program Menu">
- <Directory Id="_0F7F887F_A84B_1044_882F_E96C32FB633B" Name="XX Technologies">
- <Component Id="com_dir_0F7F887F_A84B_1044_882F_E96C32FB633B" Guid="5EF2B0EE-2F20-44C9-BA9D-C8437C1D1888" Transitive="no">
- <RemoveFolder Id="_1948E954_F6B1_4BCB_ABAC_50956B3D475E" On="uninstall" />
- <RegistryValue Root="HKCU" Key="Software[Manufacturer][ProductName]Installer" Name="com_dir_0F7F887F_A84B_1044_882F_E96C32FB633B" Type="string" Value="XX Technologies directory" KeyPath="yes" />
- <Shortcut Id="_F460FBD2_922C_504E_8CDD_3D3D89972BE8" Name="X ScanAgent" Show="normal" WorkingDirectory="TARGETDIR" Target="[TARGETDIR]XScanAgent.exe" Icon="_FA446A69354732512" />
- </Component>
- </Directory>
- </Directory>
- <!-- The 'XService' project output. -->
- <Directory Id="XService.Binaries" />
- <Component Id="com_15D90F27_CD47_0144_DFA6_22A526BEB7FB" Guid="D9F14003-81D4-4239-9E6C-F3D3080AD44C" Permanent="no" SharedDllRefCount="no" Transitive="no">
- <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" />
- </Component>
- </Directory>
- <Publish Event="DoAction" Value="SetNEW_INSTALLATION_DIR">1</Publish>
- <UI Id="ChangeInstallationDirectoryDlg">
- <Dialog Id="ChangeInstallationDirectory" X="50" Y="50" Width="373" Height="287" Title="[ProductName]">
- <Control Id="LogFilePathValue" Type="PathEdit" X="30" Y="131" Width="298" Height="15" Property="NEW_INSTALLATION_DIR" />
- <Control Id="LogFilePathButton" Type="PushButton" X="30" Y="94" Width="56" Height="17" Text="Browse">
- <Publish Property="NEW_INSTALLATION_DIR_TEMP" Value="[NEW_INSTALLATION_DIR]" Order="1">1</Publish>
- <Publish Event="SpawnDialog" Value="MyChangeInstallationDirectoryDialog" Order="2">1</Publish>
- </Control>
- <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">
- <Publish Event="EndDialog" Value="Return"><![CDATA[ChangeInstallationDirectory_NextArgs=""]]></Publish>
- <Publish Event="NewDialog" Value="[ChangeInstallationDirectory_NextArgs]"><![CDATA[ChangeInstallationDirectory_NextArgs<>""]]></Publish>
- </Control>
- <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">
- <Publish Event="SpawnDialog" Value="Cancel" />
- </Control>
- <Control Id="Previous" Type="PushButton" X="228" Y="261" Width="66" Height="18" Text="{VSI_MS_Sans_Serif13.0_0_0}< &Back" TabSkip="no">
- <Condition Action="disable"><![CDATA[ChangeInstallationDirectory_PrevArgs=""]]></Condition>
- <Condition Action="enable"><![CDATA[ChangeInstallationDirectory_PrevArgs<>""]]></Condition>
- <Publish Event="NewDialog" Value="[ChangeInstallationDirectory_PrevArgs]"><![CDATA[ChangeInstallationDirectory_PrevArgs<>""]]></Publish>
- </Control>
- <Control Id="BannerBmp" Type="Bitmap" X="0" Y="0" Width="375" Height="52" Text="_cb04f8e040b3460f8af920e71dde4521" TabSkip="no" Disabled="yes" />
- <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" />
- <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" />
- <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" />
- <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" />
- </Dialog>
- <Dialog Id="MyChangeInstallationDirectoryDialog" Width="370" Height="230" Title="Change Installation Folder">
- <Control Id="PathEdit" Type="PathEdit" X="26" Y="165" Width="320" Height="15" Property="NEW_INSTALLATION_DIR_TEMP" />
- <Control Id="OK" Type="PushButton" X="240" Y="206" Width="56" Height="17" Default="yes" Text="OK">
- <Publish Property="NEW_INSTALLATION_DIR" Value="[NEW_INSTALLATION_DIR_TEMP]" Order="1">1</Publish>
- <!--<Publish Property="TARGETDIR" Value="[NEW_INSTALLATION_DIR]" Order="2">1</Publish>-->
- <Publish Event="DoAction" Value="SetTARGETDIR" Order="2">1</Publish>
- <Publish Event="EndDialog" Value="Return" Order="3">1</Publish>
- </Control>
- <Control Id="Cancel" Type="PushButton" X="304" Y="206" Width="56" Height="17" Cancel="yes" Text="Cancel">
- <Publish Event="EndDialog" Value="Return">1</Publish>
- </Control>
- <Control Id="DirectoryCombo" Type="DirectoryCombo" X="29" Y="15" Width="250" Height="16" Property="NEW_INSTALLATION_DIR_TEMP" Fixed="yes" Remote="yes">
- <Subscribe Event="IgnoreChange" Attribute="IgnoreChange" />
- </Control>
- <!--<Control Id="WixUI_Bmp_Up" Type="PushButton" X="298" Y="55" Width="19" Height="19" Icon="yes" FixedSize="yes" IconSize="16" Text="Bmp_Up">
- <Publish Event="DirectoryListUp" Value="0">1</Publish>
- </Control>-->
- <Control Id="NewFolder" Type="PushButton" X="294" Y="15" Width="56" Height="19" Icon="yes" FixedSize="yes" IconSize="16" Text="New Folder">
- <Publish Event="DirectoryListNew" Value="0">1</Publish>
- </Control>
- <Control Id="DirectoryList" Type="DirectoryList" X="26" Y="45" Width="320" Height="91" Property="NEW_INSTALLATION_DIR_TEMP" Sunken="yes" TabSkip="no" />
- <Control Id="PathLabel" Type="Text" X="26" Y="146" Width="320" Height="10" TabSkip="no" Text="Installation Folder" />
- <Control Id="BottomLine" Type="Line" X="0" Y="195" Width="370" Height="2" />
- </Dialog>
- </UI>
Add Comment
Please, Sign In to add comment