개정판 401c6836
issue #000: wxs modify. (.net framework 버전 체크하여 설치파일 실행)
Change-Id: I358f51fb52b94b89448f952457d4b9f55442495d
MARKUS.wxs | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<?define NetFx461MinRelease = 394254 ?> |
|
2 | 3 |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"> |
3 | 4 |
<Product Id="*" Name="MARKUS" Language="1033" Version="1.0.0.0" Manufacturer="DOFTECH(C)" UpgradeCode="83FC35CA-6B7D-40C3-9D5F-E8F76097B25C"> |
4 | 5 |
<Package Platform="x64" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> |
... | ... | |
12 | 13 |
<Feature Id="ProductFeature" Title="MARKUS" Level="1"> |
13 | 14 |
<ComponentGroupRef Id="MARKUS" /> |
14 | 15 |
</Feature> |
15 |
|
|
16 |
<Property Id="WixShellExecTarget" Value="[INSTALLFOLDER]readme.html" /> |
|
17 |
<Property Id="NETFRAMEWORK40"> |
|
18 |
<RegistrySearch Id="NetFramework40" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full" Name="Install" Type="raw" /> |
|
19 |
</Property> |
|
20 |
<CustomAction Id="SetFX461" Property="WixShellExecTarget" Value="http://go.microsoft.com/fwlink/?LinkId=671743" /> |
|
21 |
<UI> |
|
22 |
<Dialog Id="NetFRWDlg" Width="260" Height="95" Title="[ProductName] Installation" NoMinimize="yes"> |
|
23 |
|
|
24 |
<Control Id="Text" Type="Text" X="48" Y="15" Width="194" Height="40"> |
|
25 |
<Text>This setup requires the .NET Framework version 4.6.1 Please install the .NET Framework and run this setup again. The .NET Framework can be obtained from the web. Would you like to do this now?</Text> |
|
26 |
</Control> |
|
27 |
|
|
28 |
<Control Id="YesButton" Type="PushButton" X="72" Y="67" Width="56" Height="17" Default="yes" Cancel="yes" Text="[ButtonText_Yes]"> |
|
29 |
<Publish Event="DoAction" Value="SetFX461" Order="1">1</Publish> |
|
30 |
<Publish Event="DoAction" Value="LaunchBrowser" Order="2">1</Publish> |
|
31 |
<Publish Event="EndDialog" Value="Exit" Order="3">1</Publish> |
|
32 |
</Control> |
|
33 |
|
|
34 |
<Control Id="NoButton" Type="PushButton" X="132" Y="67" Width="56" Height="17" Default="no" Cancel="yes" Text="[ButtonText_No]"> |
|
35 |
<Publish Event="EndDialog" Value="Exit">1</Publish> |
|
36 |
</Control> |
|
37 |
</Dialog> |
|
38 |
|
|
39 |
<InstallUISequence> |
|
40 |
<Show Dialog="NetFRWDlg" After="AppSearch"> |
|
41 |
(NOT Installed) AND (NOT NETFRAMEWORK40) |
|
42 |
</Show> |
|
43 |
</InstallUISequence> |
|
44 |
</UI> |
|
45 |
<CustomAction Id="LaunchBrowser" |
|
46 |
BinaryKey="WixCA" |
|
47 |
DllEntry="WixShellExec" |
|
48 |
Impersonate="yes" /> |
|
49 |
<InstallExecuteSequence> |
|
50 |
<Custom Action='LaunchBrowser' After='InstallFinalize'>NOT Installed</Custom> |
|
51 |
</InstallExecuteSequence> |
|
52 |
</Product> |
|
53 |
|
|
16 |
</Product> |
|
54 | 17 |
<Fragment> |
55 | 18 |
<Directory Id="TARGETDIR" Name="SourceDir"> |
56 | 19 |
<Directory Id="DesktopFolder" Name="Desktop"> |
... | ... | |
65 | 28 |
<Directory Id="INSTALLFOLDER" Name="MARKUS" /> |
66 | 29 |
</Directory> |
67 | 30 |
</Directory> |
68 |
</Directory> |
|
31 |
</Directory>
|
|
69 | 32 |
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" /> |
70 |
<UIRef Id="WixUI_InstallDir"/> |
|
71 |
|
|
33 |
<UI> |
|
34 |
<UIRef Id="WixUI_InstallDir"/> |
|
35 |
<Publish Dialog="WelcomeDlg" |
|
36 |
Control="Next" |
|
37 |
Event="NewDialog" |
|
38 |
Value="InstallDirDlg" |
|
39 |
Order="2">1</Publish> |
|
40 |
<Publish Dialog="InstallDirDlg" |
|
41 |
Control="Back" |
|
42 |
Event="NewDialog" |
|
43 |
Value="WelcomeDlg" |
|
44 |
Order="2">1</Publish> |
|
45 |
<Publish Dialog="ExitDialog" |
|
46 |
Control="Finish" |
|
47 |
Event="DoAction" |
|
48 |
Value="SetupFX">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed and NOT WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED |
|
49 |
</Publish> |
|
50 |
</UI> |
|
51 |
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/> |
|
52 |
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Install .Net Framework 4.6.1" /> |
|
53 |
<Property Id="WixShellExecTarget" Value="[INSTALLFOLDER]NDP461-KB3102438-Web.exe" /> |
|
54 |
<Property Id="NETFRAMEWORK40"> |
|
55 |
<RegistrySearch Id="NetFramework40" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full" Name="Release" Type="raw" /> |
|
56 |
</Property> |
|
57 |
<Property Id="WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED" Secure="yes" /> |
|
58 |
<SetProperty Id="WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED" Value="1" After="AppSearch"> |
|
59 |
NETFRAMEWORK40 >= "#$(var.NetFx461MinRelease)" |
|
60 |
</SetProperty> |
|
61 |
<CustomAction Id="SetupFX" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> |
|
72 | 62 |
</Fragment> |
73 |
|
|
63 |
|
|
74 | 64 |
<Fragment> |
75 | 65 |
<DirectoryRef Id="TARGETDIR"> |
76 | 66 |
<Component Id="cmp67889FD2219FCD1ECDA0BD9FE906CD7A" Guid="57D045D4-AFC0-4874-8BA9-A1E8B9C348F9" KeyPath="yes"> |
... | ... | |
357 | 347 |
<Component Id="cmpA8E411F92BD54821B9A3CEF8E01BBE63" Directory="MyAppDataFolder" Guid="6BF0D3C5-0684-4E7D-BC53-4CE092A48FFE" Win64='yes'> |
358 | 348 |
<File Id="fil49E6FDC6BDFC49A5AB05A71FB2D3A5AE" KeyPath="yes" Source=".\KCOM\MARKUS.ini" /> |
359 | 349 |
</Component> |
350 |
<Component Id="cmp92F6718F031E4AD2810155492929EE55" Directory="INSTALLFOLDER" Guid="CC6B1FD1-0587-4C56-B2F0-437BFA51B673" Win64='yes'> |
|
351 |
<File Id="fil32BE8515827243CE87971B56055C66F1" KeyPath="yes" Source=".\packages\NDP461-KB3102438-Web.exe" /> |
|
352 |
</Component> |
|
360 | 353 |
</ComponentGroup> |
361 | 354 |
</Fragment> |
362 | 355 |
</Wix> |
내보내기 Unified diff