windows-installer

How do I specify Visual Studio Installer Conditions?

北战南征 提交于 2020-01-10 08:59:32
问题 I have a Visual Studio Installation Project and I want the Installer to create a specific folder only if a check box on a 'Checkboxes (A)' form that I've added to the project UI is checked. The name of the property for the checkbox is CHECKBOXA1 but I have no idea what to put in the Condition property of the folder so that it only gets created if the checkbox is checked. 回答1: In the 'Condition' property for your folder, place the following: CHECKBOXA1=1 This will make sure that the folder is

WiX: How to register application to start when Windows launches?

假装没事ソ 提交于 2020-01-09 16:50:08
问题 I'm exploring distribution of .NET desktop applications with MSI generated by WiX. So far it works great. But I've got a few questions, googling can't help out with. What's the advised way of registering application to start when windows launches (in WiX)? What WixUI could I use and how? Notes: The application is not a Windows Service and should not be registered as such. It would be nice to let user to disable that option in the setup process. Thanks in advance! 回答1: I found this using

wix installer ice03 Invalid Language Id

萝らか妹 提交于 2020-01-09 08:18:29
问题 I have a night build which runs on different machine then mine on my machine i can compile the installer and use the msi without a problem however on the night build machine i get C:\Builds\73\Tools\AppInstaller\src\AppInstaller\APPExportReleaseDir.wxs (693): ICE03: Invalid Language Id; Table: File, Column: Language, Key(s): filAAED19CB2C0BBE304CDB8EB1AAF7473F The file which is showing that is system.windows.interactivity.xml Can you please explain what are ICE03 errors and how can I fix this

Wix upgrade goes into maintenance mode and never does upgrade

限于喜欢 提交于 2020-01-09 05:33:10
问题 I am running Wix 3.11.1 and when trying to do an upgrade the upgrade goes into maintenance mode and leaves two entries in Add/Remove programs list. A short version of Product.wxs has the following: <Product Id="*" Name="Boo" Language="1033" Version="1.1.0.0" Manufacturer="Foo" UpgradeCode="PUT-GUID-HERE"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/> <MajorUpgrade AllowDowngrades="no" AllowSameVersionUpgrades="yes" DowngradeErrorMessage="!(loc

Run Wix Custom action only during uninstall and not during Major upgrade

…衆ロ難τιáo~ 提交于 2020-01-09 03:56:26
问题 I am trying to delete a file using a custom action scheduled between InstallInitialise and InstallFinalize standard action. MajorUpgrade element is used to design upgrades. However, I want the custom action to run only during uninstall and not during the Major upgrade(this includes uninstall and install). I have used the following conditions to execute the CUstom action: (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") REMOVE AND NOT WIX_UPGRADE_DETECTED Is there a way to uniquely detect the

Wix: How to set permissions for folder and all sub folders

天涯浪子 提交于 2020-01-09 02:15:26
问题 I know how to set the permissions for a folder: <DirectoryRef Id="ProgramFilesFolder"> <Directory Id="PHPFolder" Name="PHP"> <Component Id="PHP_comp" DiskId="1" Guid="*"> <CreateFolder> <Permission User="Everyone" GenericAll="yes" /> </CreateFolder> However I need the permissions to be applied to all subfolders as well. Is this possible with out listing all the folders? 回答1: First of all, I would recommend you using PermissionEx instead. It is a standard WiX extension and it has one really

Windows Application Startup Error Exception code: 0xe0434352

流过昼夜 提交于 2020-01-08 11:53:52
问题 I Was Start Windows Application Then application Not Start. Error Exception code: 0xe0434352 I was find Following Error from EventViewer. Application_develop in Visual studio 2010,Startup error Application: POSBarcode.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Xml.XmlException at System.Xml.XmlTextReaderImpl.Throw(System.Exception) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml

COM DLL exception in application when it auto launches after setup finishes installation!

故事扮演 提交于 2020-01-07 05:08:08
问题 I'm using this solution to modify the MSI to include a checkbox for user to decide whether s/he wants to launch the application after setup exits. Although everything works just fine, what I noticed was the application was not able to use any COM DLL's registered during the setup when it was auto launched. The app works perfectly when launched again from start menu. I have tested it on Windows XP and Windows 7. The COM DLL's have been marked as self registering dll's in the setup project. 回答1

How do I create an installer that can install dependency software?

半城伤御伤魂 提交于 2020-01-07 04:11:08
问题 Is it possible to create an installer where the user must install 'x' software before continuing with the installer? For example, if the user does not have the required software to use my own software, the installer will guide them through the set up and download the required software and then proceed to install my software as the final step? I have never created an installer so I have no idea if this is possible. 回答1: Is it possible to create an installer where the user must install 'x'

Replicate Behavior of a Batch File in a Custom Action

旧时模样 提交于 2020-01-07 03:40:55
问题 I'm creating a wix installer at work, and I need to be able to replicate the behavior of this batch file in a custom action: start /d "C:\Program Files (x86)\Remindex" INSTSRV.EXE RemindexNP "C:\Program Files (x86)\Remindex\SRVANY.EXE" I am trying to create a service using a normal windows application, which SRVANY.EXE can do. This batch file runs fine normally, but I can't seem to get a custom action to do the same thing. I have tried this: <CustomAction Id="RunNP" FileKey="FILE