met setup msi
This commit is contained in:
parent
3ee0d4baf3
commit
425bc4682c
6 changed files with 85 additions and 16 deletions
|
|
@ -1,31 +1,59 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<?define eDosStation_TargetDir=$(var.eDosStation.TargetDir)?>
|
||||
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
||||
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
||||
|
||||
<?define eDosStation_TargetDir=$(var.eDosStation.TargetDir)?>
|
||||
<?define eDosSync_TargetDir=$(var.syncEdosLocal.TargetDir)?><?define syncEdosLocal_TargetDir=$(var.syncEdosLocal.TargetDir)?>
|
||||
<Product Id="*" Name="eDosStation" Language="1033" Version="1.0.0.0" Manufacturer="LSW" UpgradeCode="24e037ca-edbb-49d5-85d4-3a93dd7d10d8">
|
||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
||||
<Product Id="*" Name="eDosStation" Language="1033" Version="1.0.1.0" Manufacturer="SCK CEN Luc" UpgradeCode="24e037ca-edbb-49d5-85d4-3a93dd7d10d8" >
|
||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Comments="EPD lees software en synchronisatie tussen local en remote database" InstallPrivileges="elevated" Platform="x86" />
|
||||
<Media Id="1" EmbedCab="yes" Cabinet="cab" />
|
||||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
||||
|
||||
<Feature Id="ProductFeature" Title="eDosStation" Level="1">
|
||||
<Feature Id="eDosStationFeature" Title="eDosStation" Level="1">
|
||||
<ComponentGroupRef Id="eDosStation" />
|
||||
</Feature>
|
||||
<Feature Id="eDosSyncFeature" Title="eDosSync" Level="1">
|
||||
<ComponentGroupRef Id="eDosSync" />
|
||||
</Feature>
|
||||
</Product>
|
||||
<ComponentGroupRef Id="SyncLog"/>
|
||||
</Feature>
|
||||
</Product>
|
||||
|
||||
|
||||
<Fragment>
|
||||
<CustomAction Id="CreateScheduledTask" Return="check" Directory="eDosSyncFolder"
|
||||
Execute="deferred"
|
||||
Impersonate="no"
|
||||
ExeCommand="SCHTASKS.EXE /CREATE /TN "EDos Sync" /RP "Infopla+8" /XML "[eDosSyncFolder]\edossync.xml"" />
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<InstallExecuteSequence>
|
||||
<Custom Action='CreateScheduledTask' After='InstallFiles'/>
|
||||
</InstallExecuteSequence>
|
||||
</Fragment>
|
||||
|
||||
|
||||
<Fragment>
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<Directory Id="ProgramFilesFolder">
|
||||
|
||||
<Directory Id="INSTALLFOLDER" Name="eDos">
|
||||
<Directory Id="eDosStationFolder" Name="eDosStation" />
|
||||
<Directory Id="eDosSyncFolder" Name="eDosSync" />
|
||||
</Directory>
|
||||
|
||||
</Directory>
|
||||
<Directory Id="ProgramMenuFolder">
|
||||
<Directory Id="ApplicationProgramsFolder" Name="eDos"/>
|
||||
</Directory>
|
||||
<Directory Id="LogFolder" />
|
||||
</Directory>
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<SetDirectory Id="LogFolder" Value="[WindowsVolume]Logs" />
|
||||
|
||||
</Fragment>
|
||||
|
||||
|
||||
<Fragment>
|
||||
<ComponentGroup Id="eDosStation" Directory="eDosStationFolder">
|
||||
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
|
||||
|
|
@ -33,9 +61,9 @@
|
|||
<!-- TODO: Insert files, registry keys, and other resources here. -->
|
||||
<!-- </Component> -->
|
||||
<Component Id="IR_READER_MS_DLL.dll" Guid="7dc99dd1-1611-4397-84ba-ae56ed455f68">
|
||||
<File Id="IR_READER_MS_DLL.dll" Name="IR_READER_MS_DLL.dll" Source="$(var.eDosStation_TargetDir)IR_READER_MS_DLL.dll" />
|
||||
<File Id="IR_READER_MS_DLL.dll" Name="IR_READER_MS_DLL.dll" Source="$(var.eDosStation_TargetDir)IR_READER_MS_DLL.dll" ProcessorArchitecture="x86" Vital="yes" />
|
||||
</Component>
|
||||
<Component Id="Reader2.dll" Guid="64258699-5bc6-49bf-a01c-2297206a37d4">
|
||||
<Component Id="Reader2.dll" Guid="64258699-5bc6-49bf-a01c-2297206a37d4" >
|
||||
<File Id="Reader2.dll" Name="Reader2.dll" Source="$(var.eDosStation_TargetDir)Reader2.dll" />
|
||||
</Component>
|
||||
<Component Id="eDosStation.exe.config" Guid="f052d72c-32dd-4108-80b4-35773564b2cc">
|
||||
|
|
@ -62,7 +90,15 @@
|
|||
<Component Id="EpdBaseClr.dll" Guid="ed22005b-b3ba-4821-a598-d076ac94ea72">
|
||||
<File Id="EpdBaseClr.dll" Name="EpdBaseClr.dll" Source="$(var.eDosStation_TargetDir)EpdBaseClr.dll" />
|
||||
</Component>
|
||||
|
||||
<Component Id="eDosStationShortcut" Guid="85AF80D8-11AC-4B82-89F8-5764A41EF3CE">
|
||||
<Shortcut Id="eDosStationMenuShortcut"
|
||||
Name="eDos Station"
|
||||
Description="eDos Epd issuing"
|
||||
Target="[#eDosStation.exe]"
|
||||
WorkingDirectory="eDosStationFolder"/>
|
||||
<RemoveFolder Id="CleanUpeDosStationShortcut" Directory="ApplicationProgramsFolder" On="uninstall"/>
|
||||
<RegistryValue Root="HKLM" Key="Software\SCKCEN\eDosStation" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
<ComponentGroup Id="eDosSync" Directory="eDosSyncFolder">
|
||||
<Component Id="syncEdosLocal.exe.config" Guid="d1c4ba86-8a63-4b73-9179-a5eab405f8cb">
|
||||
|
|
@ -77,9 +113,30 @@
|
|||
<Component Id="LSWLib.dll" Guid="27679139-5900-4901-b148-751e49c9bc74">
|
||||
<File Id="LSWLib.dll" Name="LSWLib.dll" Source="$(var.syncEdosLocal_TargetDir)LSWLib.dll" />
|
||||
</Component>
|
||||
|
||||
<Component Id="eDosSync.xml" Guid="BC0FB8C2-26B1-47A5-A76F-C0ABE466770D">
|
||||
<File Id="eDosSync.xml" Name="eDosSync.xml" Source="$(var.syncEdosLocal_TargetDir)eDosSync.xml" />
|
||||
</Component>
|
||||
<Component Id="eDosSyncShortcut" Guid="ED01D079-54BA-4D1E-ACCF-6A79565C9D32">
|
||||
<Shortcut Id="eDosSyncMenuShortcut"
|
||||
Name="eDos sync"
|
||||
Description="eDos sync to/from local"
|
||||
Target="[#syncEdosLocal.exe]"
|
||||
WorkingDirectory="eDosSyncFolder"/>
|
||||
<RemoveFolder Id="CleanUpeDosSyncShortCut" Directory="ApplicationProgramsFolder" On="uninstall"/>
|
||||
<RegistryValue Root="HKLM" Key="Software\SCKCEN\eDosSync" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
<ComponentGroup Id="SyncLog">
|
||||
<Component Id="CreateLogFolder" Directory="LogFolder" Guid="EF959CF0-DC34-42A1-9031-2FE454DBED24">
|
||||
<CreateFolder>
|
||||
<util:PermissionEx User="Users" GenericAll="yes" />
|
||||
</CreateFolder>
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
|
||||
|
||||
</Fragment>
|
||||
|
||||
|
||||
|
||||
|
||||
</Wix>
|
||||
|
|
|
|||
|
|
@ -43,6 +43,12 @@
|
|||
<ItemGroup>
|
||||
<Content Include="SetupProject1.wax" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WixExtension Include="WixUtilExtension">
|
||||
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
|
||||
<Name>WixUtilExtension</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' ">
|
||||
|
|
|
|||
|
|
@ -381,7 +381,6 @@ namespace eDosStation
|
|||
|
||||
public void endPage()
|
||||
{
|
||||
MessageBox.Show("TO");
|
||||
this.Close();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--For more information on using transformations see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. -->
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<appSettings>
|
||||
<add key="smtpServer" value="192.168.113.120" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="smtpPort" value="25" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
<add key="smtpFrom" value="lvandenb@sckcen.be" xdt:Transform="Replace" xdt:Locator="Match(key)"/>
|
||||
</appSettings>
|
||||
</configuration>
|
||||
BIN
syncEdosLocal/edossync.xml
Normal file
BIN
syncEdosLocal/edossync.xml
Normal file
Binary file not shown.
|
|
@ -92,6 +92,11 @@
|
|||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="edossync.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\Microsoft.VisualStudio.SlowCheetah.3.2.26\build\Microsoft.VisualStudio.SlowCheetah.targets" Condition="Exists('..\packages\Microsoft.VisualStudio.SlowCheetah.3.2.26\build\Microsoft.VisualStudio.SlowCheetah.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue