wix3

How to define installation folder from command line parameter in Wix installer

六眼飞鱼酱① 提交于 2019-12-22 08:51:39
问题 I install my application to a specific folder using the below wxs code: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLDIR" Name="CompanyName"> <Directory Id="SUBDIR" Name="Application Launcher"> <Component Id="ApplicationFiles" Guid="*"> <File Name="app.exe" Id="AppFile1" Source="app.exe" Vital="yes" /> </Component> </Directory> </Directory> </Directory> </Directory> I want to specify the installation folder with a parameter to be given

How do I share a WiX fragment in two WiX projects?

不打扰是莪最后的温柔 提交于 2019-12-21 17:32:25
问题 We have a WiX fragment in a file SomeDialog.wxs that prompts the user for some information. It's referenced in another fragment in InstallerUI.wxs file that controls the dialog order. Of course, Product.wxs is our main file. Works great. Now I have a second Visual Studio 2008 Wix 3.0 Project for the .MSI of another application and it needs to ask the user for the same information. I can't seem to figure out the best way to share the file so that changing the information requested will result

Is there a way to set a preprocessor variable to the value of a property?

[亡魂溺海] 提交于 2019-12-21 09:27:32
问题 I have a WiX include file with the following code <Fragment Id="PropertyFragment"> <Property Id="DynamicLanguageCode" Value="[SystemLanguageID]" /> <?define productLanguage = [DynamicLanguageCode]?> </Fragment> Now in my Product tag in my WiX script I'd like to set the Language attribute to the value of productLanguage, as it only takes localizable integers. Is there a way I can get my variable to be assigned the value of the property? Thanks 回答1: There seems to be confusion in your mind

WiX set App_Data folder permission to modify for NetworkService

萝らか妹 提交于 2019-12-21 05:44:10
问题 I'm struggling with this one. I need to set the permissions of the App_Data folder in an ASP.Net site to Modify for the NetworkService account via my Wix installer. I tried the following but with no luck. <CreateFolder> <util:PermissionEx GenericAll="yes" ChangePermission="yes" Delete="yes" DeleteChild="yes" User="[WIX_ACCOUNT_NETWORKSERVICE]" /> </CreateFolder> I tried also specifying Append but I got an error saying it's not allowed. 回答1: You want User="NetworkService". There is a list of

How to extract data (file count) from MSI “File” Table

蹲街弑〆低调 提交于 2019-12-21 03:57:18
问题 In our build process there is currently the potential for non-code based files (such as image files) to be added to our web project, but not included in the MSI installer built by WiX. To help prevent this, I want to perform the following in the AfterBuild target for our WiX project: Get a count of all files built (output from web deployment project) Get a count of all files built into MSI (from "File" table in MSI) Compare counts and fail build if they don't match If I fire up Orca I can

How to execute Custom Action before RemoveExistingProducts with After=“InstallValidate” in WiX

倾然丶 夕夏残阳落幕 提交于 2019-12-21 02:42:52
问题 I have something like this: <InstallExecuteSequence> <RemoveExistingProducts After="InstallValidate"/> </InstallExecuteSequence> Since one of the uninstallation fails i need to execute a Custom Action to solve the problem BEFORE RemoveExistingProducts. Something in the lines of: <CustomAction Id="FixStuff" .. /> <InstallExecuteSequence> <Custom Action="FixStuff" Before="RemoveExistingProducts" /> <RemoveExistingProducts After="InstallValidate"/> </InstallExecuteSequence> This of course doesn

How to create/Where to get Wix Bootstrapper for Multiple Instances

爱⌒轻易说出口 提交于 2019-12-20 09:58:19
问题 I'm currently learning how to create msi installers using WiX and it seems I've hit a wall. All is well when I create an MSI containing everything needed for a single environment. I have features, and components, and can install my MSI. Now I'm at the stage where I want to convert this in a SQL Server-style installer, where you have multiple instances support. At the start I want to user to get a screen which allows him to create a new instance, or manage already existing instances. (to

WIX Toolset include multiple files

一个人想着一个人 提交于 2019-12-20 05:57:13
问题 We have a file structure with multiple files and folders. I a ma total newb to the wix toolset and not quite sure, how to include all of these files and keep the directory structure. I know, that I can add files like this: <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> <Component Id="ProductComponent"> <File Id="FILE_InstallMeTXT" Source="InstallMe.txt" KeyPath="yes"/> </Component> </ComponentGroup> But do I have to do this for every single file (we have > 200 files). Kind

How can I change the font colour and type of a string in WiX in one of the standard dialogs?

爷,独闯天下 提交于 2019-12-18 21:20:32
问题 Is there a simple way to change the font colour and (preferably) font type for one of the strings in one of the standard UI dialogs in Wix ? I'd prefer not to copy and paste the entire dialog source code into my file. For example, in the welcome dialog I want to keep WelcomeDlgTitle and WelcomeDlgDescription the same, just change the font colour to white. 回答1: Easily, you just need to define a new TextStyle in white color, e.g. <TextStyle Id="White8" FaceName="Tahoma" Size="8" Red="255" Green

WiX upgrade question - file's major version was incremented, but revision is lower, now old file removed, yet new file is not copied during upgrade

微笑、不失礼 提交于 2019-12-18 17:26:57
问题 I automatically generate a WiX file for my installer based on a directory (it's for a web app), and it includes references to the following 3 .Net assemblies: Migrator.dll Migrator.Framework.dll Migrator.Providers.dll And here is the generate WiX fragments: <Fragment> <DirectoryRef Id="bin"> <Component Id="bin.Migrator.dll" Guid="*"> <File Id="bin.Migrator.dll" Name="Migrator.dll" KeyPath="yes" Source="..\WebApplication\bin\Migrator.dll" /> </Component> </DirectoryRef> </Fragment> <Fragment>