dg-wangtao / wixpackage Goto Github PK
View Code? Open in Web Editor NEWCustomizing the Burn UI via WiX Toolset and wpf.
Customizing the Burn UI via WiX Toolset and wpf.
RT , 由于我改动比较大, 之后也不会提pr
</Directory>
<!--put files to set up-->
<Feature Id="ProductFeature" Title="!(loc.Title)" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<ComponentGroupRef Id="RegistryComponents" />
<ComponentRef Id="ApplicationShortcutMenu" />
<ComponentRef Id="ApplicationShortcutDeskTop" />
<ComponentRef Id="CMP_WriteToRegistry" />
</Feature>
<Component Id="ProductComponent" Directory="INSTALLFOLDER" Guid="84D3BAE6-2758-4FBD-9714-1E052A066830">
<File Source="$(var.helloworld.TargetPath)" Id="myapplication.exe" KeyPath="yes"></File>
</Component>
</ComponentGroup>
<!--Registry-->
<ComponentGroup Id="RegistryComponents" Directory="INSTALLFOLDER">
<Component Id="CMP_WriteToRegistry"
Guid="1ECA3238-1B7B-4818-9A02-FAD3D6773613">
<RegistryKey Action="create" Id="AutoStarKey" Root="HKLM" Key="Software\Microsoft\111">
<RegistryValue Id="autoStarKeyValue" Name="!(loc.ProductName)" Type="string" Value="hellowworld.exe" />
</RegistryKey>
<!--<RegistryValue Id="RegistryValue"
KeyPath="yes"
Action="write"
Root="HKLM"
Key="Software\Microsoft\!(loc.CompanyName)\!(loc.RegistryName)"
Name="!(loc.ProductName)"
Value="!(loc.ProductName)"
Type="string" />-->
</Component>
</ComponentGroup>
<!--Shortcut on Desktop-->
<DirectoryRef Id="DesktopFolder">
<Component Id="ApplicationShortcutDeskTop">
<Condition>
<![CDATA[CREATESHORTCUTDESKTOP="True"]]>
</Condition>
<Shortcut Id="ApplicationDeskTopShortcut"
Name="!(loc.ProductName)"
Description="!(loc.Title)"
Target="[#myapplication.exe]" Icon="icon"
WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
<RemoveFolder Id="DesktopFolder" On="uninstall"/>
<RegistryValue
Root="HKCU"
Key="Software\Microsoft\!(loc.CompanyName)\!(loc.RegistryName)"
Name="installed"
Type="integer"
Value="1"
KeyPath="yes"/>
</Component>
</DirectoryRef>
<!--Shortcut in startmenu-->
<DirectoryRef Id="AppStartMenuFolder">
<Component Id="ApplicationShortcutMenu" Guid="5AE52100-3B6E-4BA7-8A87-ED50F790B316">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="!(loc.ProductName)"
Description="!(loc.Title)"
Target="[#myapplication.exe]" Icon="icon"
WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
<RemoveFolder Id="CleanUpShortCut" Directory="AppStartMenuFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\Microsoft\!(loc.CompanyName)\!(loc.RegistryName)"
Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
尝试用了你提到的判断framework版本并下载安装章节,发现没有作用,用你的代码也是一样,现象是判断了framework版本,但并未进行安装。不知道你是否进行过验证?能想到的区别就是用的3.11版本得wix,不知道是否跟这个有关。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.