我想使用WixUI_Minimal安装程序,但我不想要许可页面.我怎样才能做到这一点?
我正在尝试将文件复制到新位置,维护目录结构.
$source = "c:\some\path\to\a\file.txt"
destination = "c:\a\more\different\path\to\the\file.txt"
Copy-Item $source $destination -Force -Recurse
Run Code Online (Sandbox Code Playgroud)
但我得到一个DirectoryNotFoundException:
Copy-Item : Could not find a part of the path 'c:\a\more\different\path\to\the\file.txt'
Run Code Online (Sandbox Code Playgroud) 我开始使用WiX进行自动构建以创建我的c#项目的msi,并且遇到错误"Undefined preprocessor variable'$(var.MyProject.TargetDir)'"
我使用的是最新的WiX v3.0.5419.在我的wxs文件中,我试图使用此网页上列出的预处理器变量(http://blogs.msdn.com/jrock/archive/2008/01/29/complete-list-of-candle-preprocessor- variables.aspx)
<Component Id="MyId" Guid="MyGuid">
<File Id="MyId" Name="MyName" KeyPath="yes"
Source="$(var.MyProject.TargetDir)\MyName.dll" />
</Component>
Run Code Online (Sandbox Code Playgroud)
我已将MyProject的引用添加到.wixproj中,如果我在记事本中打开它,我可以看到引用.
<ItemGroup>
<ProjectReference Include="..\MyProject.csproj">
<Name>MyProject</Name>
<Project>{guid}</Project>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
Run Code Online (Sandbox Code Playgroud)
这是我用来创建msi的nant构建脚本.也许是因为.wixproj知道构建中没有使用的项目引用?
<exec basedir="${tools.wix}" managed="true" program="candle.exe">
<arg line='-out "${tools.wix.objfile}"' />
<arg value="../MySetup.wxs" />
</exec>
Run Code Online (Sandbox Code Playgroud)
请问有人能开导我吗?
我正在尝试为我的wix安装项目指定许可证.
我在wordpad/notepad/vs中创建了一个带有几个虚拟线的rtf,我尝试了几种不同的方式,因为我读到了一个问题,但是我不认为这应该适用于此,无论如何我也打开了它在记事本++中并验证其中没有隐藏的时髦字符.
我正在指定文件
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\Resources\test.rtf" />
Run Code Online (Sandbox Code Playgroud)
该文件存在于project\Resources目录下.
当我运行安装程序时,许可证区域中显示的所有内容都是一个空白文本框,没有滚动条等.
还有什么我应该做的吗?
我正在开发一个自定义PowerShell模块,我想在与另一台计算机的远程会话的上下文中使用它.以下代码(显然不起作用)解释了我想要实现的目标:
import-module .\MyCustomModule.psm1
$session = new-pssession -computerName server01
invoke-command -session $session -scriptblock {
<# use function defined in MyCustomModule here #>
}
Run Code Online (Sandbox Code Playgroud)
第一个问题是,是否完全可以实现这种情况?我的意思是我只希望我的自定义模块实际存在于我的机器上,而不是远程服务器上.
我找到了这个帖子,但我没有管理它 - 它不允许从远程机器创建一个会话回到本地.可能,我面对在该线程的评论中提到的配置限制......此外,作者提到了对我的解决方案至关重要的性能影响......
如果那可能,那怎么样?
PowerShell的版本目前不是一个约束 - 如果解决方案仅在PS 3.0中可用 - 我可以忍受这个.
powershell powershell-2.0 powershell-remoting powershell-3.0
您好我已经使用TeamCity构建服务器.我的项目是Sitecore Web Application.我正在使用TDS(HedgehogDevelopment).我在TeamCity中使用MS build设置了构建设置,当在构建配置管理器中禁用TDS项目时,它看起来像是在工作.但后来它变得很糟糕我得到网络错误
C:\ Program Files(x86)\ MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets(310,5):错误MSB4036:找不到"TransformXml"任务.请检查以下内容:1.)项目文件中任务的名称与任务类的名称相同.2.)任务类是"public"并实现Microsoft.Build.Framework.ITask接口.3.)在项目文件或位于"C:\ Windows\Microsoft.NET\Framework64\v3.5"目录中的*.tasks文件中正确声明任务.Project NetKey.TDSMaster\MyProject.TDSMaster.scproj失败.项目网站\ MyProject.sln失败
错误描述中的帮助不适合我.我在构建机器上没有VS 2012.我已安装Microsoft Visual Studio 2012 Shell以支持我的Web项目.怎么解决?谢谢.
Kendo UI没有附带本地化包.您只能选择仅设置数字和日期格式的文化文件,而不能选择小部件中显示的实际文本(例如:寻呼机文本 - 每页的项目数,下一页等,过滤器菜单(等于等),网格部分(在这里拖一列......)等)
要本地化小部件,必须在每个小部件的各个选项中传递一堆消息,以覆盖Kendo UI默认使用的消息.像这样的东西:
filterable: {
messages: {
info: "Título:", // sets the text on top of the filter menu
filter: "Filtrar", // sets the text for the "Filter" button
clear: "Limpar", // sets the text for the "Clear" button
// when filtering boolean numbers
isTrue: "é verdadeiro", // sets the text for "isTrue" radio button
isFalse: "é falso", // sets the text for "isFalse" radio button
//changes the text of the "And" and "Or" of the filter …Run Code Online (Sandbox Code Playgroud) 不知道为什么,但我发现很难找到可以用于WiX SetProperty声明的Before或After属性的标准值.
我知道以下两个,但我正在寻找一个更详尽的清单.
- AppSearch
- CostFinalize
这是一个使用它的例子:
<SetProperty Id="INSTALLFOLDER.WEBSITECLIENT" Value="[INETPUBWWWROOT]\[VIRTUAL_DIR_VAL]" Before="Install" />
Run Code Online (Sandbox Code Playgroud)
该手册/文档页面上有什么.
我有一个正在安装WiX 3的应用程序 - 大部分安装现在工作正常,但试图让桌面快捷方式工作似乎让我失去了理智......
我安装了我的应用程序,并且我已经在"开始"菜单文件夹上有一个快捷方式 - 工作得很好.但是如何启动并运行桌面快捷方式?
<Product Id="*" Name="....." UpgradeCode="MY-GUID">
<Package Id="*" InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="foobar.cab" EmbedCab="yes" />
<Property Id="ALLUSERS">1</Property>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="FooBar"/>
</Directory>
<Directory Id="DesktopFolder" SourceName="Desktop"/>
<Directory Id="ProgramFilesFolder">
<Directory Id="FoobarDir" Name="FOOBAR">
<Directory Id="INSTALLLOCATION" Name="FooApp">
<Component Id="MainFiles" Guid=".....">
<File Id="FooMainApp" Source="FooMainApp.exe" />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
....
<!-- this shortcut here works just fine ... -->
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="AppShortcut" Guid="...">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="FooBarApp" Description="..."
Target="[INSTALLLOCATION]FooMainApp.exe"
WorkingDirectory="INSTALLLOCATION"/>
</Component>
</DirectoryRef>
<!-- but …Run Code Online (Sandbox Code Playgroud) 我使用Wix和Burn为我的应用程序创建了一个自定义boot-strapper,但是在学习的时候我设法安装了几个早期的变种,它们不会卸载.我想我通过在调用PlanComplete之前运行Engine.Apply来创建问题.
在"添加/删除"程序中构建列表的信息在哪里?手动删除孤立行的最佳方法是什么?
更新 - 我应该说我在64位Windows 7企业版,Service Pack 1上.