-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
154 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> | ||
|
||
<Product Id="*" Name="Beckhoff S7 Client" Language="1033" Version="!(bind.FileVersion.exe)" Manufacturer="fbarresi" UpgradeCode="017809a0-af9e-4125-8ec7-cdfa25e34162"> | ||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> | ||
|
||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
<MediaTemplate EmbedCab="yes"/> | ||
|
||
<Feature Id="ProductFeature" Title="TFU002 Beckhoff S7 Client" Level="1"> | ||
<ComponentGroupRef Id="ProductComponents" /> | ||
</Feature> | ||
|
||
<UI Id="UserInterface"> | ||
<Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" /> | ||
<Property Id="WixUI_Mode" Value="Custom" /> | ||
|
||
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> | ||
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="9" Bold="yes" /> | ||
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> | ||
|
||
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> | ||
|
||
<DialogRef Id="ProgressDlg" /> | ||
<DialogRef Id="ErrorDlg" /> | ||
<DialogRef Id="FilesInUse" /> | ||
<DialogRef Id="FatalError" /> | ||
<DialogRef Id="UserExit" /> | ||
|
||
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> | ||
<Publish Dialog="WelcomeDlg" Control="Next" Event="EndDialog" Value="Return" Order="2"></Publish> | ||
|
||
</UI> | ||
<UIRef Id="WixUI_Common" /> | ||
|
||
<Property Id="ACCOUNT" Secure="yes" Value="TFUServiceUser" /> | ||
<Property Id="PASSWORD" Secure="yes" Value="Tw1nc4tR0ck5" /> | ||
</Product> | ||
|
||
<Fragment> | ||
<SetDirectory Id="TWINCAT" Value="[WindowsVolume]TwinCAT"/> | ||
|
||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="TWINCAT" > | ||
<Directory Id="functions" Name="Functions" > | ||
<Directory Id="unofficial" Name="Unofficial" > | ||
<Directory Id="INSTALLFOLDER" Name="BeckhoffS7Client" /> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
</Fragment> | ||
|
||
<Fragment> | ||
|
||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER" > | ||
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --> | ||
<Component Id="ProductComponent" Guid="8227A017-5694-4FC0-97E4-31ED11AF3AA1"> | ||
<!-- TODO: Insert files, registry keys, and other resources here. --> | ||
<File Id="exe" Checksum="yes" Source="..\out\TFU002.Service.exe" /> | ||
|
||
<util:User Domain="[ComputerName]" Id="UpdateUserLogonAsService" UpdateIfExists="no" CreateUser="yes" PasswordNeverExpires="yes" CanNotChangePassword="yes" Name="[ACCOUNT]" Password="[PASSWORD]" LogonAsService="yes" RemoveOnUninstall="no" /> | ||
<ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes" Name="Beckhoff S7 Client Service" DisplayName="Beckhoff S7 Client Service" Description="Beckhoff S7 Client Service" Start="auto" Account=".\[ACCOUNT]" Password="[PASSWORD]" ErrorControl="normal" Interactive="no"> | ||
<util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="none" RestartServiceDelayInSeconds="30" ResetPeriodInDays="1" /> | ||
</ServiceInstall> | ||
<ServiceControl Id="StartService" Name="Beckhoff S7 Client Service" Start="install" Stop="both" Remove="uninstall" Wait="yes" /> | ||
|
||
</Component> | ||
</ComponentGroup> | ||
</Fragment> | ||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | ||
<ProductVersion>3.10</ProductVersion> | ||
<ProjectGuid>ae7c3fe5-1377-4f04-bf4b-ee01b8265744</ProjectGuid> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<OutputName>TFU002.Setup</OutputName> | ||
<OutputType>Package</OutputType> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="Product.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<WixExtension Include="WixUtilExtension"> | ||
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath> | ||
<Name>WixUtilExtension</Name> | ||
</WixExtension> | ||
<WixExtension Include="WixUIExtension"> | ||
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath> | ||
<Name>WixUIExtension</Name> | ||
</WixExtension> | ||
<WixExtension Include="WixNetFxExtension"> | ||
<HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath> | ||
<Name>WixNetFxExtension</Name> | ||
</WixExtension> | ||
</ItemGroup> | ||
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " /> | ||
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> | ||
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" /> | ||
</Target> | ||
<!-- | ||
To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Wix.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters